Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

plz help:SOAP Exception

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 290
Oracle Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAPException is in saaj.jar. double check your classpath.
Ahmad
 
Forget Steve. Look at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic