facebook

WSDL2Java generation aborted – ClassNotFoundException

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #314538 Reply

    sbagmar
    Member

    Hello,

    I have a simple calculator class (cleanly compiled and class generated under WEB-INF\classes folder) out of which I need to generate a Websphere JAX-RPC Webservice. I followed steps from the link below –

    http://www.myeclipseide.com/documentation/quickstarts/blueedition/blue_jaxrpc/

    I have IBM Websphere Application Server v6.1 installed and configured correctly to work with MyEclipse.

    I correctly selected “Bottom Up Scenario” while generating the WebService. But it throws the following error:

    The following errors occurred while running WSDL2Java. Generation aborted.
    16/02/2011 06:18:32 com.ibm.ws.webservices.wsdl.fromJava.Emitter init
    SEVERE: Error: java.lang.ClassNotFoundException: com.dwx.cloud.ws.Calc
    java.io.IOException: java.lang.ClassNotFoundException: com.dwx.cloud.ws.Calc
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.init(Emitter.java:794)
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.getWSDL(Emitter.java:659)
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.emit(Emitter.java:589)
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.preEmit(Emitter.java:482)
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.emit(Emitter.java:524)
    at com.ibm.ws.webservices.wsdl.fromJava.Emitter.emit(Emitter.java:563)
    at com.ibm.ws.webservices.tools.Java2WSDL.run(Java2WSDL.java:607)
    at com.ibm.ws.webservices.tools.Java2WSDL.main(Java2WSDL.java:653)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
    WSWS3752I: (C) COPYRIGHT International Business Machines Corp. 1997, 2006.
    WSWS3753I: IBM WebSphere Application Server Release 6.1
    WSWS3754I: Web services Java2WSDL emitter.

    Kindly assist.
    Thanks!

    #314576 Reply

    support-swapna
    Moderator

    sbagmar,

    1) Can you please share your installation details with us from MyEclipse > Installation Summary > Installation Details?

    2) Are you trying to generate a JAX-RPC Webservice from an existing java class? or creating a new webservice project,added the Calc class and then trying to generate the Webservice as outlined by the tutorial?

    3) Can you give detail steps right from the Java class creation for me to replicate it at my end?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: WSDL2Java generation aborted – ClassNotFoundException

You must be logged in to post in the forum log in