[jboss-user] [JBoss Web Services] - Call web service in JBoss server A which call another web service in JBoss server B

Jin Xu do-not-reply at jboss.com
Thu Jun 7 19:21:37 EDT 2012


Jin Xu [https://community.jboss.org/people/xujin_helen] created the discussion

"Call web service in JBoss server A which call another web service in JBoss server B"

To view the discussion, visit: https://community.jboss.org/message/740549#740549

--------------------------------------------------------------
Hi, 

I encountered some JBoss web service issue, and hope I can get some help here from some JBoss expert.

We have vendor's software installed on JBoss EAP 5.0.0 (this is the latest version they support, so we can't install any newer version of JBoss). Then we have our own web service installed on another JBoss EAP 5.0.0 which invoke vendor's web service. So both JBoss versions are exactly same.

Client => our web service on JBoss EAP 5.0.0 => vendor's web service on another JBoss EAP 5.0.0

1. There is no issue for a standalone Java application to invoke vendor's proxy which invoke vender's web service.
2. There is no problem when I create a simple operation (@WebMethod) in our web service. This is used to verify our web service war file is working.
3. However, when I create a new operation that invoke vender's web service, it has problem. I am using eclipse Helios 32 bit with JBoss 5.0 Runtime Server setup inside eclipse (jdk1.6.0_20).

Vendor provides us a list of libraries that include 
a) many libraries from JBoss client folder
b) vendor's proxy library which ease us to invoke vendor's web service. 
c) several other libraries.

3.1 If I only configure libraries of b) and c) at JBoss server Classpath, it will throws below exception, and I know this class is in jbossws-native-core.jar which is located at JBoss client folder.

3.2 If I configure all libraries of a), b), and c), then I can't start JBoss from eclipse. Please see errors from attached file. 

2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1) java.lang.NoClassDefFoundError: org/jboss/ws/jaxrpc/ServiceFactoryImpl
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at com.datasweep.plantops.proxies.jboss.soapImpl.SecuritySOAPImpl._login(Unknown Source)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at com.datasweep.plantops.proxies.ProxyFactory.getSecurityProxy(Unknown Source)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at com.datasweep.plantops.proxies.ProxyFactory.login(Unknown Source)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at com.aligntech.service.MyService.connectFTPC90(MyService.java:77)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.lang.reflect.Method.invoke(Method.java:597)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:108)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:468)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:293)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.lang.Thread.run(Thread.java:619)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1) Caused by: java.lang.ClassNotFoundException: org.jboss.ws.jaxrpc.ServiceFactoryImpl
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.security.AccessController.doPrivileged(Native Method)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  ... 36 more

Thanks in advance, 

Jin
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/740549#740549]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120607/cc9c0f88/attachment-0001.html 


More information about the jboss-user mailing list