File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis 1.1 and Tomcat 4.1 - NoClassDefFoundError  problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 1.1 and Tomcat 4.1 - NoClassDefFoundError  problem" Watch "Axis 1.1 and Tomcat 4.1 - NoClassDefFoundError  problem" New topic
Author

Axis 1.1 and Tomcat 4.1 - NoClassDefFoundError problem

jenn sie
Greenhorn

Joined: Sep 16, 2004
Posts: 3
Hi there,

I am having a lot of trouble with Axis and Tomcat. (I had reinstalled it and spent over a day trying to recover what I'd done.)

I';m using Axis 1.1 and Tomcat 4.1

My classpath is (copied and pasted):
c:\axis\lib\axis.jar
c:\axis\lib\axis-ant.jar
c:\axis\lib\commons-discovery.jar
c:\axis\lib\commons-logging.jar
c:\axis\lib\jaxrpc.jar
c:\axis\lib\log4j-1.2.8.jar
c:\axis\lib\saaj.jar
c:\axis\lib\wsdl4j.jar
c:\axis\lib\xercesImpl.jar
c:\axis\lib\xmlParserApIs.jar
c:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
c:\ant\lib\xml-apis.jar
c:\ant\lib\xercesImpl.jar
c:\ant\lib\ant.jar
C:\Program Files\Apache Group\Tomcat 4.1\webapps\axis\WEB-INF
C:\Program Files\Apache Group\Tomcat 4.1\common\lib
c:\webexample04\buildlibs\ant\catalina-ant.jar
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\xerces.jar

Everything looks fine on the happyaxis page. (The only thing not found is the XML ParserLocation.)

There are two problems:
The first problem that I am having is that since I have reinstalled axis, it is not looking at the webapps/axis folder under Tomcat. It is looking at the webapps/axis folder under my axis directory. How can I fix this?

Secondly, the problem I had before that caused me to reinstall axis:
I keep getting the dreaded NoClassDefFoundError. Even when I attempt to do the sample stock quote tutorial, I get the error in the command prompt. I am able to deploy the wsdd file and all is well on the axis deployed services page. But when it comes to trying to execute the client, I get the NoClassDefFoundError.

Can someone please help me get this on track so I can start to develop a web service. I would appreciate a quick response as I'm trying to get this done for part of my dissertation. (And I'm so frustrated... having looked at so many sites to try and solve it.)

cheers,
jenn
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Axis 1.1 and Tomcat 4.1 - NoClassDefFoundError problem