4 Replies Latest reply on Apr 20, 2007 6:26 AM by Thomas Diesler

    wsconsume and IllegalStateException

    Brian Paik Newbie


      i'm running jboss 4.0.5.GA along with jbossws 1.2.1.GA. i'm attempting to use wsconsume on a generated wsdl. however, i'm getting the following error:

      Exception in thread "main" java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxws.impl.WSContractConsumerFactoryImpl
      at org.jboss.ws.tools.jaxws.api.Locator.locate(Locator.java:55)
      at org.jboss.ws.tools.jaxws.api.WSContractConsumer.newInstance(WSContractConsumer.java:68)
      at org.jboss.ws.tools.jaxws.api.WSContractConsumer.newInstance(WSContractConsumer.java:56)
      at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:170)
      at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76)

      i went through and looked for any other posts regarding this issue and found that jbossws-wsconsume-impl.jar needed to be added to the classpath. i 1.2.1's wsconsume.bat adds this jar to the classpath.

      i did add jbossretero-rt.jar to the classpath as well because i was getting a ClassNotFoundException on JBossStringBuilder

      i'm running everything locally on winxp.

      any help is greatly appreciated