From axis-dev-return-18069-apmail-xml-axis-dev-archive=xml.apache.org@xml.apache.org Wed Jan 01 16:15:28 2003 Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 37896 invoked by uid 500); 1 Jan 2003 16:15:27 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 37887 invoked from network); 1 Jan 2003 16:15:27 -0000 Date: Wed, 1 Jan 2003 08:15:26 -0800 (PST) From: Chris Haddad To: axis-dev@xml.apache.org, Subject: Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp In-Reply-To: <20030101133225.90920.qmail@web12806.mail.yahoo.com> Message-ID: <20030101080535.D35982-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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.(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 > > --- haddadc@apache.org 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 >