Two Laptop Bag*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Error on deploying the web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Error on deploying the web service" Watch "Error on deploying the web service" New topic

Error on deploying the web service

Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
I am trying to deploy my first web service using tomcat 5.x and Axis. In this regard, when i am trying to deploy my wsdd file, I facing the following issues:

I had given the following on command prompt:

java org.apache.axis.client.AdminClient server-config.wsdd

but i got the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEx
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
at org.apache.axis.AxisEngine.init(
at org.apache.axis.AxisEngine.<init>(
at org.apache.axis.client.AxisClient.<init>(
at org.apache.axis.client.Service.getAxisClient(
at org.apache.axis.client.Service.<init>(
at org.apache.axis.client.AdminClient.initAdminClient(
at org.apache.axis.client.AdminClient.<init>(
at org.apache.axis.client.AdminClient.main(

When i got this error, I thought i could be because of the classpath, but my classpath seems to be right:

CLASSPATH=.;D:\j2sdk1.4.2_04\lib;D:\Program Files\Apache Software Foundation\Tom
cat 5.0\webapps\axis\WEB-INF\lib\axis.jar;D:\Program Files\Apache Software Found
ation\Tomcat 5.0\webapps\axis\WEB-INF\lib\axis-ant.jar;D:\Program Files\Apache S
oftware Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar
;D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib
\commons-logging-1.0.4.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.
0\webapps\axis\WEB-INF\lib\j2ee.jar;D:\Program Files\Apache Software Foundation\
Tomcat 5.0\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;D:\Program Files\Apache Soft
ware Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;D:\Program
Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib\xerces.jar;
D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib\
xmlsec.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\act
ivation.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\so
ap.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jaxrpc.
jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\

I am very curiously awaiting a reciprocation!

Thanks in advance for your help!


Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122

Still awaiting your valuable replies!

Amit K Srivastava

Joined: May 16, 2006
Posts: 23
This is classpath issue only. Put all your axis libs in D:/axisjars and then set the classpath variable.

Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
thanks for your valuable reply Amit.

I did have some classpath issues. But once i have corrected those, i am trying to execute the following in the command line:

java org.apache.axis.client.AdminClient server-config.wsdd

When i do this, i am getting the following error:

Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.SAXP
at org.apache.axis.utils.XMLUtils.getSAXParser(
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
at org.apache.axis.Message.getSOAPEnvelope(
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
at org.apache.axis.client.AxisClient.invoke(

Ranchers! Please help me solve this issues

Thanks in advance!
Srini :roll:
I agree. Here's the link:
subject: Error on deploying the web service
Similar Threads
How to get started with axis1.4 urgent
Log4j\Layout error
NoSuchMethodError when trying Apache Axis examples
Problem in running Fibonacci Web Service Example