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 plz help:SOAP Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "plz help:SOAP Exception" Watch "plz help:SOAP Exception" New topic
Author

plz help:SOAP Exception

venu vanga
Greenhorn

Joined: Aug 11, 2006
Posts: 7
hi everyone,
i am new to webservices and trying to implement HelloWorld webservice.but when iam using WSDL2Java to create the stubs iam getting the exception

C:\tomcat\jakarta-tomcat-5.0.28\webapps\axis>java org.apache.axis.wsdl.WSDL2Java
http://localhost:8080/axis/HelloWorldService.jws?wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultT
ypeMappingImpl.java:119)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:91)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(
DefaultTypeMappingImpl.java:85)
at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRe
gistryImpl.java:155)
at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRe
gistryImpl.java:149)
at org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:144)
at org.apache.axis.wsdl.WSDL2Java.createParser(WSDL2Java.java:209)
at org.apache.axis.wsdl.gen.WSDL2.<init>(WSDL2.java:96)
at org.apache.axis.wsdl.WSDL2Java.<init>(WSDL2Java.java:194)
at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:371)

my class path includes :
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\axis.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\log4j1.2.8.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\axis-ant.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\wsdl4j1.5.1.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\commons-discovery-0.2.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\commons-logging-1.0.4.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\jaxrpc.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\xercesImpl.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\saaj.jar;
C:\tomcat\jakarta-tomcat-5.0.28\shared\lib\xml-apis.jar

Iam using tomcat-5.0.28
axis-1_4
xerses-2_5_0
jdk1.4.2

is there any incompatibility in the versions of software i have used?
can anyone please help me......
Thanks
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

SOAPException is in saaj.jar. double check your classpath.
Ahmad


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: plz help:SOAP Exception