<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Call web service in JBoss server A which call another web service in JBoss server B
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/xujin_helen">Jin Xu</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/740549#740549">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I encountered some JBoss web service issue, and hope I can get some help here from some JBoss expert.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Client => our web service on JBoss EAP 5.0.0 => vendor's web service on another JBoss EAP 5.0.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1. There is no issue for a standalone Java application to invoke vendor's proxy which invoke vender's web service.</p><p>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.</p><p>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).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Vendor provides us a list of libraries that include </p><p>a) many libraries from JBoss client folder</p><p>b) vendor's proxy library which ease us to invoke vendor's web service. </p><p>c) several other libraries.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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</p><p>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)</p><p>2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  at java.security.AccessController.doPrivileged(Native Method)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>2012-06-07 13:55:36,599 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-1)  ... 36 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks in advance, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Jin</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/740549#740549">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>