[JBoss jBPM] - Jboss jBPM/jBoss ESB link
by Arutha
Good afternoon,
I've been running into a problem the past two days; here's the situation: I'm running jBoss ESB with jBoss jBPM. I've got a process definition running, and I'm calling a service on the buss from that process for serializing an object and attaching it to the message. When I get to the next node of the process however, this attached object is gone.
I know what the problem is, I've had the same thing about three months back , but the same solution does not seem to apply, mainly because the labels changed, most likely ^^
Here's the post I made back then, in essense the same problem with an older ESB version: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079172#4079172
I'm currently running Jboss ESB4.2 MR3 with jBPM integrated.
Basically, the two main components in this application are the bus definition(jboss-esb.xml) and the jBPM definition (process.xml)
The node where things go bad in the process definition:
<node name="ZorgringFormatConversionNode">
| <event type="node-enter">
| <action name="esbAction" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
| <esbCategoryName>ZorgRingConnectServices</esbCategoryName>
| <esbServiceName>ConversionToZorgringFormatService</esbServiceName>
| <millisToWaitForResponse>5000</millisToWaitForResponse>
| <jbpmToEsbVars>
| <mapping jbpm-name="theBody" esb-name="BODY_CONTENT" />
| <mapping jbpm-name="zorgringformat" esb-name="defaultEntry" />
| </jbpmToEsbVars>
| <returnVars>
| <mapping jbpm-name="theBody" esb-name="BODY_CONTENT" />
| <mapping jbpm-name="zorgringformat" esb-name="defaultEntry" />
| </returnVars>
| </action>
| </event>
| <transition name="" to="MEDFormatConversionNode"/>
| </node>
This node calls a service on the bus, this service calls an actionclass which attaches the object to the message and returns the message to the service. Next, the process goes to the next node. By then, the object is gone.
I'm sure this has to do with the jbpmToEsbVars and returnVars I'm declaring. I do this on the ESB once when initialising the business process:
<action name="signal_the_new_process_instance"
| class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
| <property name="command" value="SignalCommand" />
| <property name="process-definition-name" value="processMessageDefinition"/>
| <property name="esb-to-jbpm">
| <variables>
| <variable esb-name="eVar1" jbpm-name="counter" value="45" />
| <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
| <variable esb-name="defaultEntry" jbpm-name="zorgringformat" />
| </variables>
| </property>
| </action>
And I declare the same jbpmToEsbVars and returnVars on each node. When I'm adding the object, I attach it with the label "zorgringformat"(retrieving it in the same actionclass right after I added it works, so it's simply lost in the process somewhere). Any idea what I'm doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113424#4113424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113424
18 years, 4 months
[JBoss Portal] - Portal 2.6.3 + AS 4.2.2 Bundle Error
by gspillman
I'm getting the following error when starting the Portal 2.6.3 + AS 4.2.2 Bundle. This error does not occur when I download the two separately.
09:13:57,842 INFO [Server] Starting JBoss (MX MicroKernel)...
| 09:13:57,842 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
| 09:13:57,842 INFO [Server] Home Dir: C:\Documents and Settings\guy.spillman.US-AIRLIQUIDE\My Documents\java\servers\jboss-portal-2.6.3.GA
| 09:13:57,842 INFO [Server] Home URL: file:/C:/Documents and Settings/guy.spillman.US-AIRLIQUIDE/My Documents/java/servers/jboss-portal-2.6.3.GA/
| 09:13:57,842 INFO [Server] Patch URL: null
| 09:13:57,842 INFO [Server] Server Name: default
| 09:13:57,842 INFO [Server] Server Home Dir: C:\Documents and Settings\guy.spillman.US-AIRLIQUIDE\My Documents\java\servers\jboss-portal-2.6.3.GA\server\default
| 09:13:57,842 INFO [Server] Server Home URL: file:/C:/Documents and Settings/guy.spillman.US-AIRLIQUIDE/My Documents/java/servers/jboss-portal-2.6.3.GA/server/default/
| 09:13:57,842 INFO [Server] Server Log Dir: C:\Documents and Settings\guy.spillman.US-AIRLIQUIDE\My Documents\java\servers\jboss-portal-2.6.3.GA\server\default\log
| 09:13:57,873 INFO [Server] Server Temp Dir: C:\Documents and Settings\guy.spillman.US-AIRLIQUIDE\My Documents\java\servers\jboss-portal-2.6.3.GA\server\default\tmp
| 09:13:57,873 INFO [Server] Root Deployment Filename: jboss-service.xml
| 09:13:58,388 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
| 09:13:58,388 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_13-b05,Sun Microsystems Inc.
| 09:13:58,388 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 09:13:59,292 INFO [Server] Core system initialized
| 09:13:59,541 ERROR [MainDeployer] Could not create deployment: file:/C:/Documents and Settings/guy.spillman.US-AIRLIQUIDE/My Documents/java/servers/jboss-portal-2.6.3.GA/server/default/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| 09:13:59,666 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 09:13:59,666 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 09:13:59,666 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
| Press any key to continue . . .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113423#4113423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113423
18 years, 4 months