[Persistence, JBoss/CMP, Hibernate, Database] - Re: JBPM Process Instance - Could not enlist in transaction
by estaub
The only reasons the hibernate.cfg.xml file wouldn't be found is if there's another one on your classpath, or if jbpm.cfg.xml is pointing at another file.
How do you know it's not being found?
Go to your local bookstore and read the new Hibernate book chapter on configuration. Or browse online, but that's so old-school ;-) You need to get some background so that you know what you're doing.
For myself, I'm using a Oracle via a jndi datasource under WebLogic:
<!-- DataSource properties (begin) -->
| <property name="hibernate.connection.datasource">jbpmDataSource</property>
| <!-- DataSource properties (end) -->
|
| and the Weblogic transaction manager:
| <!-- JTA transaction properties (begin) -->
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
| <!-- JTA transaction properties (end) -->
|
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069139#4069139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069139
18Â years, 8Â months
[JBoss jBPM] - Hibernate config problem
by Vorsorge
Hi,
we are using the jBPM-Starters-Kit. jBPM is configured to use an Oracle 9DB. Everything works fine using the JBoss-DataSource JbpmDS.
All our ActionHandlers and depending classes come in their own war file. The classes already use a JNDI datasource-pool named vsab. They are calling PL/SQL stored procedures for read. Everything works fine.
To start a jBPM-process we use our own WebService-Classes via XFire.
We want to persist some of our objects in the db with Hibernate. In our war-file we put an hibernate.cfg.xml. The classes got their own hbm.xml.
Our hibernate.cfg.xml looks like:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
org.hibernate.dialect.Oracle9Dialect
java:/vsab
</session-factory>
</hibernate-configuration>
But when I start a process when this hibernate.cfg.xml is present in our war-File we get the following:
2:54:17,914 INFO [STDOUT] org.hibernate.MappingException: Unknown entity: org.jbpm.graph.exe.ProcessInstance
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:610)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:66)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:809)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:731)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:724)
at org.jbpm.db.GraphSession.loadProcessInstance(GraphSession.java:276)
at org.jbpm.JbpmContext.loadProcessInstance(JbpmContext.java:319)
at jbpmServices.ServiceCallRuntime.createProcessInstance(ServiceCallRuntime.java:190)
at jbpmServices.JbpmProcessService.readProcess(JbpmProcessService.java:97)
at jbpmServices.JbpmService.readProcess(JbpmService.java:265)
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.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
at org.codehaus.xfire.service.invoker.ObjectInvoker.invoke(ObjectInvoker.java:45)
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:271)
at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:84)
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:132)
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:107)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:301)
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:130)
at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
.....
It seems es if the Hibernate-configs clash so that jBPM doesn't find it's own Hibernate config.
How do I have to configure it? "It" standing for "jBPM" or for our own application or for something completely different? ;-)
Thanks,
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069132#4069132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069132
18Â years, 8Â months
[JBoss jBPM] - Collaborate options with JBPM
by jagbalan
Consider the below workflow requirements,
1. Allowing the end user to define the process he wants to use a module
2. Attaching some business condition to the module based on it's workflow status. Say @ draft status it is possible to delete, @ revision required status it is possible only to edit etc.
3. Setting reminder frequencies for each status
4. Setting rights to each activity in the process
5. Allow re-assignments of the activities
Apart from these there are other businesses with the module( like an approved entity can be started etc.,). These are many other entities in the system that don't indulge in the workflow but refer to entities that are in workflows.
In such an situation how could we integrate JBPM into our system? I saw a streaming demo of jbpm but it was using the jbpm web portal. Is that the only way of doing workflow management? Will I have to maintain data in 2 different places?
What are other possible ways of integration?
How could I have my own web pages and just talk to jbpm for workflow management?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069131#4069131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069131
18Â years, 8Â months
[JBoss Seam] - Seam conversations and third party JSF components libs
by mgrouch
What is the way to send conversation id with third-party libraries ajax requests. For example, Quipukit library comes with data table
pagination control which has ajaxed controls. Click on those controls
submits ajax request without conversation id and causes exception on
server side
anonymous wrote : java.lang.IllegalStateException: No active conversation context
| at org.jboss.seam.core.Conversation.instance(Conversation.java:103)
| at org.jboss.seam.faces.FacesManager.prepareBackswitch(FacesManager.java:236)
| at org.jboss.seam.jsf.SeamPhaseListener.afterRender(SeamPhaseListener.java:505)
| at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
|
Is there workaround for it?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069130#4069130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069130
18Â years, 8Â months