[ http://issues.apache.org/struts/browse/STR-753?page=all ] Don Brown closed STR-753: -------------------------
Resolution: Fixed > Application not loading because of ClassLoad error in ActionServlet > ------------------------------------------------------------------- > > Key: STR-753 > URL: http://issues.apache.org/struts/browse/STR-753 > Project: Struts Action 1 > Type: Bug > Components: Action > Versions: 1.1 Beta 1 > Environment: Operating System: All > Platform: PC > Reporter: Dinesh Sadhvani > Priority: Critical > > Environment : Weblogic 6.0 Server > We are using ActionServlet and ActionComponentServlet (of Tiles) in our > Application. The web.xml contains the <servlet>action which maps to > ActionComponentServlet. > ActionComponentServlet subclasses the ActionServlet .......I get the > following > stack trace :- > org.apache.commons.logging.LogConfigurationException: > java.lang.ClassNotFoundExc > eption: org.apache.commons.logging.impl.LogFactoryImpl > at > org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497) > at > org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350) > at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381) > at > org.apache.struts.action.ActionServlet.<init>(ActionServlet.java:331) > at > org.apache.struts.tiles.ActionComponentServlet.<init>(ActionComponent > Servlet.java:41) > at java.lang.Class.newInstance0(Native Method) > at java.lang.Class.newInstance(Class.java:237) > at > weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm > pl.java:665) > at > weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub > Impl.java:643) > at > weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI > mpl.java:588) > at > weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS > ervletContext.java:2221) > at > weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp > ServletContext.java:2165) > at > weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java: > 475) > at > weblogic.servlet.internal.WebService.preloadServlets(WebService.java: > 450) > at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49) > at java.lang.Thread.run(Thread.java:484) > The commons-logging.jar is present in the WEB-INF\lib directory, and the > LogFactoryImpl is present in the jar file. > Surprisingly when I hot-deploy the application into the container, it works > fine. It seems to me that this has to do with the order in which classes get > loaded. (Since there is no spec for hot-deploy class loading). > I have seen other Web-sites where the same problem is being reported by > others. > I would appreciate if someone can fix this problem ASAP. > The Suggested Fix for this problem is in the ActionServlet : > Line 331 needs to be initialized to null (i.e. we do a lazy initialize in the > init() method before doing the initInternal etc. > I would appreciate if someone can fix this problem as apparently a lot of > people have the same issue. > Please feel free to email me for any questions. > Thanks > Dinesh -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]