Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1163029

Summary: dashbuilder for generic (ie tomcat) distribution has different hibernate.cfg.xml to others.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Ryan Zhang <rzhang>
Component: BAMAssignee: David Gutierrez <dgutierr>
Status: CLOSED EOL QA Contact: Gui Jospin <gjospin>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen, mbaluch
Target Milestone: ER3   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:08:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ryan Zhang 2014-11-12 09:20:50 UTC
Description of problem:
The hibernate.cfg.xml for war distributions for tomcat-7 is different from the one for jbossas7 and was8.
The JNDI name say "java:comp/env/jdbc/jbpm" for tomcat.
But say "java:comp/env/jdbc/dashbuilder" for others.
And the configuration is also inconsistent since the hibernate.cfg.xml is maintain in dashbuilder project.

Two hibernate.cfg.xml
jbpm-dashboard/jbpm-dashboard-distributions/src/main/tomcat7/WEB-INF/etc/hibernate.cfg.xml
dashboard-builder/modules/dashboard-webapp/src/main/webapp/WEB-INF/etc/hibernate.cfg.xml

So I think we might need to remove such differencies.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 David Gutierrez 2014-11-18 10:23:44 UTC
Fixed.

No need for having a different data source name on Tomcat. The tomcat's specific hibernate.cfg.xml has been removed and the data source name has been changed to "jdbc/dashbuilder" in order to be consistent with all the other assemblies.

Github commit (master): https://github.com/droolsjbpm/jbpm-dashboard/commit/8076f9f0c487e9dd556e639ecd2e6bfea66a0a0a

Github commit (6.2.x): https://github.com/droolsjbpm/jbpm-dashboard/commit/15b87252b62109dde5bd932217b3d7cf6e252df6

Comment 2 Jan Hrcek 2014-12-17 12:22:56 UTC
Ok, verified with BPM Suite 6.1.0 ER3. Dashbuilder now uses single hibernate.cfg.xml across all distributions.