Hi,
I configure seam and jbpm as below but i've got exception : org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
Caused by: org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage
jbpm-hibernate.cfg.xml
<property name="connection.url">jdbc:postgresql://127.0.0.1:5432/jbpm323</property> <property name="connection.username">sa</property> <property name="connection.driver_class">org.postgresql.Driver</property> <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> <property name="connection.password">s3cr3t</property> <property name="hibernate.cache.use_second_level_cache">true</property>
jbpm.cfg.xml
<?xml version="1.0" encoding="UTF-8"?> <jbpm-configuration> <jbpm-context> <service name="persistence"> <factory> <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory"> <field name="isTransactionEnabled"><false/></field> </bean> </factory> </service> <service name="tx" factory="org.jbpm.tx.TxServiceFactory"/> <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory"/> <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory"/> <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory"/> <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"/> </jbpm-context> <string name="resource.hibernate.cfg.xml" value="jbpm-hibernate.cfg.xml"/> </jbpm-configuration>
component.xml
<bpm:jbpm> <bpm:process-definitions> <value>courier.jpdl.xml</value> </bpm:process-definitions> </bpm:jbpm>
PS : i couldn't configure hibernate with XA