This content has been marked as final.
Show 7 replies
-
1. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
andyredhead Jun 12, 2008 8:08 AM (in response to andyredhead)Looks like policy.jar is also missing... ?
-
2. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
ropalka Jun 12, 2008 8:48 AM (in response to andyredhead)"andyredhead" wrote:
The build fails with:
Failed to load: org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
It looks like the jbossws 3.0.1 metro 1.0.1 GA distribution does not include SunRIConsumerFactoryImpl
It was renamed to org.jboss.wsf.stack.metro.tools.MetroConsumerFactoryImpl and it is in archive jbossws-metro-client.jar -
3. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
andyredhead Jun 12, 2008 9:57 AM (in response to andyredhead)Ahh, that makes sense.
Changing my classpath to include the correct jbossws-metro-client rather than the jbossws-client makes the wsdl to java ant task run fine, thank you :)
Now I have a problem in runtime...
The stack trace is:Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96) at javax.xml.ws.spi.Provider.provider(Provider.java:90) ... 89 more Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.core.jaxws.spi.ProviderImpl at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:90) ... 90 more
org.jboss.ws.core.jaxws.spi.ProviderImpl is available in native jbossws-core and jbossws-client but not in any of the metro jars (I'm ignoring jaxws-rt.jar, if I include that then I get all sorts of errors about illegal endpoints...).
At runtime (for a web service client), should I be including jbossws-core or should some part of the metro distribution include org.jboss.ws.core.jaxws.spi.ProviderImpl?
Cheers,
Andy -
4. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
ropalka Jun 12, 2008 10:03 AM (in response to andyredhead)It seems to me you're mixing two different integrations.
This is wrong approach. How did you install metro integration? -
5. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
andyredhead Jun 12, 2008 10:34 AM (in response to andyredhead)Point taken, so I've done a clean install into jboss 4.3 using the ant deploy script.
Now I get:Caused by: java.lang.IllegalStateException: Failed to load javax.xml.soap.MetaFactory: org.jboss.ws.core.soap.SAAJMetaFactoryImpl at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:131) at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:60) at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:106) at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178) at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83) ... 97 more Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.core.soap.SAAJMetaFactoryImpl at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:125)
The same jboss appserver instance could be both a web serive server and a web service client and I'm trying to avoid the java xml equiavalent of "dll hell".
The web service client is running inside a jboss mbean - which is why I was initally trying to locate the jars I need without doing a full install. Now I have done a full install I suspect the class loading issues are because the mbean can't access the jars packaged in the jbossws service... -
6. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
ropalka Jun 12, 2008 11:00 AM (in response to andyredhead)"andyredhead" wrote:
The web service client is running inside a jboss mbean - which is why I was initally trying to locate the jars I need without doing a full install. Now I have done a full install I suspect the class loading issues are because the mbean can't access the jars packaged in the jbossws service...
This is question you should ask on different JBoss forums, e.g. here or here. -
7. Re: jbossws-metro-dist-3.0.1.GA missing SunRIConsumerFactory
andyredhead Jun 12, 2008 12:34 PM (in response to andyredhead)Ok, thanks.