Hide Forgot
Help Desk Ticket Reference: https://access.redhat.com/issue-tracker/1002453 project_key: SOA $JBOSS_HOME/tools/schema/build.xml - is leaving out that MBean in $JBOSS_HOME/server/$PROFILE/deploy/jbossesb-registry.sar/juddi-ds.xml The tool replaces the juddi-ds.xml with the new datasource, however there is an MBean in the original juddi-ds.xml (DatabaseInitializer). This MBean is left out and causes SOA to not start. Note the MBean has a database specific configuration (juddi-sql/postgres/import.sql) which should be set to the appropriate db value. <?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> .... </local-tx-datasource> <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JUDDIDatabaseInitializer"> <attribute name="Datasource">java:/juddiDB</attribute> <attribute name="ExistsSql">select count(*) from j3_publisher</attribute> <attribute name="SqlFiles"> juddi-sql/postgres/import.sql </attribute> <depends>jboss.jca:service=DataSourceBinding,name=juddiDB</depends> </mbean> </datasources> juddi_config/META-INF/persistence.xml It capitalized the P in the opening tag of Persistence, and the closing tag was a lowercase p. <Persistence xmlns="http://java.sun.com/xml/ns/persistence" It should be <persistence ...</persistence>
Link: Added: This issue related SOA-2267
I cannot reproduce the capitalised 'P' in .../juddi_config/META-INF/persistence.xml with the 5.1.0 ER1 build. The original file contains a lower-case 'p' and the text substitution done by the schema tool should not alter this.
Resolved with revision 6486 of: build-tools/schema-tool/juddi-service.xml build-tools/schema-tool/build.xml Commit message: SOA-2212 SOA-2267 In build.xml, do not create a separate: .../deploy/jbossesb-registry.sar/META-INF/juddi-service.xml file but merge in the contents of the schema tool juddi-service.xml to: .../deploy/jbossesb-registry.sar/juddi-ds.xml The schema tool juddi-service.xml now only contains the mbean template and is no longer a complete XML file. Tested by Jiri Sedlacek.
verified in 5.1.0.ER9