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?
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...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.