<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activiti Explorer + Spring + JPA  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172160#M125390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you get a 404 on the /activiti-explorer/, this means that the web app wasn't deployed correctly. Can you check the server logs (in case of tomcat, catalona.out and localhost.log) to see if an exception was thrown during deployment of the WAR on server-boot?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2013 12:31:37 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-12-10T12:31:37Z</dc:date>
    <item>
      <title>Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172155#M125385</link>
      <description>Hello,I'm a new user of Activiti and I've been trying to use my Activiti application that uses JPA in the Activiti Explorer. I've tried a lot of different configurations and I don't manage to make it work in the Explorer, but it works perfectly fine if I run a regular unit-test. My guess is that I'm</description>
      <pubDate>Fri, 06 Dec 2013 08:42:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172155#M125385</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2013-12-06T08:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172156#M125386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One fix to my previous post. When I write:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;property name="hibernate.connection.url" value="jdbc:h2:tcp://localhost/~/test2;DB_CLOSE_ON_EXIT=FALSE" /&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;On &lt;/SPAN&gt;&lt;CODE&gt;jpa-persistence.xml&lt;/CODE&gt;&lt;SPAN&gt; it actually is "test", not "test2". It's the same configuration than the db.properties of the explorer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:08:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172156#M125386</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2013-12-06T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172157#M125387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you see any stacktraces in the tomcat-console/logs? You get a blank page (not a 500 or 404 response)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172157#M125387</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-06T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172158#M125388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I get is a 404 response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;127.0.0.1 - - [06/Dec/2013:14:36:36 +0100] "GET /activiti-explorer/ HTTP/1.1" 404 -&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 13:38:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172158#M125388</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2013-12-06T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172159#M125389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was just guessing… Do I need to change something in the activiti-rest application? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone tried to recreate this example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Obviously, I already had my DB configuration changed to the same one working with the explorer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 08:31:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172159#M125389</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2013-12-09T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172160#M125390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you get a 404 on the /activiti-explorer/, this means that the web app wasn't deployed correctly. Can you check the server logs (in case of tomcat, catalona.out and localhost.log) to see if an exception was thrown during deployment of the WAR on server-boot?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 12:31:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172160#M125390</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-10T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172161#M125391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I'm new with tomcat too so I didn't know about the existence of these useful logs. At least, that's a progress and I can work on it. I already see on &lt;/SPAN&gt;&lt;CODE&gt;catalina.out&lt;/CODE&gt;&lt;SPAN&gt; that there's something wrong, so I'll update this later in case I found the solution (for anyone else wondering) or in case I get another problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 13:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172161#M125391</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2013-12-10T13:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172162#M125392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There really needs to be a working example of how to integrate Activiti Explorer with JPA using Spring.&amp;nbsp; Being able to integrate JPA with Activiti in a unit test is great and one of the reasons I’m looking at Activiti as our BPM solution, but the real world use of this will be a centralized location for all workflows in Activiti Explorer as our end users are not going to be executing unit tests to run their workflow process. I’ve been looking for several weeks for a good working example and this post is the closest I could find, but it still looks like it is not complete and not working.&amp;nbsp; If someone could complete this example – complete with configuration file to integrate both JPA into Activiti Explorer that would be very much appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I have tried so far along with notes of the results.&amp;nbsp; Hopefully one of these attempts are close and someone can point me in the right direction in getting it right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First Attempt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the code from fergomez on this post with this modification – I want to get this workflow to run in a more real world environment, that is with other workflows that are running, so I un-commented the demoDataGenerator been so that demo data will be generated. This first attempt was on an empty database on MySQL.&amp;nbsp; (only thing run on mysql was ‘CREATE SCHEMA `activiti` ;’)&amp;nbsp; After starting up the server, I got key violation errors.&amp;nbsp; The pertinent part of the stack trace is here.&amp;nbsp; I have a copy of the full stack trace if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`activiti`.`act_id_membership`, CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `act_id_user` (`ID_`))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:874)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:41)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:66)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:100)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:148)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; … 49 more&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan 10, 2014 8:42:40 PM org.apache.catalina.core.ApplicationContext log&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INFO: Closing Spring root WebApplicationContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attempt number 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before running my second attempt, I started the server using the original configuration files in order to get the demo database generated.&amp;nbsp; Once that was in place I re-tried with everything set up as in my first attempt.&amp;nbsp; Basically using fergomez’s configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After startup, things initially looked promising because I saw the tables for this process (Inventory and Asset) get generated in the database.&amp;nbsp; I was able to login as Kermit.&amp;nbsp; I tried one of the demo processes (vacation request) and it appeared to start correctly but it didn’t seem to persist into the database.&amp;nbsp; There are no errors in the stack trace.&amp;nbsp; Next I tried to deploy the process definition.&amp;nbsp; The deployment did not persist into the database and I was not able to start the process as it was not available to me in Activiti Explorer.&amp;nbsp; There are no errors in the stack trace.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attempt 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing some more research, I found the following post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/spring-transaction-support" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/spring-transaction-support&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This post suggests using the TransactionAwareDataSourceProxy.&amp;nbsp; It also suggests that if you are going to use this, you will also need to continue to use the DataSourceTransactionManager for the transactionManager bean to work with the underlying Datasource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To try and make this work, I added the following bean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="activitiDataSource"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="targetDataSource" ref="dataSource"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in the processEngineConfiguration I used activitiDataSource for the dataSource property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="dataSource" ref="activitiDataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also changed the transactionManagerBean back to org.springframework.jdbc.datasource.DataSourceTransactionManager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m now able to start a process and it will persist into the database. I can also successfully deploy the InventoryCreation process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting an InventoryCreation process resulted in a nullPointerException when trying to access the entityManager in InventoryService.&amp;nbsp; Here is the important part of the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.inventory.InventoryService.createInventory(InventoryService.java:15)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.javax.el.BeanELResolver.invoke(BeanELResolver.java:479)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attempt 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This time I tried to inject an entityManager into the inventoryService bean.&amp;nbsp; To do this, I first added setter and getter methods to InventoryService&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void setEntityManager(EntityManager entityManager) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; this.entityManager = entityManager;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then created a sharedEntityManagerBean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="fssSharedEntityManager" class="org.springframework.orm.jpa.support.SharedEntityManagerBean"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="entityManagerFactory" ref="entityManagerFactory"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And finally injected into the inventoryService bean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="inventoryService" class="org.inventory.InventoryService" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;property&amp;nbsp; name="entityManager" ref="fssSharedEntityManager" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the important parts to the error I get when calling entityManger.persist in the InventoryService:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: org.activiti.engine.ActivitiException: Cannot flush EntityManager, an active transaction is required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.variable.EntityManagerSessionImpl.flush(EntityManagerSessionImpl.java:58)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.variable.JPAEntityVariableType.setValue(JPAEntityVariableType.java:63)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.setValue(VariableInstanceEntity.java:176)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: javax.persistence.TransactionRequiredException: no transaction is in progress&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:793)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at $Proxy410.flush(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.variable.EntityManagerSessionImpl.flush(EntityManagerSessionImpl.java:54)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know what else to try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 23:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172162#M125392</guid>
      <dc:creator>mgiebler</dc:creator>
      <dc:date>2014-01-10T23:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172163#M125393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I got this to work in Activiti-explorer thanks to this posting &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/spring-jpatransactionmanager-not-saving-activiti-entities-db" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/spring-jpatransactionmanager-not-saving-activiti-entities-db&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Basically I have the same setup as in Attempt 4 in my previous post and the key to making it all work is to use this entityManagerFactory bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="persistenceUnitName" value="inventoryPersistence"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jpaVendorAdapter"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 23:09:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172163#M125393</guid>
      <dc:creator>mgiebler</dc:creator>
      <dc:date>2014-01-14T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Explorer + Spring + JPA</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172164#M125394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mgiebler, would you post your whole working configuration? I've changed a lot the project, so I started from scratch again, but I'm still not able to make it work. Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 08:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-explorer-spring-jpa/m-p/172164#M125394</guid>
      <dc:creator>fergomez</dc:creator>
      <dc:date>2014-01-27T08:56:44Z</dc:date>
    </item>
  </channel>
</rss>

