Bug 779307 (SOA-1695) - jUDDI database initialization fails on Oracle and db2 - not an issue for PostgreSQL
Summary: jUDDI database initialization fails on Oracle and db2 - not an issue for Post...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1695
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB, Configuration, Deployment
Version: 5.0.0 ER5
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.0.0 GA,5.0.0 ER7
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-09 07:22 UTC by Jiri Pechanec
Modified: 2010-01-29 07:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-29 07:46:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 779206 0 urgent CLOSED Exception when creating jBPM database 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-1695 0 None None None Never

Internal Links: 779206

Description Jiri Pechanec 2009-12-09 07:22:32 UTC
Date of First Response: 2009-12-10 11:15:15
project_key: SOA

jUDDI 3 uses Hibernate to access db. During server startup it tries to update db schema to conform mapping files. Unfortunately on Oracle if tables with the same name exists in an other schema then jUDDI thinks that db is correctly initialized and tables are not created.

To fix this issue it is necessary to use hibernate options hibernate.default_schema and/or hibernate.default_catalog in persistence.xml file. This can cuase problems with other databases.

I have tried to change hibernate.hbm2ddl.auto from update to create and issue has disappeared. Moreover this approach is better aligned with other db components using static sql files - no schema change is done inadvertently.

Comment 1 Julian Coleman 2009-12-10 16:15:15 UTC
SOA-1599 is also a symptom of visibility across multiple schemas.

Comment 2 Julian Coleman 2009-12-10 16:15:15 UTC
Link: Added: This issue is related to SOA-1599


Comment 3 Julian Coleman 2009-12-21 16:27:20 UTC
This seems to be more a database setup problem, where multiple schemas are visible.
Changing the schema visibility in the database would fix this.

Comment 4 Lukáš Petrovický 2010-01-05 11:28:22 UTC
hbm2ddl.auto should never carry the "update" value in the first place - it doesn't properly create indices. For more information, see http://www.hibernate.org/119.html#A10 and HHH-1012 (fixed only recently).

Comment 5 Kevin Conner 2010-01-05 12:01:52 UTC
Link: Added: This issue depends JBESB-3097


Comment 6 Kevin Conner 2010-01-05 12:03:02 UTC
Will also modify our base one in case that makes your job easier

Comment 7 Kevin Conner 2010-01-05 12:51:39 UTC
ESB configuration has been changed, will be in next commit.

Comment 8 Julian Coleman 2010-01-18 14:53:00 UTC
Resolving this, as the ESB JIRA (JBESB-3097) has been resolved.


Comment 9 Jiri Pechanec 2010-01-29 07:46:37 UTC
Verified in ER7


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