Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

classes wsdl2java and java2wsdl not present

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Im new to webs ervices. I downloaded apache-ant-1.6.2-bin, axis-1_2RC2-bin, Glue-502, tomcat50-jwsdp but i cant find java2wsdl.class or wsdl2java.class on my system. Pls advise how to make stubs etc.

I only have these classes on the system. Are these the same as above files?

MyWSDL2Java.class
WSDL2Useless.class

Thanks JPK
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
they are in 'axis.jar' file
 
JPraveen Kumar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If that is the case then why do i get the NoclassDefFoundError

Im able to execute adminclient from the following steps but not wsdl2Java or JAVA2wsdl. After executing adminclient I can also see my service registered by clicking view on teh axis home page.
Im executing this from Tomcat 5.0\webapps\axis\WEB-INF\classes which has Fibonacci.class, FibonacciImpl.class, deploy.wsdd. There is another directory C:\ToTest\Lib which has all the reqd jars stated as below.

set AXIS_HOME="C:\ToTest"
set AXIS_LIB=%AXIS_HOME%\lib
set AXISCLASSPATH="%AXIS_LIB%\axis.jar";"%AXIS_LIB%\commons-discovery.jar";"%AXIS_LIB%\commons-logging.jar";"%AXIS_LIB%\jaxrpc.jar";"%AXIS_LIB%\saaj.jar";"%AXIS_LIB%\log4j-1.2.8.jar";"%AXIS_LIB%\wsdl4j.jar";
java -cp %AXISCLASSPATH% org.apache.axis.client.Java2WSDL -o a.wsdl -l"http://localhost:8080/axis/services/fibonacci"


The error message is : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/clien
t/Java2WSDL

Pls help me out. Tx n regards JPraveen
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>>java.lang.NoClassDefFoundError: org/apache/axis/client/Java2WSDL
Yes!.. because there is no such java class in it..

Try java org.apache.axis.wsdl.Java2WSDL instead
 
JPraveen Kumar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Balaji even that does not work. Does it have something to do with my current directory in the dos prompt? Im executing these commands from Tomcat 5.0\webapps\axis\WEB-INF\classes

Pls help. Thx JPK
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you find a solution to your problem? I'm having the exact same problem when trying:

c:\jakarta-tomcat-5.5.4\webapps\axis\>java org.apache.axis.wsdll.WSDL2Java http://localhost/axis/TestService.jws?WSDL

I already added axis.jar (along with the other jar-files) from axis\WEB-INF\lib to my classpath but nothing worked
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may be even after u think u added the axis.jar to your classpath, the classpath might not be property set. google JWhich.class and it can be used to see what all classes are there in classpath .
 
Stig Perez Rasmussen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You were right - i forgot to omit xmlsec.jar from my classpath (it didn't exist in axis\WEB-INF\lib) and now it's working fine. Thanks!
 
You showed up just in time for the waffles! And 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