You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ha...@apache.org on 2003/01/01 07:19:26 UTC
cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
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",
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Chris Haddad <ha...@apache.org>.
Steve -
i'm still not clear why log4j is the only jar we distribute with a version
number tacked onto the end. Irregardless, the class is found even if the
jar is named something else. the jarname in the check was chosen because
that is the name of the jarfile distributed with Axis. i'd be much
happier if the jarfile was renamed back to log4j-core.
there is a check for commons-logging which works, but the Axis servlet
will still fail to load if log4j is not loadable.
/Chris
On Wed, 1 Jan 2003, Steve Loughran wrote:
>
> ----- Original Message -----
> From: <ha...@apache.org>
> To: <xm...@apache.org>
> Sent: Tuesday, December 31, 2002 22:19
> Subject: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
>
>
>
> > + needed+=needClass(out, "org.apache.log4j.Layout",
> > + "log4j-1.2.4.jar",
> > + "Log4j",
> > + "Axis may not work",
> > + "http://jakarta.apache.org/log4j");
>
> 1. What for those of us who ue log4J-1-2.7?
>
> 2. is there a check for commons-logging?
>
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: <ha...@apache.org>
To: <xm...@apache.org>
Sent: Tuesday, December 31, 2002 22:19
Subject: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
> + needed+=needClass(out, "org.apache.log4j.Layout",
> + "log4j-1.2.4.jar",
> + "Log4j",
> + "Axis may not work",
> + "http://jakarta.apache.org/log4j");
1. What for those of us who ue log4J-1-2.7?
2. is there a check for commons-logging?
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Chris Haddad <ha...@apache.org>.
Steve -
for some reason, that's not what works on my NT box.... here's the output
from happyaxis.jsp when my system works...
Found SAAJ API (javax.xml.soap.SOAPMessage) at D:\Tomcat
4.1\common\lib\saaj.jar
Found JAX-RPC API (javax.xml.rpc.Service) at D:\Tomcat
4.1\common\lib\jaxrpc.jar
Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at
D:\Tomcat 4.1\webapps\axis\WEB-INF\lib\axis.jar
Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at
D:\Tomcat 4.1\common\lib\commons-discovery.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at
D:\Tomcat 4.1\common\lib\commons-logging-api.jar
Found Log4j (org.apache.log4j.Layout) at D:\Tomcat
4.1\common\lib\log4j-core.jar
Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at D:\Tomcat
4.1\webapps\axis\WEB-INF\lib\wsdl4j.jar
Found JAXP implementation (javax.xml.parsers.SAXParserFactory) at
D:\Tomcat 4.1\common\endorsed\xmlParserAPIs.jar
Found Activation API (javax.activation.DataHandler) at D:\Tomcat
4.1\common\lib\activation.jar
java.version=1.3.1_05
java.ext.dirs=D:\jdk1.3.1_05\jre\lib\ext
There are no relevant jars on my classpath at startup, here's a
catalina.bat debug message i added:
using CLASSPATH: D:\jdk1.3.1_05\lib\tools.jar;..\bin\bootstrap.jar
/Chris
On Wed, 1 Jan 2003, Steve Loughran wrote:
>
> ----- Original Message -----
> From: "Chris Haddad" <ha...@apache.org>
> To: <ax...@xml.apache.org>; <di...@yahoo.com>
> Sent: Wednesday, January 01, 2003 08:15
> Subject: Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
>
>
> > 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.
> >
>
> where is axis.jar? wherever it is in the tomcat cpath heirarchy, log4j
> should be at that level or higher.
>
>
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Chris Haddad" <ha...@apache.org>
To: <ax...@xml.apache.org>; <di...@yahoo.com>
Sent: Wednesday, January 01, 2003 08:15
Subject: Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
> 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.
>
where is axis.jar? wherever it is in the tomcat cpath heirarchy, log4j
should be at that level or higher.
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Chris Haddad <ha...@apache.org>.
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
>
> --- 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
>
Re: cvs commit: xml-axis/java/webapps/axis happyaxis.jsp
Posted by Davanum Srinivas <di...@yahoo.com>.
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