*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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
ception
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at org.apache.axis.client.AdminClient.initAdminClient(AdminClient.java:1
48)
at org.apache.axis.client.AdminClient.<init>(AdminClient.java:116)
at org.apache.axis.client.AdminClient.main(AdminClient.java:461)



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\
lib\xercesImpl.jar;

I am very curiously awaiting a reciprocation!

Thanks in advance for your help!

Srini


SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Ranchers!

Still awaiting your valuable replies!

Srini
Amit K Srivastava
Greenhorn

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.

;-).
-Amit
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
arser.getXMLReader()Lorg/xml/sax/XMLReader;
at org.apache.axis.utils.XMLUtils.getSAXParser(XMLUtils.java:270)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:224)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
tandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

Ranchers! Please help me solve this issues

Thanks in advance!
Srini :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
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
NoClassDefFoundError
Problem in running Fibonacci Web Service Example