[jboss-user] [JBoss jBPM] - Re: problem using jbpm with tomcat 5.5 and mysql 5.0

mputz do-not-reply at jboss.com
Wed May 9 06:55:55 EDT 2007


@Anders,

apparently you have a configuration where the server is trying to establish a connection to the db defined by the 'jbpmDS' datasource. This only works inside JBoss, but not if you are deploying to a standalone Tomcat instance.

In hibernate.cfg.xml, delete this


<property name="hibernate.connection.datasource">java:/JbpmDS</property>

and instead use a configuration similar to this:

    <!-- JDBC connection properties (begin) -->
  |     <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  |     <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm32</property>
  |     <property name="hibernate.connection.username">jbossjbpm</property>
  |     <property name="hibernate.connection.password">jbossjbpm</property>
  |      <!-- JDBC connection properties (end) -->

See also: http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat

Regards, Martin

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

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



More information about the jboss-user mailing list