0 Replies Latest reply on Dec 1, 2010 9:56 AM by izgur

    WSProvide on JBoss 5.1 ???

    izgur

      I downloaded JBoss5.1. It uses jbossws 3.2.1GA.

       

      I'm not able to make a webservice. I created a sample POJO. Made a class out of it. There next step is wsprovide, which always return an error.

      I get the same error (probably the same approach) is the ecplise -> new Web Service -> Bottom up java bean service).

       

      It is starting with:

      Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:205)
      at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLoader.java:138)
      at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:68)
      at org.jboss.wsf.spi.tools.WSContractProvider.newInstance(WSContractProvider.java:65)
      at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:170)
      at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77)
      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:200)
      ... 5 more

       

      So i solve this problem by adding a jar to the /lib/endorsed (i think jbossws-client). Than u get a new error. I solved it be adding the jbossws-spi.jar. Then i got I new error which i solved with adding another jar. I got a new error...

       

      So I don't believe the 15th jar will solve the problem.

       

       

      Was somebody able to deploy a web service to JBoss ??

      I managed it just over Riftsaw-BPEL .=)

       

      Thanks in advance!