Bug 778567 (SOA-1039) - The name of the transaction must be set in hibernate.cfg.xml
Summary: The name of the transaction must be set in hibernate.cfg.xml
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1039
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Documentation, JBossESB, Build Process, Configuration
Version: 4.2 CP03
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 CP03
Assignee: Dana Mison
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks: SOA-796
TreeView+ depends on / blocked
 
Reported: 2008-11-19 15:34 UTC by Julian Coleman
Modified: 2014-05-27 01:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
SOA 4.2.0 CP03 (pre release)
Last Closed: 2008-12-17 06:33:36 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778491 0 urgent CLOSED The name of the transaction must be set in hibernate.cfg.xml 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-1039 0 Major Closed The name of the transaction must be set in hibernate.cfg.xml 2012-11-20 06:34:44 UTC

Internal Links: 778491

Description Julian Coleman 2008-11-19 15:34:09 UTC
Date of First Response: 2008-11-20 22:15:15
project_key: SOA

Due to changes in transaction lookup in jBPM 3.2.3 it is necessary to set jta.UserTransaction property in hiberante.cfg.xml to UserTransaction.
Also this must be documented in Release Notes in case of upgrading older installations.

Comment 1 Julian Coleman 2008-11-19 15:34:09 UTC
Link: Added: This issue is related to JBPM-1179


Comment 2 Julian Coleman 2008-11-19 15:34:09 UTC
Link: Added: This issue is a dependency of SOA-796


Comment 3 Julian Coleman 2008-11-19 16:20:08 UTC
The change in transaction lookup is now also present on the 3.2.2 SOA branch
of the jBPM code.  Thus, we must set the "jta.UserTransaction" property for
SOA 4.2.0 CP03.

Comment 4 Julian Coleman 2008-11-19 16:31:36 UTC
Link: Added: This issue is related to SOA-959


Comment 5 Julian Coleman 2008-11-20 14:50:22 UTC
Fixed in revision 2333 of:
  build-tools/builders/jbpm/build.xml

Commit message:
  Add:  
      <property name="jta.UserTransaction">UserTransaction</property>
  to the "JTA transaction properties" section of the hibernate.cfg.xml file
  in jbpm.esb.
  
  Fixes JIRA SOA-1039.

This change needs to be documented in the release notes (.e.g.):

Upgrading from an earlier 4.2.0 release of the JBoss Enterprise SOA Platform

The fix for issue SOA-1039 (JBPM-1179) requires that the property:
  <property name="jta.UserTransaction">UserTransaction</property>
is added to the file:
  <serverroot>/jboss-as/server/<config>/deploy/jbpm.esb/hibernate.cfg.xml
in order to maintain backward compatibility with earlier releases.  This change
is already present in the file as shipped with the 4.2.0 CP03 release but must
be added if configuration files are manually upgraded.

Comment 6 Dana Mison 2008-11-21 03:15:15 UTC
Known issue added:

Hibernate UserTransaction property requirement
As of release 4.2.CP03, it is now necessary to set the jta.UserTransaction property in hibernate.cfg.xml to UserTransaction.

This is due to changes required in transaction lookup in jBPM 3.2.3.

Additional information: http://jira.jboss.com/jira/browse/JBPM-1179

Comment 7 Dana Mison 2008-11-21 03:15:54 UTC
added to release notes

Comment 8 Len DiMaggio 2008-12-11 16:45:05 UTC
The jta.UserTransaction property was added to the hibernate.cfg.xml files included in the SOA-P servers for 4.2 CP03 CR5

and it was included in some of the examples, but not all. We can cover that in documentation. 

One question - the property was not added to:  
   ./jboss-soa-p.4.2.0/jbpm-jpdl/config/hibernate.cfg.xml
   ./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/config/hibernate.cfg.xml

Will this be a functional issue for users? Will we ship a standalone version of jBPM at the same time as 4.2 CP03?

./jboss-soa-p.4.2.0/jbpm-jpdl/config/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/rulesAssignmentHandler/src/config/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/rulesActionHandler/src/config/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/customTaskInstance/src/main/config/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/dvdstore/resources/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/hibernate2/resources/websphere/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/hibernate2/resources/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/hibernate2/resources/weblogic/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/hibernate2/resources/glassfish/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/hibernate/resources/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/portal/resources/hibernate.cfg.xml
./jboss-soa-p.4.2.0/seam/examples/todo/resources/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jboss-as/samples/quickstarts/helloworld_hibernate_action/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb/hibernate.cfg.xml
./jboss-soa-p.4.2.0/jboss-as/server/all/deploy/jbpm.esb/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/config/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/rulesAssignmentHandler/src/config/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/rulesActionHandler/src/config/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/customTaskInstance/src/main/config/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jboss-as/samples/quickstarts/helloworld_hibernate_action/hibernate.cfg.xml
./jboss-soa-p-standalone.4.2.0/jboss-as/server/default/deploy/jbpm.esb/hibernate.cfg.xml

[ldimaggi@ldimaggi 42_CP03_CR5]$ files=$( find . -name hibernate.cfg.xml )

[ldimaggi@ldimaggi 42_CP03_CR5]$ grep "jta.UserTransaction" $files
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/rulesAssignmentHandler/src/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/rulesActionHandler/src/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p.4.2.0/jbpm-jpdl/examples/customTaskInstance/src/main/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p.4.2.0/jboss-as/server/production/deploy/jbpm.esb/hibernate.cfg.xml:    <property name="jta.UserTransaction">UserTransaction</property>
./jboss-soa-p.4.2.0/jboss-as/server/all/deploy/jbpm.esb/hibernate.cfg.xml:    <property name="jta.UserTransaction">UserTransaction</property>
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/rulesAssignmentHandler/src/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/rulesActionHandler/src/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples/customTaskInstance/src/main/config/hibernate.cfg.xml:    <property name="jta.UserTransaction">java:comp/UserTransaction</property>
./jboss-soa-p-standalone.4.2.0/jboss-as/server/default/deploy/jbpm.esb/hibernate.cfg.xml:    <property name="jta.UserTransaction">UserTransaction</property>




Comment 9 Julian Coleman 2008-12-12 17:09:37 UTC
The jta.UserTransaction property is now added to the standalone jBPM build:
  build-tools/builders/jbpm/build.xml

Revisions
  2454  4.2.0 branch
  2455  4.3 branch
  2456 trunk

Commit message:
  Also add a jta.UserTransaction property to the "standalone" jbpm-jpdl build.

Comment 10 Jiri Pechanec 2008-12-17 06:33:36 UTC
Verified in CR5


Note You need to log in before you can comment on or make changes to this bug.