Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error on deploying the web service

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranchers!

Still awaiting your valuable replies!

Srini
 
Amit K Srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is classpath issue only. Put all your axis libs in D:/axisjars and then set the classpath variable.

;-).
-Amit
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic