axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brenda Coulson" <bcoul...@cysive.com>
Subject RE: XML Parsers and Classloading in Tomcat
Date Tue, 09 Apr 2002 16:30:44 GMT
one more thing - I actually was able to solve my problem by removing Tomcat
from the loop. There is a class inconsistency between your client and
server. Try to just use the SimpleAxisServer to service your request. For
me, I was able to reproduce my problem without Tomcat, which led me to
determine that I had an incompatibility problem between my client Xerces
version and the Tomcat version. I removed everything from my class path and
then re-built it piece by piece (i.e. run the SimpleAxisServer and it
complains about missing files, so I add the relevant jar file) until the
service started successfully. Then I used the same classpath built above to
run my cilent application and was able to identify my problem, which was
incompatible xerces classes.

Try:

java org.apache.axis.transport.http.SimpleAxisServer -p 8080

brenda

-----Original Message-----
From: James Hughes [mailto:james@avocacom.net]
Sent: Tuesday, April 09, 2002 12:19 PM
To: axis-user@xml.apache.org
Subject: RE: XML Parsers and Classloading in Tomcat


Yes :)

-----Original Message-----
From: Newman, Scott [mailto:snewman@ufsonline.com]
Sent: 09 April 2002 17:14
To: axis-user@xml.apache.org
Subject: RE: XML Parsers and Classloading in Tomcat


After you put them in there, did you restart tomcat?

-----Original Message-----
From: James Hughes [mailto:james@avocacom.net]
Sent: 09 April, 2002 11:12 AM
To: axis-user@xml.apache.org; bcoulson@cysive.com
Subject: RE: XML Parsers and Classloading in Tomcat

Still no luck!

I got rid of the xercesImpl.jar and xercesParserAPIs.jar (from Xerces 2),
and went to get xerces.jar (from Xerces 1.4.4).

I tried running the same as before with xerces.jar in
TOMCAT_HOME/lib/common, with no joy - the same exception.

I also tried putting xerces.jar in the TOMCAT_HOME/webapps/axis/WEB-INF/lib
directory and still the same exception was thrown.

Is there a setting in tomcat or something like that I should be looking for?

Thanks for your help
J

-----Original Message-----
From: Brenda Coulson [mailto:bcoulson@cysive.com]
Sent: 09 April 2002 17:04
To: axis-user@xml.apache.org
Subject: RE: XML Parsers and Classloading in Tomcat


Yes, I did not see the xerces.jar file anywhere in your listing of your
Tomcat lib/common directory. Also, make sure you are using the version of
xerces that is compatible with JAXP, as mentioned in the Axis installation
guide. I had the same error - "NoSuchMethodError" being thrown from within a
different place in Axis, but it was solved when I ensured that I was using
the latest Xerces jar file.

brenda

-----Original Message-----
From: James Hughes [mailto:james@avocacom.net]
Sent: Tuesday, April 09, 2002 11:56 AM
To: Axis Users
Subject: XML Parsers and Classloading in Tomcat


Hi,

I am having terrible trouble getting Axis up and running.  I *know* my
problem must be related to class loading in Tomcat, but I cannot for the
life of me figure out what is going on, so I hope somebody here can help me.

I am running Tomcat 3.3a on a Win2000 machine, and am attempting to use Axis
Beta 1.  I have followed the installation instructions as follows:

1.  Copied the Axis folder from the webapps folder of my Axis download into
the TOMCAT_HOME/webapps directory.

2.  Downloaded the latest Xerces 2 distribution and copied xercesImpl.jar
and xmlParserAPIs.jar into the TOMCAT_HOME/webapps/axis/WEB-INF/lib/
directory.


The contents of my tomcat lib directories are as follows:

TOMCAT_HOME/lib/container: crimson.jar, facade22.jar, jasper.jar,
tomcat_modules.jar, tomcat_util.jar, xalan.jar

TOMCAT_HOME/lib/common: connector_util.jar, core_util.jar, etomcat.jar,
jasper-runtime.jar, servlet.jar, tomcat_core.jar

TOMCAT_HOME/lib/apps: EMPTY

When I start Tomcat and point my browser to
"http://127.0.0.1:8080/axis/servlet/AdminServlet" I get the following stack
trace:

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at
org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(Unknown
Source)
	at
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown
Source)
	at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown
Source)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown
Source)
	at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
	at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
	at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
	at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
	at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:484)


I reckon the XML parsing classes are not loaded correctly somewhere, but I
dont know how to get around this - can anybody please help me??

Thanks already,
James



Mime
View raw message