AnsweredAssumed Answered

(I pay) No exception in logs with two transactionManagers...

Question asked by raymondx on Mar 13, 2015
Latest reply on Mar 17, 2015 by jbarrez
Hi activiti-community, (sorry for my bad english)

Im writing right now an exam with activity. My Job is to combine activiti with some services…
"My activiti" is running in a tomcat (activiti-explorer.war and activit-rest.war), the problem is now:

The services are in a jar (maven project). This jar is in /webapps/activiti-explorer/WEB-INF/lib/_here_. Also the dependencies of the jar are in the same lib-folder…
Im using "activiti-custom-context.xml" and I uncommented the commented beans -> the explorer runs (login-page of activiti-explorer in the browser is avaible).
Now i tried to define some "extra" beans, here their are:

   <tx:annotation-driven transaction-manager="diffrent_transactionManager"/>

   <bean id="diffrent_dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">

      <property name="driverClass" value="com.mysql.jdbc.Driver" />
      <property name="jdbcUrl" value="jdbc:mysql://localhost/myDatabase?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;autoReconnect=true" />
      <property name="user" value="username" />
      <property name="password" value="userpw" />

      <property name="initialPoolSize">
      <property name="minPoolSize">
      <property name="maxPoolSize">
      <property name="acquireRetryAttempts">
      <property name="acquireIncrement">
      <property name="idleConnectionTestPeriod">
      <property name="maxIdleTime">
      <property name="maxConnectionAge">

      class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />

   <bean id="diffrent_entityManagerFactory"
      <property name="persistenceUnitName" value="default" />
      <property name="dataSource" ref="diffrent_dataSource" />
      <property name="jpaVendorAdapter">
         <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />
      <property name="jpaProperties">
            <prop key="hibernate.dialect">

   <bean id="diffrent_transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
      <property name="entityManagerFactory" ref="diffrent_entityManagerFactory" />

   <context:annotation-config />
   <context:component-scan base-package="" />


I think its the "diffrent_transactionManager", but im not sure…
The symptoms are:
- blank browser page (HTTP 404 - no source : the activiti give a response, so it works, but the reponse-code is 404… -> client-mistake?, really?)
- Standard logs, the logs are avaible, but they just show that the webapp is starting "normal"

I tried to set the log-level to all, debug etc. pp. to get more logs, but it feels like "activiti ignores your"…

If someone can help and know whats the problem, so pls write it here or if you want money for your help, then call me. Just say the price before you help me. I will pay. You can call me till Sonday, dont care about Night/Day, it doesnt matter.

+41 79 195 81 58