[jboss-user] [JBoss jBPM] - Re: jBPM 4 CR1 AsyncActivity Unit Test fails due to FK const

joshsiaw do-not-reply at jboss.com
Wed Jun 17 21:12:27 EDT 2009


Here you go: 

jbpm.cfg.xml file:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <jbpm-configuration>
  | 
  |   <import resource="jbpm.default.cfg.xml" />
  |   <import resource="jbpm.tx.hibernate.cfg.xml" />
  |   <import resource="jbpm.jpdl.cfg.xml" />
  |   <import resource="jbpm.identity.cfg.xml" />
  | 
  |   <!-- Job executor is excluded for running the example test cases. -->
  |   <!-- To enable timers and messages in production use, this should be included. -->
  |   <!--
  |   <import resource="jbpm.jobexecutor.cfg.xml" />
  |   -->
  | 
  |   <import resource="jbpm.mail.templates.examples.xml" />
  | 
  | </jbpm-configuration>
  | 

jbpm.hibernate.cfg.xml file:

  | <?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>
  |   
  |      <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
  |      <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  |      <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpmdb</property>
  |      <property name="hibernate.connection.username">root</property>
  |      <property name="hibernate.connection.password">p4ssw0rd</property>
  |      <property name="hibernate.hbm2ddl.auto">update</property>
  |      <property name="hibernate.format_sql">true</property>
  |      
  |      <mapping resource="jbpm.repository.hbm.xml" />
  |      <mapping resource="jbpm.execution.hbm.xml" />
  |      <mapping resource="jbpm.history.hbm.xml" />
  |      <mapping resource="jbpm.task.hbm.xml" />
  |      <mapping resource="jbpm.jpdl.hbm.xml" />
  |      <mapping resource="jbpm.identity.hbm.xml" />
  |      
  |   </session-factory>
  | </hibernate-configuration>
  | 

logging.properties file:

  | handlers= java.util.logging.ConsoleHandler
  | redirect.commons.logging = enabled
  | 
  | java.util.logging.ConsoleHandler.level = FINE
  | java.util.logging.ConsoleHandler.formatter = org.jbpm.internal.log.LogFormatter
  | 
  | org.jbpm.level=FINE
  | # org.jbpm.pvm.internal.tx.level=FINE
  | # org.jbpm.pvm.internal.wire.level=FINE
  | # org.jbpm.pvm.internal.util.level=FINE
  | 
  | org.hibernate.level=INFO
  | org.hibernate.cfg.SettingsFactory.level=SEVERE
  | org.hibernate.cfg.HbmBinder.level=SEVERE
  | # org.hibernate.SQL.level=FINEST
  | # org.hibernate.type.level=FINEST
  | # org.hibernate.tool.hbm2ddl.SchemaExport.level=FINEST
  | # org.hibernate.transaction.level=FINEST
  | 

I don't have a -ds.xml file though. Is that needed? I ran the build.xml using ant with the datasource settings modified in the build file. This is what I modified: 


  | <!-- DEFAULT PROPERTY VALUES -->
  |   <property name="database" value="mysql" />
  |   <property name="jbpm.parent.dir" value="../.." />
  |   <property name="jbpm.version" value="4.0.CR1" />
  |   <property name="jboss.version" value="5.0.0.GA" />
  |   <property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" />
  | 

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

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



More information about the jboss-user mailing list