tomcat 上的 liferay 不加载类
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您在 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...