[JBossWS] - problem on jboss-4.2.0.GA not if upgraded with jbossws1.2.0.
by Pires da Silva
Hello,
Executing my web service under jboss4.2.0-GA on Linux, I get:
(meaning jboss-4.2.0.GA is just unzipped, all required war etc copied under appropriate directories)
but when using jboss-4.2.0.GA + upgrading it from jbossws1.2.0.SP1 it is working.
java.lang.NoSuchMethodError: javax.xml.soap.SOAPElement.getElementQName()Ljavax/xml/namespace/QName;
at org.jboss.ws.core.soap.SOAPElementImpl.getChildElements(SOAPElementImpl.java:504)
at org.jboss.ws.core.soap.SOAPBodyImpl.faultIterator(SOAPBodyImpl.java:181)
at org.jboss.ws.core.soap.SOAPBodyImpl.getFault(SOAPBodyImpl.java:168)
at org.jboss.ws.core.soap.SOAPMessageImpl.isFaultMessage(SOAPMessageImpl.java:326)
at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:244)
at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
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:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Catherine Pires da Silva
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100762#4100762
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100762
17 years, 1 month
[JBossWS] - Re: Web Service client side
by abdujaparov
Hi, I've searched but I don't uderstand much. I have the service name, the operation name and parameters of the operation and I want invoke the operation.
I've found this code of an axis dynamic client, I've created it but when I meke the call to web service I receive this error:
| Exception in thread "main" AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
| faultSubcode:
| faultString: For input string: ""
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace:For input string: ""
| .....
| .....
|
in the client while jboss give me this error:
| 17:13:27,275 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://tesi/}TesiPort does
| not contain operation meta data for: fattoriale
| at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestinatio
| n(ServiceEndpointInvoker.java:457)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin
| tInvoker.java:176)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan
| dlerImpl.java:408)
| ....
| ....
| ....
My client code is the following:
| String endpoint = "http://127.0.0.1:8080/Tesi";
| Service service = new Service();
| Call call = (Call) service.createCall();
| call.setTargetEndpointAddress(new java.net.URL(endpoint));
| call.setOperationName("fattoriale");
| call.addParameter("arg0", XMLType.XSD_INT, ParameterMode.IN);
| call.setReturnType(XMLType.XSD_DOUBLE);
| Object[] param = new Object[] {new Integer(6)};
| Double risultato = (Double)call.invoke(param);
| System.out.println(risultato);
|
How do I have to modify in this code?
I've looked for jax-ws but I don't understand anything.
Thanks, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100754#4100754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100754
17 years, 1 month
[JBossWS] - Hold the client ip from the client calls made to the web se
by adinarayana.gunnam
Hi
I am working on Ejb3 web services.I want to hold the client ip from the client calls made
to the web service.I deployed this service in jboss AS 4.2.1
In the service implementation i started using
@Resource
SessionContext sessionCtx;
My idea is to get the MessageContext from this SessionContext and finally to
get the HttpServletRequest.
I got the sessionCtx(BaseSessionContext) object.When i am trying to access the
MessageContect using the below syntax
System.out.println(sessionCtx.getMessageContext());
I got ---ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.ejb.EJBException: java.lang.IllegalStateException: No message context found
Please provide me with correct solution to this problem.Please also suggest if there is any
alternate approach to get the client ip in the service implementation.
Thanks
Adinarayana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100639#4100639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100639
17 years, 1 month