tomcat 上的 liferay 不加载类

发布于 2024-11-19 19:15:03 字数 1012 浏览 2 评论 0原文

我正在 Liferay 上制作一个部署在 jboss 上的 portlet。今天我换了一个库,开始出现问题。当我部署一个portlet时,我必须重新启动Liferay,否则我会遇到这个异常:

17:09:36,325 ERROR [DispatcherPortlet:554] Could not complete request
java.lang.NullPointerException
    at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1245)
    at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
    at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1317)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1336)
    at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1398)
    at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:417)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
    at org.springframework.security.portlet.PortletAuthenticationDetails.(PortletAuthenticationDetails.java:14)

今天早上,当我尝试使用log4j的记录器时,我遇到了类似的问题...现在这个问题与公共日志有关...有人可以帮忙我?

I'm making a portlet on Liferay deployed on jboss. Today I changed a library and starts to happens a problem. When I deploy a portlet I have to restart Liferay otherwise I have this exception:

17:09:36,325 ERROR [DispatcherPortlet:554] Could not complete request
java.lang.NullPointerException
    at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1245)
    at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
    at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1317)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1336)
    at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1398)
    at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:417)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
    at org.springframework.security.portlet.PortletAuthenticationDetails.(PortletAuthenticationDetails.java:14)

This morning I had a similar problem when i tried to use the Logger of log4j...and now this problem is with the common log...someone can help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

杀お生予夺 2024-11-26 19:15:03

我认为您在 Tomcat 中遇到了错误。因为它不应该抛出 RuntimeException 尤其是 NullPointerException。怎么处理呢?阅读tomcat的源代码第1245行...

i think you met a bug in Tomcat. because it should not throw a RuntimeException especially NullPointerException. how to deal with it? read the source code of tomcat at line 1245...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文