[JBossWS] - How to specify the truststore location for a web service cli
by ds-crcpress
Hello,
I have the following scenario:
I am trying to call a Webservice that communicates via a secure socket (in other words, its located at https://hostname/path/to/service?wsdl). When I call the Stateless Session Bean that has the proxy injected via @WebServiceRef, I get an odd UndeclaredThrowable exception. It turns out it is because it cannot communicate with the webservice and is throwing an IOException which was not declared in the remote interface (thus trickling up and causing the UndeclaredThrowable rmi layer exception).
I created a unit test to try calling the web service outside of the EJB container, and got it working. I had to specify the truststore location with a system property javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword property (which keeps the IOException from being thrown).
Now comes the tricky part: how do I specify these properties for the JBoss application server? I tried using the SystemProperties service, but it does not work--I still get the same exception.
Any other idea?
Thanks,
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139982#4139982
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139982
16 years, 9 months
[JBossWS] - Re: help completely stuck trying to access an EJB3 WS - plea
by wiggy
one more thing i saw some references to jsdk 1.6 (which i was using) vs 1.5.
i rest all my code and the server to 1.5 and redid the call - i still get the error (client side log trace - the server side shows no activity). This is my client doing the ejb lookup call
| public static void main(String[] args) throws Exception
| {
|
| InitialContext ctx;
| // TODO Auto-generated method stub
|
| TestHelloServiceRemote test;
|
| //HelloService s = new HelloService();
| //HelloServiceWS ws = s.getHelloServiceWSPort();
|
|
| ctx = getInitialContext();
|
| test = (TestHelloServiceRemote) ctx.lookup ("TestHelloBean/remote");
|
| //String res = ws.sayHello();
| String res = test.sayHello();
| ...
|
which throws the error
|
| Exception in thread "main" javax.ejb.EJBException: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| Caused by: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| at $Proxy144.sayHello(Unknown Source)
| at test.TestHelloBean.sayHello(TestHelloBean.java:18)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
| at $Proxy0.sayHello(Unknown Source)
| at test.Test.main(Test.java:30)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
| at $Proxy0.sayHello(Unknown Source)
| at test.Test.main(Test.java:30)
| Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
| at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
| at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:156)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:289)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| at $Proxy144.sayHello(Unknown Source)
| at test.TestHelloBean.sayHello(TestHelloBean.java:18)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
|
|
if i change the code - just to call from the client (no ejb lookup) as follows
|
| public static void main(String[] args) throws Exception
| {
|
| InitialContext ctx;
| // TODO Auto-generated method stub
|
| TestHelloServiceRemote test;
|
| HelloService s = new HelloService();
| HelloServiceWS ws = s.getHelloServiceWSPort();
|
|
| ctx = getInitialContext();
|
| test = (TestHelloServiceRemote) ctx.lookup ("TestHelloBean/remote");
|
| String res = ws.sayHello(); //String res = test.sayHello();
|
| ...
|
|
i now get the following error
| Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
| at javax.xml.ws.spi.Provider.provider(Provider.java:98)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at org.domain.wstest2.webservices.HelloService.<init>(HelloService.java:40)
| at test.Test.main(Test.java:21)
| Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.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.ExceptionInInitializerError
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at java.lang.Class.newInstance0(Class.java:350)
| at java.lang.Class.newInstance(Class.java:303)
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
| ... 4 more
| Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188)
| at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
| ... 11 more
| Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
| Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
| at javax.xml.ws.wsaddressing.W3CEndpointReference
| Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
| at javax.xml.ws.wsaddressing.W3CEndpointReference
|
| at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
| at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
| ... 12 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139971#4139971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139971
16 years, 9 months
[JBossWS] - help completely stuck trying to access an EJB3 WS - please h
by wiggy
Could someone please help me - really confused about how get JBOSS WS working properly
trying to get a seam application exposed with web services. Tried to write a simple WS test and came unstuck. I need help as this is now holding me back and its doing my head in. I have another developer stuck waiting for me to expose a service.
here goes.
1. created an EAR based server. Here is the webservice endpoint class in the wstest2-ejb project within the EAR.
| package org.domain.wstest2.webservices;
|
| import java.util.List;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebResult;
| import javax.jws.WebService;
|
|
| import org.jboss.seam.Component;
|
| @Stateless (name="HelloService")
| @WebService (
| name="HelloServiceWS",
| serviceName="HelloService" )
| public class HelloServiceBean implements HelloServiceRemote
| {
| @WebMethod (operationName="sayHello")
| @WebResult (name="helloResult")
| public String hello ()
| {
| return "hello World";
| }
| }
|
|
as it was going to be a seam based test - i created in the META-INF the following standard-jaxws-endpoint-config.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!-- webservice seam SOAP handler profile -->
| <jaxws-config xmlns="urn:jboss:jaxws-config:2.0"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:javaee="http://java.sun.com/xml/ns/javaee"
| xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
| <endpoint-config>
| <config-name>Seam WebService Endpoint</config-name>
| <pre-handler-chains>
| <javaee:handler-chain>
| <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
| <javaee:handler>
| <javaee:handler-name>SOAP Request Handler</javaee:handler-name>
| <javaee:handler-class>org.jboss.seam.webservice.SOAPRequestHandler</javaee:handler-class>
| </javaee:handler>
| </javaee:handler-chain>
| </pre-handler-chains>
| </endpoint-config>
| </jaxws-config>
|
so far so good - deploy the EAR to jboss4.2.2. checked the localhost:8080/jbossws and checked where the generated WSDL is stored
heres what it gives me
| http://127.0.0.1:8080/wstest2-ear-wstest2-ejb/HelloService?wsdl
|
|
|
| heres is the generated WSDL
|
|
| |
| |
| | <definitions name="HelloService" targetNamespace="http://webservices.wstest2.domain.org/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservices.wstest2.domain.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| | - <types>
| | - <xs:schema targetNamespace="http://webservices.wstest2.domain.org/" version="1.0" xmlns:tns="http://webservices.wstest2.domain.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| | <xs:element name="sayHello" type="tns:sayHello" />
| | <xs:element name="sayHelloResponse" type="tns:sayHelloResponse" />
| | - <xs:complexType name="sayHello">
| | <xs:sequence />
| | </xs:complexType>
| | - <xs:complexType name="sayHelloResponse">
| | - <xs:sequence>
| | <xs:element minOccurs="0" name="helloResult" type="xs:string" />
| | </xs:sequence>
| | </xs:complexType>
| | </xs:schema>
| | </types>
| | - <message name="HelloServiceWS_sayHelloResponse">
| | <part element="tns:sayHelloResponse" name="sayHelloResponse" />
| | </message>
| | - <message name="HelloServiceWS_sayHello">
| | <part element="tns:sayHello" name="sayHello" />
| | </message>
| | - <portType name="HelloServiceWS">
| | - <operation name="sayHello" parameterOrder="sayHello">
| | <input message="tns:HelloServiceWS_sayHello" />
| | <output message="tns:HelloServiceWS_sayHelloResponse" />
| | </operation>
| | </portType>
| | - <binding name="HelloServiceWSBinding" type="tns:HelloServiceWS">
| | <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
| | - <operation name="sayHello">
| | <soap:operation soapAction="" />
| | - <input>
| | <soap:body use="literal" />
| | </input>
| | - <output>
| | <soap:body use="literal" />
| | </output>
| | </operation>
| | </binding>
| | - <service name="HelloService">
| | - <port binding="tns:HelloServiceWSBinding" name="HelloServiceWSPort">
| | <soap:address location="http://127.0.0.1:8080/wstest2-ear-wstest2-ejb/HelloService" />
| | </port>
| | </service>
| | </definitions>
| |
|
| Then I got a little stuck. I scouted round for stuff and entually got to the wsconsum.bat documentation to generate client artifacts.
|
| can the wsconsume and generated the client stubs - and then imported them into my client project (I did this as an EJB3) so that i could use the dependency injection (or so i thought).
|
| heres my EJB client
|
|
| | package test;
| |
| | import javax.ejb.Stateless;
| | import javax.xml.ws.WebServiceRef;
| |
| | import org.domain.wstest2.webservices.*;
| |
| | @Stateless
| | public class TestHelloBean implements TestHelloService, TestHelloServiceRemote
| | {
| |
| | //inject instance of generated service class from wsconsume
| | @WebServiceRef (HelloService.class)
| | private HelloService helloServiceEP;
| |
| | public String sayHello()
| | {
| | //get WS from the End point
| | HelloServiceWS helloService = helloServiceEP.getHelloServiceWSPort();
| |
| | //call my simple method
| | String res = helloService.sayHello();
| | return res;
| | //return "hello";
| | }
| | }
| |
|
| I have a simple main method that does the ctx lookup to get a remote interface to my TestHelloBean - this is run from the command line and i watch the error trace
|
|
| | package test;
| |
| | import java.util.Hashtable;
| |
| | import javax.naming.InitialContext;
| | import org.domain.wstest2.webservices.*;
| |
| | public class Test {
| |
| | /**
| | * @param args
| | */
| | public static void main(String[] args) throws Exception
| | {
| |
| | InitialContext ctx;
| | // TODO Auto-generated method stub
| |
| | TestHelloServiceRemote test;
| |
| | HelloService s = new HelloService();
| | HelloServiceWS ws = s.getHelloServiceWSPort();
| |
| |
| | ctx = getInitialContext();
| |
| | test = (TestHelloServiceRemote) ctx.lookup ("TestHelloBean/remote");
| | //String res = ws.sayHello();//test.sayHello();
| | String res = test.sayHello(); System.out.println ("test: returned " + res + " \n");
| |
| | }
| |
| | public static InitialContext getInitialContext() throws Exception
| | {
| | Hashtable<String, String> props = getInitialContextProperties();
| | return new InitialContext(props);
| | }
| |
| | private static Hashtable<String,String> getInitialContextProperties()
| | {
| | Hashtable <String, String> props = new Hashtable <String, String>();
| | props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| | props.put("java.naming.provider.url", "jnp://localhost:1099");
| | props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
| | return props;
| | }
| |
| | }
| |
| |
|
|
| this gives me an error like this
|
|
|
| |
| | Exception in thread "main" javax.ejb.EJBException: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| | at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| | Caused by: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
| | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
| | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| | at $Proxy144.sayHello(Unknown Source)
| | at test.TestHelloBean.sayHello(TestHelloBean.java:18)
| | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| | at java.lang.reflect.Method.invoke(Unknown Source)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| | at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
| | at org.jboss.remoting.Client.invoke(Client.java:1634)
| | at org.jboss.remoting.Client.invoke(Client.java:548)
| | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
| | at $Proxy25.sayHello(Unknown Source)
| | at test.Test.main(Test.java:30)
| | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
| | at $Proxy25.sayHello(Unknown Source)
| | at test.Test.main(Test.java:30)
| | Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| | at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
| | at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:156)
| | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:289)
| | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
| | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| | at $Proxy144.sayHello(Unknown Source)
| | at test.TestHelloBean.sayHello(TestHelloBean.java:18)
| | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| | at java.lang.reflect.Method.invoke(Unknown Source)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
| | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| | at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
| | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| |
|
| i've also tried this from the client (without the ejb lookup ) as follows (modified client)
|
|
|
|
| |
| |
| | ...
| | HelloService s = new HelloService();
| | HelloServiceWS ws = s.getHelloServiceWSPort();
| |
| | ctx = getInitialContext();
| |
| | test = (TestHelloServiceRemote) ctx.lookup ("TestHelloBean/remote");
| |
| | String res = ws.sayHello(); //String res = test.sayHello();
| | System.out.println ("test: returned " + res + " \n");
| |
|
|
| This also errors with this at the client side
|
|
| | Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header!
| | at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:143)
| | at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
| | at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
| | at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
| | at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
| | at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
| | at com.sun.xml.ws.client.Stub.process(Stub.java:235)
| | at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
| | at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
| | at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
| | at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
| | at $Proxy24.sayHello(Unknown Source)
| | at test.Test.main(Test.java:29)
| |
|
| and this at the server
|
|
| | 02:06:11,100 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| | at java.lang.Thread.run(Unknown Source)
| | 02:06:11,111 ERROR [RequestHandlerImpl] Error processing web service request
| | org.jboss.ws.WSException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at org.jboss.ws.WSException.rethrow(WSException.java:68)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| | at java.lang.Thread.run(Unknown Source)
| | Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
| | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
| | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
| | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| | ... 22 more
| | 02:06:11,121 ERROR [[HelloService]] Servlet.service() for servlet HelloService threw exception
| | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
| | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
| | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
| | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| | at java.lang.Thread.run(Unknown Source)
| |
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139966#4139966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139966
16 years, 9 months