Bug 604251 - installer fails to prepare embedded H2 DB
installer fails to prepare embedded H2 DB
Status: CLOSED CURRENTRELEASE
Product: RHQ Project
Classification: Other
Component: Installer (Show other bugs)
3.0.0
All All
low Severity medium (vote)
: ---
: ---
Assigned To: John Mazzitelli
Corey Welton
:
: 601263 (view as bug list)
Depends On:
Blocks: jon-sprint11-bugs
  Show dependency treegraph
 
Reported: 2010-06-15 13:47 EDT by John Mazzitelli
Modified: 2010-08-12 12:52 EDT (History)
2 users (show)

See Also:
Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-12 12:52:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
boot log (81.54 KB, text/x-log)
2010-06-28 08:52 EDT, Rajan Timaniya
no flags Details
server log (378.11 KB, text/x-log)
2010-06-28 08:53 EDT, Rajan Timaniya
no flags Details

  None (edit)
Description John Mazzitelli 2010-06-15 13:47:26 EDT
not getting installer to prepare the embedded H2 DB.

Caused by: org.hibernate.HibernateException: Dialect class not found: org.rhq.core.domain.dialect.H2CustomDialect
Comment 1 John Mazzitelli 2010-06-15 13:49:30 EDT
the class was moved to a different package name probably due to the GWT refactoring.

the patch is to change ConfigurationBean:

@@ -642,3 +642,3 @@ public class ConfigurationBean {
             } else if (db.toLowerCase().indexOf("h2") > -1) {
-                dialect = "org.rhq.core.domain.dialect.H2CustomDialect";
+                dialect = "org.rhq.core.server.H2CustomDialect";
             } else if (db.toLowerCase().indexOf("sqlserver") > -1) {
Comment 2 John Mazzitelli 2010-06-15 13:55:43 EDT
pushed to release-3.0.0 branch.
Comment 3 John Mazzitelli 2010-06-15 13:58:36 EDT
there was another place where this name change needed to occur:

H2DatabaseType:

     public String getHibernateDialect() {
-        return "org.rhq.core.domain.dialect.H2CustomDialect";
+        return "org.rhq.core.server.H2CustomDialect";
     }
Comment 4 Joseph Marques 2010-06-21 14:01:36 EDT
*** Bug 601263 has been marked as a duplicate of this bug. ***
Comment 5 Rajan Timaniya 2010-06-28 08:51:01 EDT
Verified on JON 2.4 GA_QA (tag-jon-release build #42)
http://hudson-qe.rhq.rdu.redhat.com:8080/view/JON/job/tag-jon-release/42/

Database: embedded H2 DB Version 1.2.136 (2010-05-24)
Java: Sun JDK 1.6
Platform: RHEL 5.5

Installed JON 2.4 GA_QA (tag-jon-release build #42) and agent without any error/exception.
Comment 6 Rajan Timaniya 2010-06-28 08:52:59 EDT
Created attachment 427405 [details]
boot log
Comment 7 Rajan Timaniya 2010-06-28 08:53:41 EDT
Created attachment 427406 [details]
server log
Comment 8 Corey Welton 2010-08-12 12:52:20 EDT
Mass-closure of verified bugs against JON.

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