[jBPM] - JBoss AS error with brms-standalone5.3
by Sam Mano
Sam Mano [https://community.jboss.org/people/artist123] created the discussion
"JBoss AS error with brms-standalone5.3"
To view the discussion, visit: https://community.jboss.org/message/751968#751968
--------------------------------------------------------------
guvnor standalone version 5.3 gives this error...
human task service is not started....
efault]
16:57:46,786 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERR
ORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND
Depends on 'jboss.messaging:service=ServerPeer' **")
Dependency "jboss.jgroups:service=ChannelFactory" (should be in state "Create", but is actually in state "** NOT FOU
ND Depends on 'jboss.jgroups:service=ChannelFactory' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jgroups:service=ChannelFactory" is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.jgroups:service=ChannelFactory' **
Deployment "jboss.messaging:service=ServerPeer" is in error due to the following reason(s): ** NOT FOUND Depends on 'j
boss.messaging:service=ServerPeer' **
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751968#751968]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - JBPM5.3+Jboss5.1 GA Human Task Error
by Sam Mano
Sam Mano [https://community.jboss.org/people/artist123] created the discussion
"JBPM5.3+Jboss5.1 GA Human Task Error"
To view the discussion, visit: https://community.jboss.org/message/751763#751763
--------------------------------------------------------------
Hi,
I am getting this error...any help...
Environment : JBPM5.3, Jboss 5.1, MySql,
I have attached my datasource file and pesistence.xml files...thanks in advance...
15:43:50,915 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=jbpm-human-task.
war#org.jbpm.task state=Create
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JT
A enabled persistence context named: org.jbpm.task
at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:115)
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
rollerContextAction.java:243)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
ntextAction.java:111)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
tion.java:72)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
Action.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
1)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:125)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:52)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
ce.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:223)
at org.jboss.Main$1.run(Main.java:574)
at java.lang.Thread.run(Thread.java:736)
15:43:51,065 INFO [TomcatDeployment] deploy, ctxPath=/jbpm-human-task
15:43:51,275 INFO [Configuration] Reading mappings from resource : META-INF/Taskorm.xml
15:43:51,295 INFO [QueryBinder] Binding Named query: TasksAssignedAsBusinessAdministrator => select new org.jbpm.task.q
uery.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.text, t.taskData.status, t.pr
iority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751763#751763]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - Is it possible to get the StatefulKnowledgeSession/processInstance from solely its ID?
by Bing Lim
Bing Lim [https://community.jboss.org/people/binglim] created the discussion
"Is it possible to get the StatefulKnowledgeSession/processInstance from solely its ID?"
To view the discussion, visit: https://community.jboss.org/message/751749#751749
--------------------------------------------------------------
Hi,
I have some questions on how to obtain the StatefulKnowledgeSession or processInstance that is running concurrently with another program.
>From the documentation, it states that it's possible to make external calls using
* processInstance.signalEvent(type, eventData);
* ksession.signalEvent(type, eventData);
When I run my first .java file, I stored the current ksession.getId() and processInstanceId into a xml file and have a signal node at the converging gateway to wait for external signaling before continuing with the workflow.
https://community.jboss.org/servlet/JiveServlet/showImage/2-751749-19140/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-751749-19...
After that, I ran another bpmn workflow that reads the xml file for both the ksession ID and processInstance ID.
However, I do not know how to use those 2 information to signal the signal node from the first bpmn workflow to continue with the workflow.
(I was able to print out the String reperesentation of the 2 IDs but whenever I create a new ksession and do ksession.getWorkItemManager().registerWorkItemHandler("Signaling", new Signaling(ksession.getProcessInstance(Id)));
I kept getting nullPointerException )
-Signaling is a service node that does either ProcessInstance.signalEvent("Signal", null); or session.signalEvent("Signal", null); (Tried both ways but didn't work)
Any help is greatly appreciated. Thanks in advance!
Best Regards,
Bing
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751749#751749]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - Error message while using JPAKnowledgeService and how to do external Signaling with persistence
by Bing Lim
Bing Lim [https://community.jboss.org/people/binglim] created the discussion
"Error message while using JPAKnowledgeService and how to do external Signaling with persistence"
To view the discussion, visit: https://community.jboss.org/message/751986#751986
--------------------------------------------------------------
Hi,
I am trying to use persistence such that an external signaling can continue a workflow process that is in a wait-state.
(I plan on running SignalEvent.java after ProcessMain is in a wait state to trigger the signal node and continue with the workflow)
https://community.jboss.org/servlet/JiveServlet/showImage/2-751986-19148/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-751986-19...
However, I get these errors when I run ProcessMain.java.
Exception in thread "main" java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:143)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
at com.sample.ProcessMain.main(ProcessMain.java:62)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129)
... 3 more
Caused by: java.lang.NullPointerException
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:168)
... 8 more
1) I read the documentations and it states:
// recreate the session from database using the sessionId
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null, env );
Does the kbase has to be the original knowledgebase? or am I allowed to create a new knowledgebase but as long as the sessionId is correct, I can signal a bpmn workflow externally that is on a different knowledgebase?
2) Can someone elaborate what the error message means and how to do external signaling with persistence and JPAKnowledgeService?
Any help is appreciated. Thanks!
Best,
Bing
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751986#751986]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - brms-standalone5.3 integarte with mysql problem...
by Sam Mano
Sam Mano [https://community.jboss.org/people/artist123] created the discussion
"brms-standalone5.3 integarte with mysql problem..."
To view the discussion, visit: https://community.jboss.org/message/751938#751938
--------------------------------------------------------------
Hi,
I try to install the brms-standalone-5.3,...
1) Guvnor working fine...
2) jbpm table created but, organizationalentity table no data,
3) jbpm-console not working,
also I got the following error....attached are my persistence.xml for jbpm and human task and jboss data source file...thanks in advance
13:41:51,758 INFO [NamingHelper] JNDI InitialContext properties:{}
13:41:52,218 ERROR [[/jbpm-human-task]] StandardWrapper.Throwable
java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction incompatible with javax.transacti
on.UserTransaction
at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:119)
at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:69)
at org.jbpm.task.service.persistence.TaskJTATransactionManager.<init>(TaskJTATransactionManager.java:28)
at org.jbpm.task.service.persistence.TaskSessionFactoryImpl.createTaskServiceSession(TaskSessionFactoryImpl.java
:75)
at org.jbpm.task.service.TaskService.createSession(TaskService.java:164)
at org.jbpm.task.service.TaskService.initialize(TaskService.java:115)
at org.jbpm.task.service.TaskService.initialize(TaskService.java:101)
at org.jbpm.task.service.TaskService.<init>(TaskService.java:79)
at org.jbpm.task.servlet.HumanTaskServiceServlet.init(HumanTaskServiceServlet.java:108)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4417)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:313)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
Action.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
1)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
ce.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:223)
at org.jboss.Main$1.run(Main.java:574)
at java.lang.Thread.run(Thread.java:736)
13:41:52,218 ERROR [[/jbpm-human-task]] Servlet /jbpm-human-task threw load() exception
java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction incompatible with javax.transacti
on.UserTransaction
at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:119)
at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:69)
at org.jbpm.task.service.persistence.TaskJTATransactionManager.<init>(TaskJTATransactionManager.java:28)
at org.jbpm.task.service.persistence.TaskSessionFactoryImpl.createTaskServiceSession(TaskSessionFactoryImpl.java
:75)
at org.jbpm.task.service.TaskService.createSession(TaskService.java:164)
at org.jbpm.task.service.TaskService.initialize(TaskService.java:115)
at org.jbpm.task.service.TaskService.initialize(TaskService.java:101)
at org.jbpm.task.service.TaskService.<init>(TaskService.java:79)
at org.jbpm.task.servlet.HumanTaskServiceServlet.init(HumanTaskServiceServlet.java:108)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4417)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:313)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
Action.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
1)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
ce.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:223)
at org.jboss.Main$1.run(Main.java:574)
at java.lang.Thread.run(Thread.java:736)
13:41:52,248 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
13:41:52,308 INFO [HornetQJMSRealDeployer] Deploying unit mailto:AbstractVFSDeploymentContext@243928714{vfsfile:/D:/redhat/brm AbstractVFSDeploymentContext@243928714{vfsfile:/D:/redhat/brm
s-standalone-5.3.0/jboss-as/server/default/deploy/hornetq/hornetq-jms.xml} with config org.hornetq.jms.server.config.imp
mailto:l.JMSConfigurationImpl@52e452e4 l.JMSConfigurationImpl@52e452e4
13:41:52,358 INFO [HornetQServerImpl] trying to deploy queue jms.queue.DLQ
13:41:52,378 INFO [HornetQServerImpl] trying to deploy queue jms.queue.ExpiryQueue
13:41:52,428 INFO [ProfileServiceBootstrap] Loading profile: https://community.jboss.org/mailto:ProfileKey@9780978[domain=default ProfileKey@9780978[domain=default, server=default, name=de
fault]
13:41:52,428 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERR
ORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JBossTimerServiceFactory" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in state "Create", but is actually in state
"** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in sta
te "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actua
lly in state "Configured")
Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in sta
te "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOU
ND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND
Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **
Deployment "vfsfile:/D:/redhat/brms-standalone-5.3.0/jboss-as/server/default/deploy/business-central.war/" is in error
due to the following reason(s): org.xml.sax.SAXException: The content of element type "jboss-web" must match "(class-lo
ading?,security-domain?,context-root?,virtual-host*,use-session-cookies?,replication-config?,resource-env-ref*,resource-
ref*,security-role*,ejb-ref*,ejb-local-ref*,message-destination-ref*,message-destination*,webservice-description*,servic
e-ref*,depends*,servlet*,authenticators*)". @ vfsfile:/D:/redhat/brms-standalone-5.3.0/jboss-as/server/default/deploy/bu
siness-central.war/WEB-INF/jboss-web.xml[10,13]
13:41:52,438 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
13:41:52,448 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
13:41:52,458 INFO [ServerImpl] JBoss (Microcontainer) [5.3.0.GA (build: SVNTag=5.3.0.GA date=201206201517)] Started in
2m:35s:883ms
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751938#751938]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - Drools Spring Integration, errors in DroolsSpringTransactionManager
by John Bize
John Bize [https://community.jboss.org/people/jbize] created the discussion
"Drools Spring Integration, errors in DroolsSpringTransactionManager"
To view the discussion, visit: https://community.jboss.org/message/751900#751900
--------------------------------------------------------------
I have an application that integrates jBPM, Spring, Hibernate/JPA, JPA2, and Richfaces4. It's mostly working ok, except sometimes I am/was getting NullPointer exceptions from the DroolsSpringTransactionManager. I'm using drools-spring 5.3.1.Final. This class is apparently a (broken?) wrapper class around (in my case), the org.springframework.orm.jpa.JpaTransactionManager.
Looking at the source code, I observed several things. There is an obvious bug in the begin() method in that if the call to getStatus() returns STATUS_NO_TRANSACTION, which it will if the wrapped tm (ptm) is null, it immediately dereferences the null ptm. (this.ptm.getTransaction(td)). I'm not too woried about this one as it seems rather unlikely.
What's happening for me (in the getStatus() method) is that it's making the call "transaction = this.ptm.getTransaction(td);" which is occasionally throwing an "IllegalStateException: Transaction already active," wrapped in an outer RuntimeException and dropping down to the finally block. There, the still null transaction is committed, throwing an NPE that masks the original exception. To mitigate this, I added a catch RuntimeException and if the cause is an IllegalStateException, I return STATUS_UNKNOWN. In the finally block, I also ensure that I don't try to commit a null transaction.
Clearly this code is fragile, and https://issues.jboss.org/browse/JBRULES-2791 https://issues.jboss.org/browse/JBRULES-2791 is probably correct, but *can anyone suggest why I'm sometimes getting the "IllegalStateException: Transaction already active" exceptions in the first place. I am using 4 separate persistence units (and transaction managers), two for basic components of my application, one for the jBPM process tables, and one for the LocalTaskManager Task tables.*
Copying the code from: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-c... https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-c..., my mitigating changes are in red (typed, not copied):
public class DroolsSpringTransactionManager
implements
TransactionManager {
Logger logger = LoggerFactory.getLogger( getClass() );
private AbstractPlatformTransactionManager ptm;
TransactionDefinition td = new DefaultTransactionDefinition();
TransactionStatus currentTransaction = null;
public DroolsSpringTransactionManager(AbstractPlatformTransactionManager ptm) {
this.ptm = ptm;
}
public boolean begin() {
try {
if ( getStatus() == TransactionManager.STATUS_NO_TRANSACTION ) {
// If there is no transaction then start one, we will commit within the same Command
// it seems in spring calling getTransaction is enough to begin a new transaction
currentTransaction = this.ptm.getTransaction( td );
return true;
} else {
return false;
}
} catch ( Exception e ) {
logger.warn( "Unable to begin transaction",
e );
throw new RuntimeException( "Unable to begin transaction",
e );
}
}
public void commit(boolean transactionOwner) {
if ( transactionOwner ) {
try {
// if we didn't begin this transaction, then do nothing
this.ptm.commit( currentTransaction );
currentTransaction = null;
} catch ( Exception e ) {
logger.warn( "Unable to commit transaction",
e );
throw new RuntimeException( "Unable to commit transaction",
e );
}
}
}
public void rollback(boolean transactionOwner) {
try {
if ( transactionOwner ) {
this.ptm.rollback( currentTransaction );
currentTransaction = null;
}
} catch ( Exception e ) {
logger.warn( "Unable to rollback transaction",
e );
throw new RuntimeException( "Unable to rollback transaction",
e );
}
}
/**
* Borrowed from Seam
*/
public int getStatus() {
if ( ptm == null ) {
return TransactionManager.STATUS_NO_TRANSACTION;
}
logger.debug( "Current TX name (According to TransactionSynchronizationManager) : " + TransactionSynchronizationManager.getCurrentTransactionName() );
if ( TransactionSynchronizationManager.isActualTransactionActive() ) {
TransactionStatus transaction = null;
try {
if ( currentTransaction == null ) {
transaction = ptm.getTransaction( td );
if ( transaction.isNewTransaction() ) {
return TransactionManager.STATUS_COMMITTED;
}
} else {
transaction = currentTransaction;
}
logger.debug( "Current TX: " + transaction );
// If SynchronizationManager thinks it has an active transaction but
// our transaction is a new one
// then we must be in the middle of committing
if ( transaction.isCompleted() ) {
if ( transaction.isRollbackOnly() ) {
return TransactionManager.STATUS_ROLLEDBACK;
}
return TransactionManager.STATUS_COMMITTED;
} else {
// Using the commented-out code in means that if rollback with this manager,
// I always have to catch and check the exception
// because ROLLEDBACK can mean both "rolled back" and "rollback only".
// if ( transaction.isRollbackOnly() ) {
// return TransactionManager.STATUS_ROLLEDBACK;
// }
return TransactionManager.STATUS_ACTIVE;
}
{color:#f00}
} catch (RuntimeException e) {
if ( e.getCause() instanceof IllegalStateException ) {
logger.debug( "IllegalStateException in getStatus()", e );
return TransactionManager.STATUS_UNKNOWN;
} else {
logger.debug( "Unexpected Exception in getStatus()", e );
throw e;
}
{color}
} finally {
if ( currentTransaction == null ) {
{color:#f00}
if (transaction != null) {
{color}
ptm.commit( transaction );
{color:#f00}
}
{color}
}
}
}
return TransactionManager.STATUS_NO_TRANSACTION;
}
public void registerTransactionSynchronization(TransactionSynchronization ts) {
TransactionSynchronizationManager.registerSynchronization( new SpringTransactionSynchronizationAdapter( ts ) );
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751900#751900]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[JBoss Tools] - Re: JBoss Dev Studio: jars from dependant projects disappearing from deployed wars
by Rob Stryker
Rob Stryker [https://community.jboss.org/people/rob.stryker] created the discussion
"Re: JBoss Dev Studio: jars from dependant projects disappearing from deployed wars"
To view the discussion, visit: https://community.jboss.org/message/751807#751807
--------------------------------------------------------------
I have just tried to reproduce this and am unable to. I will be adding my attempts as a unit test to verify that programatically it also fails to reproduce, and also to ensure that if a regression such as this ever comes back, it will be caught by unit test.
However, as I said, I am unable to reproduce it. The code so far is heavily unit tested, and two independent deployments (web1 and web2) should *never* reach inside each other's deployment folders at all. This is extremely unlikely and basically would violate the entire structure of the codebase to be able to do it.
If the items were inside an ear together, it would be *slightly* more likely to happen, but even then, our unit tests are fairly extensive and becoming more-so every day.
I would be glad to post up a zip file of the respective projects in case you would like to use them to reproduce. But I've been trying all morning and everything seems to be working as intended.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751807#751807]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months