[JBoss jBPM] - Problem when assignment handler is a Seam component
by caron@sadalbari.com
Hi,
I am not sure if I should be posting this on the JBPM or Seam forum?
I have set a handler for the assignment of the actor for a task node as follows:
| <task-node name="process quantum assessment">
| <task name="process quantum assessment">
| <assignment class="com.sadalbari.mvanamibia.business.claim.QuantumAssignmentHandler"></assignment>
| </task>
| </task-node>
|
The handler (QuantumAssignmentHandler) is a Seam component.
I have debugged into the code and found that none of my variables are being injected into QuantumAssignentHandler.
| @Name("quantumAssignmentHandler")
| public class QuantumAssignmentHandler implements AssignmentHandler {
|
| @In (create=true)
| private StaffService staffService;
|
| @In(scope = ScopeType.BUSINESS_PROCESS)
| private Long claimId;
|
| public void assign(Assignable assignable, ExecutionContext executionContext) {
| ...
| }
| ...
|
| }
|
Elsewhere in my code, I have used expressions (linked to methods on a stateless session bean and have had no problems with injection)
Has anyone had this problem and/or have any suggestions for me?
Thanks in advance.
Caron
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177691#4177691
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177691
17 years, 6 months
[JBoss jBPM] - No CurrentSessionContext configured!
by AJanz
i got some trouble deploying jbpm enterprise on jboss 4.2.2 ga with seam.
i removed jbpm-jpdl.jar from the jbpm-enterprise.ear and put it in the servers lib
now class loadings seems no problem any more.
but now i got No CurrentSessionContext configured!
stacktrace
| 13:55:12,707 ERROR [LogInterceptor] TransactionRolledbackException in method: pu
| blic abstract java.lang.Object org.jbpm.ejb.RemoteCommandService.execute(org.jbp
| m.command.Command) throws java.rmi.RemoteException, causedBy:
| org.hibernate.HibernateException: No CurrentSessionContext configured!
| at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactor
| yImpl.java:542)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
| Service.java:105)
| at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis
| tenceService.java:345)
| at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
| at org.jbpm.command.GetProcessDefinitionsCommand.execute(GetProcessDefin
| itionsCommand.java:30)
| at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:
| 146)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
| tatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
| ke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
| elessSessionInstanceInterceptor.java:169)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
| Interceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
| rceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
| torCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
| 81)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
| java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
| ryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
| 48)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
| lInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
|
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
| r.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
| a:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
| java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
| 0)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
| onInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy124.execute(Unknown Source)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177641#4177641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177641
17 years, 6 months