[JBoss Web Services] - Call web service in JBoss server A which call another web service in JBoss server B
by Jin Xu
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&con...]
13 years, 10 months
[JBoss Messaging] - Problem with JBoss Messaging Queue
by Albert Newton
Albert Newton [https://community.jboss.org/people/albertnewton] created the discussion
"Problem with JBoss Messaging Queue"
To view the discussion, visit: https://community.jboss.org/message/740291#740291
--------------------------------------------------------------
I am using JBoss 4.2.3.GA, and am using JBoss messaging queue in my application. It is giving me the following error:
2012-06-06 16:24:42,227 ERROR -> (main) [org.jboss.messaging.util.ExceptionUtil] Queue[null, name=ARRIncoming] startService
java.lang.IllegalStateException: Did not load correct number of messages, wanted:10518 but got:10498
at org.jboss.messaging.core.impl.PagingChannelSupport.processReferences(PagingChannelSupport.java:571)
at org.jboss.messaging.core.impl.PagingChannelSupport.doLoad(PagingChannelSupport.java:498)
at org.jboss.messaging.core.impl.PagingChannelSupport.load(PagingChannelSupport.java:211)
at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:105)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
I have two nodes in my cluster, and this error happens when I take down one of the instances, and then try to bring it up. I tried looking online for any solutions to this problem, but I don't believe that I found any.
Does anyone have any ideas?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740291#740291]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months
[Beginner's Corner] - getting started unit testing - embedded JBoss AS 7?
by Matthew Cornell
Matthew Cornell [https://community.jboss.org/people/matthewcornell] created the discussion
"getting started unit testing - embedded JBoss AS 7?"
To view the discussion, visit: https://community.jboss.org/message/739482#739482
--------------------------------------------------------------
Hi Folks. I'm just getting started with JBoss AS 7, having tried and ultimately failed to get GlassFish Embedded working for my Java EE 6 app's unit tests. Please tell me: How do I go about using JBoss to do unit tests without having the server up and running? I'm hoping that all I need is a) a .jar file (ideally one!) and b) some simple code for starting the in-memory server, configuring it, and then shutting it down. An example would be awesome! I've searched for "jboss embedded," but what I found was not on the mark or was outdated. I found the JBoss Embedded community at https://community.jboss.org/community/jbossas/embedded https://community.jboss.org/en/jbossas/embedded, but it's really dead, which is discouraging. The articles at https://community.jboss.org/docs/DOC-13843 https://community.jboss.org/wiki/JBossEmbeddedAS haven't been touched in two years. I found a bunch of mentions of Arquillian, but I'm not familiar with it. Finally, the ultimate icing on the cake would be to do this without Maven. Is what I'm trying to do so strange? I saw a presentation by one of the JBoss leaders, who touted its applicability specifically for embedded unit testing, so maybe I'm using the wrong terminology in my search. Thanks in advance -- matt
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/739482#739482]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months
[jBPM] - POJO getters mapped to task parameters
by eljan
eljan [https://community.jboss.org/people/eljan] created the discussion
"POJO getters mapped to task parameters"
To view the discussion, visit: https://community.jboss.org/message/740507#740507
--------------------------------------------------------------
Hi
I'm using JBPM 5.3 and I want to have a POJO as a process variable. In my process nodes I want to specify a getter method of this POJO as a value for a task's parameter mapping. Is this possible?
I have tried it and with old eclipse plugin it works - the getter method executes and node gets returned value as an input parameter.
However I get following warnings in the server log:
(null: 39, 49): cvc-datatype-valid.1.2.1: 'data.getMyValue()' is not a valid value for 'NCName'.
(null: 39, 49): cvc-type.3.1.3: The value 'data.getMyValue()' of element 'sourceRef' is not valid.
In bpmn XML I have:
<dataInputAssociation>
<sourceRef>data.getMyValue()</sourceRef>
<targetRef>_5_inputInput</targetRef>
</dataInputAssociation>
When I open this process with the new BPMN 2.0 Eclipse Editor this parameter is not mapped and there doesn't seem to be a way to map it to the getter function.
In bpmn XML I now have:
<dataInputAssociation id="DataInputAssociation_1">
<targetRef>_5_inputInput</targetRef>
</dataInputAssociation>
When I enter the parameter mapping again in the new editor as an expression with type Java i get following XML:
<dataInputAssociation id="DataInputAssociation_1">
<sourceRef>data</sourceRef>
<targetRef>_5_inputInput</targetRef>
<assignment id="Assignment_1">
<from xsi:type="tFormalExpression" id="FormalExpression_2" language=" http://www.java.com/java http://www.java.com/java">data.getMyValue()</from>
<to xsi:type="tFormalExpression">_5_inputInput</to>
</assignment>
</dataInputAssociation>
But when I execute this process, I get following error:
...
Caused by: javax.xml.xpath.XPathExpressionException
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:402)
at org.jbpm.bpmn2.xpath.XPATHAssignmentAction.execute(XPATHAssignmentAction.java:41)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.handleAssignment(WorkItemNodeInstance.
... 26 more
Caused by: javax.xml.transform.TransformerException: Could not find function: data.getMyValue
at com.sun.org.apache.xpath.internal.compiler.XPathParser.error(XPathParser.java:608)
at com.sun.org.apache.xpath.internal.compiler.XPathParser.FunctionCall(XPathParser.java:1505)
...
(full stacktrace at http://pastie.org/4045564 http://pastie.org/4045564 )
Why did I get the warnings with the old eclipse plugin?
Is this functonality not supported by BPMN 2.0 and it just happens to work with the old eclipse editor plugin?
Or is it that the new BPMN 2.0 editor just doesn't support this yet, but will do so in the future?
Or am I just doing something wrong? :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740507#740507]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months
[jBPM] - ClassCastException when trying to open a process in web designer
by Michael G
Michael G [https://community.jboss.org/people/mpgong] created the discussion
"ClassCastException when trying to open a process in web designer"
To view the discussion, visit: https://community.jboss.org/message/740456#740456
--------------------------------------------------------------
Hello,
I'm having an issue opening a process that was built in eclipse and loaded into guvnor from eclipse using the web designer. I'm getting this exception -
10:19:45,669 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl] (http--0.0.0.0-8080-6) java.math.BigInteger cannot be cast to java.lang.String: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.String
at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallSequenceFlow(Bpmn2JsonMarshaller.java:1923) [classes:]
at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallFlowElement(Bpmn2JsonMarshaller.java:702) [classes:]
at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:426) [classes:]
at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:318) [classes:]
at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:161) [classes:]
at com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:267) [classes:]
at com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:35) [classes:]
at com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:128) [classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
at com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.7.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1.jar:7.1.0.CR1]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.7.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.7.Final.jar:]
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.7.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.7.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.7.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [:1.7.0_01]
I think i was able to view the process before but nothing changed and when i created a new package to load it into i found that i can't open the process.
Anyone have an idea as to what might be causing this? We want to show to our customers using the web designer because they are remote and don't have access nor do we want them to have access to the eclipse viewer.
We are using jbpm 5.2 and i believe with the newest designer but can't say for sure.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740456#740456]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months