4 Replies Latest reply on Dec 13, 2007 12:10 AM by kks_krishna

    WsConsume throws exception

      HI,


      I have set jbossws-spi.jar in the classpath. Still i am getting NoClassDefFoundError for WSConsume class. I am using 2.0.2 native GA. Please help me.

        • 1. Re: WsConsume throws exception
          ropalka

          Hi,

          isn't this

          http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109077

          your problem too?
          If not, please provide more details about your problem, e.g. JBoss AS version, Java version, OS version, steps you did, ... etc

          Richard

          • 2. Re: WsConsume throws exception

            Even if i am setting the correct path for the jar files, i am getting the NoClassFound error.

            I am using the following versions:

            JBoss : 4.0.5
            Java : 5.0
            OS : Windows XP

            Step1 : I have created webservice and got the WSDL path in the server.
            Step2: I have downloaded 2.0.2 native api for generating the client stubs.
            Step3: I have extracted the zip files and put it in D drive and set the classpath for only that jar file.
            Step: I opened the command prompt and typed >>weconsume <<wsdl name>>

            Is this information enough?

            • 3. Re: WsConsume throws exception
              ropalka

              Hi,

              thanks, that information was important for us to know your usecase. You're still missing some jars in the classpath (as you already know) :-( . I suggest you to put all jar files from jbossws distribution to your classpath, because it's very hard to tell you which jar file are you missing.

              Richard

              • 4. Re: WsConsume throws exception

                What are the jar files i need to add in the classpath? I have added only one in the classpath. That has WsConsume class file.