Dims, i agree with your statement. i believe that i'm running into some
very strange classloading issues under Tomcat4.1.12.  maybe i need advice
on the proper configuration.  i'm using the default reliance on log4j
logging.



If log4j-1.2.4.jar is in /commons/lib all is well, if it is moved to
/webapps/axis/WEB-INF/lib then i get a servlet initialization error when
the Layout class is not found.  this is the exception trace:

java.lang.NoClassDefFoundError: org/apache/log4j/Layout
        at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:153)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:281)
        at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
        at
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
        at
org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:102)





/Chris


On Wed, 1 Jan 2003, Davanum Srinivas wrote:

> Chris,
>
> We need to find the source of this dependency (and try to remove it). It should be 
>able to use
> commons logger and jdk14's logging capability without needing log4j.
>
> Thanks,
> dims
>
> --- [EMAIL PROTECTED] wrote:
> > haddadc     2002/12/31 22:19:26
> >
> >   Modified:    java/webapps/axis happyaxis.jsp
> >   Log:
> >   Tomcat was not loading Axis.jar due to a dependancy on log4j.  Updated the 
>happiness file to
> > check for the existence of the log4j class referenced when Axis is loaded.
> >
> >   Revision  Changes    Path
> >   1.12      +6 -0      xml-axis/java/webapps/axis/happyaxis.jsp
> >
> >   Index: happyaxis.jsp
> >   ===================================================================
> >   RCS file: /home/cvs/xml-axis/java/webapps/axis/happyaxis.jsp,v
> >   retrieving revision 1.11
> >   retrieving revision 1.12
> >   diff -u -r1.11 -r1.12
> >   --- happyaxis.jsp 30 Oct 2002 19:40:45 -0000      1.11
> >   +++ happyaxis.jsp 1 Jan 2003 06:19:26 -0000       1.12
> >   @@ -357,6 +357,12 @@
> >                "Axis will not work",
> >                "http://jakarta.apache.org/commons/logging.html";);
> >
> >   +    needed+=needClass(out, "org.apache.log4j.Layout",
> >   +            "log4j-1.2.4.jar",
> >   +            "Log4j",
> >   +            "Axis may not work",
> >   +            "http://jakarta.apache.org/log4j";);
> >   +
> >        //should we search for a javax.wsdl file here, to hint that it needs
> >        //to go into an approved directory? because we dont seem to need to do that.
> >        needed+=needClass(out, "com.ibm.wsdl.factory.WSDLFactoryImpl",
> >
> >
> >
>
>
> =====
> Davanum Srinivas - http://xml.apache.org/~dims/
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>

Reply via email to