JBoss Community

Re: problems using jbpm5 integrated with oracle and tomcat

created by kishore t in jBPM - View the full discussion

Mauricio,

 

Thanks for the reply.

 

When I add '<Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" />' in server.xml, I guess there is some exception it is generating but from console I couldn't able to figure out as it is closing automatically. When I check the logs I could only see below message:

 

log message

Sep 13, 2011 10:05:45 AM org.apache.catalina.core.AprLifecycleListener init

INFO: Loaded APR based Apache Tomcat Native library 1.1.20.

Sep 13, 2011 10:05:45 AM org.apache.catalina.core.AprLifecycleListener init

INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

Sep 13, 2011 10:05:45 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-apr-8080"]

Sep 13, 2011 10:05:46 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-apr-8009"]

Sep 13, 2011 10:05:46 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 1012 ms

Sep 13, 2011 10:05:46 AM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent

INFO: Starting Bitronix Transaction Manager

Sep 13, 2011 10:05:46 AM bitronix.tm.BitronixTransactionManager logVersion

INFO: Bitronix Transaction Manager version 2.1.1

Sep 13, 2011 10:05:46 AM bitronix.tm.Configuration buildServerIdArray

INFO: JVM unique ID: <tomcat7-btm-node0>

Sep 13, 2011 10:05:46 AM bitronix.tm.resource.ResourceLoader init

INFO: reading resources configuration from C:/apache-tomcat-7.0.19/conf/btm-resources.properties

 

 

Below are my BTM configuration details,

 

setenv.bat

set CATALINA_OPTS=-Dbtm.root=%CATALINA_HOME% -Dbitronix.tm.configuration=%CATALINA_HOME%\conf\btm-config.properties -Djbpm.console.directory=%JBPM_INSTALLER%\sample\evaluation\src\main\resources\

 

btm-config.properties:    

bitronix.tm.serverId = tomcat7-btm-node0

bitronix.tm.journal.disk.logPart1Filename = ${btm.root}/work/btm1.tlog

bitronix.tm.journal.disk.logPart2Filename = ${btm.root}/work/btm2.tlog

bitronix.tm.resource.configuration = ${btm.root}/conf/btm-resources.properties

 

btm-resources.properties:  [VALID DB URL, USER & PWD details are provided in my machine, not mentioning here.... ]

resource.defaultDS.className = oracle.jdbc.xa.client.OracleXADataSource

resource.defaultDS.uniqueName = jdbc/testDummyDS

resource.defaultDS.minPoolSize = 0

resource.defaultDS.maxPoolSize = 5

resource.defaultDS.allowLocalTransactions = true

resource.defaultDS.driverProperties.user =

resource.defaultDS.driverProperties.password =

resource.defaultDS.driverProperties.URL =

resource.ds1.driverProperties.driverClassName=oracle.jdbc.OracleDriver

resource.ds1.driverProperties.createDatabase=create

 

context.xml

<Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" />

 

<Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction" />

       

<Resource name="TransactionManager" auth="Container" type="javax.transaction.TransactionManager"        factory="bitronix.tm.BitronixTransactionManagerObjectFactory" />

       

<Resource name="TransactionSynchronizationRegistry" auth="Container" type="javax.transaction.TransactionSynchronizationRegistry"        factory="bitronix.tm.BitronixTransactionSynchronizationRegistryObjectFactory" />

 

 

jar files:

btm-2.1.1.jar

btm-tomcat55-lifecycle.jar

geronimo-jta_1.1_spec-1.1.1.jar

geronimo-jms_1.1_spec-1.1.1.jar

slf4j-jdk14-1.6.1.jar

slf4j-api-1.6.1.jar

jta.jar

 


Please let me know if your looking for any other information.

 

Note: My persistence related issue is still not being resolved, also let me know if I need to do any modifications related to that configuration also.

 

 

Thanks,

Reply to this message by going to Community

Start a new discussion in jBPM at Community