[JBossWS] - Re: trying to access a webservice - not working from either
by rodgerca
Thanks for that - when I get up to speed I will treat newbies as well as you have treated me.
The link you gave me tells me to add the following files to my JBOSS_HOME/lib directory.
jboss-jaxrpc.jar
jboss-saaj.jar
jaxb-api.jar
jaxws-api.jar
I did that, but unfortunately I got the same error. I then decided to revert to JDK5 and the whole thing worked fine last night (was using demo code that I downloaded from a website)
Came into work early this morning, really happy that I was going get round to writing the address lookup web service that was due in last Friday.
But I am getting a bunch of errors again. I think it is because the return type on my web service is a complex type;-
Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://session.address.cmmgroup.com/}getAddressByPostCode
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:627)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:886)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:217)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at com.cmmgroup.address.client.RunAddressAsWebService.main(RunAddressAsWebService.java:27)
I'm not clear from the other forums if there is a resolution to this as I am already using the latest version of JBossWs.
My mood has changed from one of despair to hysteria....I am both laughing and crying at regular intervals.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066915#4066915
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066915
17 years, 5 months
[JBossWS] - wsrunclient error
by bglasco
Jboss 4.2 java 5 and jbossws 2.0
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Prov
ider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.Prov
iderImpl
at javax.xml.ws.spi.Provider.provider(Provider.java:98)
at javax.xml.ws.Service.(Service.java:83)
at events.SdtwsService.(SdtwsService.java:40)
at events.SdtClient.main(SdtClient.java:14)
Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Prov
ider: 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)
... 3 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedExceptio
n
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066841#4066841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066841
17 years, 5 months