[jboss-user] [JBoss jBPM] - Re: While starting process from a servlet error arise
joy_wind
do-not-reply at jboss.com
Fri May 16 00:19:23 EDT 2008
I met the same problem when begin to test jbpm.
The reason is i have not config the table mapping in the file hibernate.cfg.xml used by jbpm. i.e the following config raise the error:<!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
| <property name="connection.url">
| jdbc:postgresql://localhost:5432/jbpm_test
| </property>
| <property name="connection.driver_class">
| org.postgresql.Driver
| </property>
|
| <!-- other hibernate properties -->
|
| </session-factory>
| </hibernate-configuration>
After add the mapping in it,the error gone.<!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
| <property name="connection.url">
| jdbc:postgresql://localhost:5432/jbpm_test
| </property>
| <property name="connection.driver_class">
| org.postgresql.Driver
| </property>
|
| <!-- other hibernate properties -->
|
| <!--
| here is the mapping files.
| A lot more mapping should following ... chech the default hibernate config file to find them.
| -->
| <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml" />
|
| </session-factory>
| </hibernate-configuration>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151238#4151238
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151238
More information about the jboss-user
mailing list