[JBoss jBPM] - Re: jms notbound exception when accessing jbpm context from
by gchanteb
Could you explain it plz ? I have the same problem and I really don't understand why......
I have this process:
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process9">
|
| <start-state name="start-state">
| <transition to="state1" name="to state1"/>
| </start-state>
|
| <state name="state1">
| <transition to="state2" name="to state2"/>
| </state>
|
| <state name="state2">
| <transition to="endstate" name="to endstate"/>
| </state>
|
| <end-state name="endstate"/>
|
| </process-definition>
When I start my JBoss, I try to launch my process with an EJB client:
| public static void main(String[] args)
| {
| String nameProcess = "process9";
|
| // Start a new process and go to state 1.
| long processId = ManagementJBPMDelegate.launchProcess(nameProcess);
|
| // State 1 to state 2.
| ManagementJBPMDelegate.signalProcess(processId);
| }
It works.... But, If i do:
| public static void main(String[] args)
| {
| String nameProcess = "process9";
|
| // Start a new process and go to state 1.
| long processId = ManagementJBPMDelegate.launchProcess(nameProcess);
|
| // State 1 to state 2.
| ManagementJBPMDelegate.signalProcess(processId);
|
| // State 2 to endstate.
| ManagementJBPMDelegate.signalProcess(processId);
| }
It doesn't work, i have this exception:
anonymous wrote : Exception in thread "main" javax.ejb.EJBException: org.jbpm.JbpmException: could not retrieve message connection factory
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| ...
| Caused by: org.jbpm.JbpmException: could not retrieve message connection factory
| at org.jbpm.msg.jms.JmsMessageServiceFactory.getConnectionFactory(JmsMessageServiceFactory.java:80)
| at org.jbpm.msg.jms.JmsMessageServiceFactory.openService(JmsMessageServiceFactory.java:140)
| ...
| Caused by: javax.naming.NameNotFoundException: jms not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
but ... If I start my JSF-console and try to start a process9, from start state to end state, it works!
Then, if i redo my main program which calls EJBs, it works .... :-/... Why ? Do you have any idea?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222527#4222527
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222527
15 years, 9 months
[JBoss jBPM] - Re: Custom HBM files.
by Toriton
Hi, i'm trying still to create custom hbm files under my process.
But still can't deploy a process with embedded hbm files.
I tried putting in the .par file both hibernate.extra.hbm and the hibernate.hbm.xml, but the error is always:
anonymous wrote :
| 2009-04-01 09:43:16,734 ERROR [STDERR] org.hibernate.MappingException: Unknown entity: com.sample.model.Code
| at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
| at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
| at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
| at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
| at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
| at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
| at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
| at com.sample.dao.CodeDAO.insertCode(CodeDAO.java:40)
| at com.sample.action.StoreHandler.execute(StoreHandler.java:24)
| at org.jbpm.graph.def.Action.execute(Action.java:129)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:284)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:241)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:213)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:196)
| at org.jbpm.graph.def.Node.enter(Node.java:371)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)
| at org.jbpm.graph.def.Transition.take(Transition.java:167)
| at org.jbpm.graph.def.Node.leave(Node.java:479)
| at org.jbpm.graph.node.StartState.leave(StartState.java:82)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_49.leave(Node_$$_javassist_49.java)
| at org.jbpm.graph.exe.Token.signal(Token.java:223)
| at org.jbpm.graph.exe.Token.signal(Token.java:180)
| at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
| at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
| at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
| at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
| at javax.faces.component.UICommand.broadcast(UICommand.java:368)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
|
I don't find a way to deploy a process with custom hbm files without modifying the hibernate.hbm.xml file under jbpm.
Hibernate lib is under server folder lib (the common folder ) and under jbm atm.
There is an option to deploy a process with custom hbm files without modifying the default hibernate.hbm.xml file under JBPM? i tried too adding only the hibernate.extra.hbm.xml file only in my process but nothing.
in the manual at this link:
http://docs.jboss.com/jbpm/v3.1/userguide/en/html/persistence.html
at 7.8 and 7.9 there are some rows about how customize hibernate references, but seem that i need anyway to modify the hibernate.hbm.xml file, adding reference to my custom hbm files.
So is impossible to deploy a new process,with some presistance classes, without modifying the file under jbpm?.
Any suggestion will be appreciated.
T.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222525#4222525
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222525
15 years, 9 months