Hi 'lappi',

did you see this:

anonymous wrote : Caused by: org.hibernate.MappingException: Unknown entity: 
org.jbpm.graph.def.ProcessDefinition 

This usually means that there is no ProcessDefinition with id = 2. Are you sure 
you have a ProcessDefinition with the id 2, not version 2. The correct way of 
accessing ProcessDefinition would be to call 
GraphSession.findLatestProcessdefinition(). Then you only need to know the name.

Another point: your doing transactions double. The jbpmSession uses the 
Hibernate session, so i.e. your trying to start an transaction twice and 
closing probably the same transaction twice. In a managed env you probably only 
be flushing Hibernate twice. This might be harmless, but maybe not. It 
definately isn't a good idea.

Same or different database / schema / user / 'whatever applies' depends on the 
env your in and the database your using, e.g. two schemas in Oracle and you 
need XA transactions. There is no 'standard' solution but it shouldn't be a 
problem putting everything in one 'database', whatever that is.

Hope this helps

Greetings

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919910#3919910

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919910


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to