[jboss-user] [JBoss jBPM] - jms notbound exception when accessing jbpm context from ejb
Hi, I have an ejb which needs access to a jbpm process. I am using the following code to obtain access: JbpmContext jbpmContext = null; | try { | log.debug(Trying to get JBPM context...); | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(); | jbpmContext = jbpmConfiguration.createJbpmContext(); | log.debug(JbpmContext initialized successfully); | | //do stuff... | | } | catch (Exception e) { | log.warn(JbpmContext failed to initialize...,e); | return; | } | finally { | if (jbpmContext != null) { | jbpmContext.close(); | } | } I am using jbpm 3.2.3, Jboss 4.2.2 and seam 2.0.2 When the server starts and I access the ejb I get an exception (see below) which is caused by a jms not bound Exception When I start the jbpm-console, and login and then access the ejb the above code works. When the jms not bound is thrown the jbpm-console also not works. Stacktrace: org.jbpm.JbpmException: couldn't instantiate bean 'null' of type 'org.jbpm.msg.jms.JmsMessageServiceFactoryImpl' at org.jbpm.configuration.BeanInfo.createObject(BeanInfo.java:88) at org.jbpm.configuration.JbpmContextInfo.createObject(JbpmContextInfo.java:129) at org.jbpm.configuration.ObjectFactoryImpl.getObject(ObjectFactoryImpl.java:146) at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:103) at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:78) at org.jbpm.JbpmConfiguration.createJbpmContext(JbpmConfiguration.java:394) at org.jbpm.JbpmConfiguration.createJbpmContext(JbpmConfiguration.java:390) at com.twoorganize.chips.services.jobs.impl.OracleJobMonitorServiceBean.monitorJobs(OracleJobMonitorServiceBean.java:125) 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329) at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:294) at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258) at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223) at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262) at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100) at
[jboss-user] [JBoss jBPM] - Re: jms notbound exception when accessing jbpm context from
Hi, I have tried this, but no luck so far. But when I make no extra configuration and just use the jbpm-enterprise.ear. The strange thing is that when I login to the jbpm-console first it works, can't find what it is doing then In the jmx-console (same before en after logging in to the jbpm-console) I see: +- UserTransaction[link - UserTransaction] (class: javax.naming.LinkRef) +- env (class: org.jnp.interfaces.NamingContext) | +- jdbc (class: org.jnp.interfaces.NamingContext) | | +- JbpmDataSource[link - java:ChipsDS] (class: javax.naming.LinkRef) | +- ejb (class: org.jnp.interfaces.NamingContext) | | +- LocalTimerEntityBean[link - java:ejb/TimerEntityBean] (class: javax.naming.LinkRef) | +- security (class: org.jnp.interfaces.NamingContext) | | +- realmMapping[link - java:/jaas/jbpm] (class: javax.naming.LinkRef) | | +- subject[link - java:/jaas/jbpm/subject] (class: javax.naming.LinkRef) | | +- securityMgr[link - java:/jaas/jbpm] (class: javax.naming.LinkRef) | | +- security-domain[link - java:/jaas/jbpm] (class: javax.naming.LinkRef) | +- jms (class: org.jnp.interfaces.NamingContext) | | +- JbpmConnectionFactory[link - java:JmsXA] (class: javax.naming.LinkRef) | | +- JobQueue[link - queue/JbpmJobQueue] (class: javax.naming.LinkRef) So I assume this is done by the jbpm-enterprise application. Else any suggestion what and where configure? Thanks, Frans View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169853#4169853 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jms notbound exception when accessing jbpm context from
To be more precise, the exception occurs in the JmsMessageServiceFactoryImpl on line 74: public JmsMessageServiceFactoryImpl() { | try { | Context initial = new InitialContext(); | //next line fails when creating jbpmContext from ejb before you login to the jbpm-console | connectionFactory = (ConnectionFactory) initial.lookup(connectionFactoryJndiName); | destination = (Destination) initial.lookup(destinationJndiName); | initial.close(); | } | catch (NamingException e) { | log.error(jms object lookup problem, e); | throw new JbpmException(jms object lookup problem, e); | } | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169861#4169861 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169861 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Jbpm seam webapp and jbpmconsole deployment order issue
Hi, I am using the Jbpm-enterprise ear, which is a littte modified to enable the use of seam together with the jbpm console. Then I have my own ear file which contains some ejb's and a webapp, which talks to a jbpm process (my application...). Build for JBoss 4.2.2 and seam 2.0.1, jbpm-jpdl-3.2.3 Now comes the weird thing: When I deploy the the webapp before the jbpm-enterprise ear the webapp works... When I deploy the jbpm-enterprise ear first the jbpm process works, but the webapp issues the error: Error loading jbpm configuration: null (I can't get a logging furter than this, tried everything...) When I go the the .../jbpm-console and do a refresh (not logging in) and then again go the the webapp it works! Anyone a suggestion where to look further? Thans Frans View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169756#4169756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Jbpm seam webapp and jbpmconsole deployment order issue
Could you be so kind to give me the jira link? Thanks Frans View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169763#4169763 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user