DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11302>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11302

Application not loading because of ClassLoad error in ActionServlet

           Summary: Application not loading because of ClassLoad error in
                    ActionServlet
           Product: Struts
           Version: 1.1 Beta 1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to