[JBossWS] - JBossAS 5.1.0.GA & 3.1.2.GA & META-INF
by Sefai
Hi all,
I have a working war for 4.2.x, containing both a ws client and a server using WSSecurity, when I deploy it on 5.1.0.GA, the serving side worked but client side did not.
After days of debugging I found out that when application tries to consume some other web-service, standard-jaxws-client-config.xml and jboss-wsse-client.xml which are both located under META-INF are not read, but the client config under server/.../deployers/jbossws.deployer/META-INF/standard-jaxws-client-config.xml is read. So the WSSecurity does not work.
I moved META-INF under WEB-INF/classes of the war, some wiki I dont remember now was saying resource files must be under WEB-INF/classes for AS 5.x series, this time client worked but applications own WebService did not, it couldn't find standard-jaxws-endpoint-config.xml. So I duplicated META-INF on both directories, now both of them works.
Also server can find the keystore and truststore under WEB-INF, but the client part can only find them when they are under WEB-INF/classes, so I duplicated them, too.
I dont know the details of classloading very much, but I suspect this issue is related to it.
Is this a bug, or known issue of 5.1 which can be avoied with some other setting?
Thanks in advance...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242166#4242166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242166
15 years, 6 months
[JBossWS] - Re: Call a web service
by randhawag
Has anyone been able to resolve this?
We have difficulty connecting via client to web service endpoint.
When running client we see,
JBDS 2.0 GA
JAX-WS 2.0
Server: JBoss 4.3 EAP CP02
***********************
Create Web Service Client...
Create Web Service...
Call Web Service Operation...
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$RpcLit$PartBuilder.readResponse(ResponseBuilder.java:635)
at com.sun.xml.ws.client.sei.ResponseBuilder$RpcLit.readResponse(ResponseBuilder.java:599)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
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 $Proxy22.echo(Unknown Source)
at venture.services.helloworld.clientsample.ClientSample.main(ClientSample.java:16)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.messaging.saaj.soap.AttachmentPartImpl
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 8 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242052#4242052
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242052
15 years, 6 months
[JBossWS] - Streamlined tutorial on JBossWS w/ policies (WS-RM)?
by Oberiko
Hello,
I'm relatively new to Web Services (only done very simple clients) and I've been struggling to get a WS-RM service/client up for a few days now. Part of the problem is that I'm seeing many, many different ways on how this is done, to the point that I'm not sure what the "correct" way is.
The service part is, thanks to the @Policy annotations, seemingly very simple for me to set up:
Service
| package com.webService;
|
| import javax.jws.WebService;
|
| import org.jboss.ws.extensions.policy.PolicyScopeLevel;
| import org.jboss.ws.extensions.policy.annotation.Policy;
| import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
|
| @PolicyAttachment
| (
| @Policy
| (
| policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
| scope = PolicyScopeLevel.WSDL_BINDING
| )
| )
| @WebService
| public class Reliable {
| public String echo(String parameter){
| return "You reliably passed the string '"+parameter+"'";
| }
| }
|
configuration XML file
| <?xml version="1.0" encoding="UTF-8"?>
| <wsp:Policy
| wsu:Id="exactly_one_in_order_rm_delivery"
| xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
| xmlns:wsrmp="http://docs.oasis-open.org/ws-rx/wsrmp/200702"
| xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...">
| <wsrmp:DeliveryAssurance>
| <wsp:Policy>
| <wsrmp:ExactlyOnce/>
| <wsrmp:InOrder/>
| </wsp:Policy>
| </wsrmp:DeliveryAssurance>
| </wsp:Policy>
|
Now, I'm stuck. I gather that I need to somehow configure my client to use RM ("The RM Destination requires the use of WSRM" is the message I'm getting), but I am uncertain how to optimally do this.
Client
| public void testReliable(){
| Reliable port = new ReliableService().getReliablePort();
|
| //I need some stuff here it seems
|
| port.echo("a test message");
| }
|
Could someone provide me with the simplest guidelines I need to follow that would work? I should mention that one of my goals is keep the XML configuration to an absolute minimum, centralizing as much as possible within the application itself.
Thanks to anyone who can help me out.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241997#4241997
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241997
15 years, 6 months
[JBossWS] - Re: JBoss client WS
by jpredpos
I migrated to JBoss 5.1.0 and throws some errors:
11:02:22,389 ERROR [[ServletAdaptor]] Servlet.service() para servlet ServletAdaptor lanzó excepción
javax.servlet.ServletException: non-HTTP request or response
at javax.servlet.http.HttpServlet.service(HttpServlet.java:829)
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:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
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:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
any ideA?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241501#4241501
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241501
15 years, 6 months