struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Knorr" <>
Subject ONLY FOR ONE WAR -- PLEASE HELP! RE: Weblogic 5.1 + commons.logging - HERE'S THE ANSWER!
Date Wed, 03 Jul 2002 16:38:35 GMT
Getting the latest nightly commons-logging.jar works great if you are deploying one war file...
but we have many war files deploying and this only fixes the first war file that is deployed.
 All the other deployed wars throw the following exception:

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.apache.struts.action.ActionServlet.<init>(

Any ideas on when a complete fix is going to be released for struts 1.1beta1 and weblogic?



-----Original Message-----
From: Ren Bitonio []
Sent: Thursday, June 20, 2002 7:21 PM
To: 'Struts Users Mailing List'
Cc: ''
Subject: RE: Weblogic 5.1 + commons.logging - HERE'S THE ANSWER!


I believe you are talking about Struts version 1.1Beta1.  If so, then that
version of commons-logging.jar has a classloader problem issue, that does
not work smoothly with Weblogic 5.1.  I had this problem earlier with WLS61
SP2 and later resolved it.

You need to swap out your commons-logging.jar.  I believe the 5/9 nightly
build was the first edition to resolve this problem, as I checked its source
code to see if LogFactory class was fixed, regarding which classloader to
use and load the factory implementation.  It worked!  The latest ones should
work as well.

By the way, other than getting a newer jar file, there is another
workaround, which is placing the original jar file in the Weblogic's
globalclasspath, yet this is not the preferred route.  

Give it a try, and let me know how it works out.

Good luck,

-----Original Message-----
From: Chen, Dean (Zhun) [] 
Sent: Thursday, June 20, 2002 12:08 PM
To: 'Struts Users Mailing List'
Subject: Weblogic 5.1 + commons.logging


I'm migrating my Tomcat application to WebLogic 5.1, in doing so I am
getting this error:

Thu Jun 20 15:05:07 EDT 2002:<E> <WebAppServletContext-setshistory> Error
instantiating servlet:
        at org.apache.commons.logging.LogFactory.getLog(

I placed the commons-logging.jar into the WEB-INF/lib directory, however, it
still complains. Has anyone seen these types of error before? Is this a
weblogic problem or a commons-logging problem?


Dean Chen

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message