Description of problem: The gatein-sample-portal-ds.xml file seems out of sync with the gatein-ds.xml file. 1) The datasources are listed in reverse order, making it more difficult then needed. IDM should be first followed by the JCR. 2) The location of the hypersonic data file is not within the gatein conf directory. I think this leads to issues. Either way the location and name should be consistent to that defined in gatein-ds.xml 3) The IDM datastore is defined as local-tx-datasource instead of no-tx-datasource as in the gatein-ds.xml file. Again this should be in sync. Steps to Reproduce: 1. Start with clean install of EPP (do not start) 2. Copy gatein-sample-portal-ds.xml and gatein-sample-portal.ear from $EPP/jboss-as/docs/examples/portal/ to $EPP/jboss-as/server/default/deploy/ 3. Add _portal to the both idm and jcr JNDI names defined in $EPP/jboss-as/server/default/deploy/gatein-ds.xml 4. Start EPP Actual results: Server errors, sample-portal did not startup successfully. Expected results: EPP starts with no errors, sample-portal (container) is available. http://localhost:8080/sample-portal
Fixed in accordance with the above hints 1), 2) and 3).
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: gatein-sample-portal-ds.xml file included in the documentation distributed with JBoss AS was out of sync with the gatein-ds.xml. Consequence: Errors in the application server log when gatein-sample-portal-ds.xml was deployed together with gatein-sample-portal.ear Fix: gatein-sample-portal-ds.xml file was brought in sync with gatein-ds.xml: (1) The order of datasources: IDM before JCR; (2) The Hypersonic data file location now under the gatein conf directory. (3) The IDM datastore was changed from local-tx-datasource to no-tx-datasource. Result: Deployment of gatein-sample-portal-ds.xml with gatein-sample-portal.ear now finishes without errors and the sample portal can be visited under http://localhost:8080/sample-portal.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1 @@ -Cause: gatein-sample-portal-ds.xml file included in the documentation distributed with JBoss AS was out of sync with the gatein-ds.xml. +It was discovered that the gatein-sample-portal-ds.xml file shipped with the application server was out of sync with the gatein-ds.xml file. Customers that used the sample portal datasource file experienced issues when the file was deployed together with gatein-sample-portal.ear. Errors were logged to the application server's log, and the sample portal would not correctly start. The fix rebases gatein-sample-portal-ds.xml in line with gatein-ds.xml with the following fixes: The IDM database configuration is declared before JCR; The Hypersonic data file location is now specified under the gatein conf directory; and the IDM datastore was changed from local-tx-datasource to no-tx-datasource. When gatein-sample-portal-ds.xml is deployed with gatein-sample-portal.ear, the sample portal starts, and can be visited using http://localhost:8080/sample-portal.-Consequence: Errors in the application server log when gatein-sample-portal-ds.xml was deployed together with gatein-sample-portal.ear -Fix: gatein-sample-portal-ds.xml file was brought in sync with gatein-ds.xml: (1) The order of datasources: IDM before JCR; (2) The Hypersonic data file location now under the gatein conf directory. (3) The IDM datastore was changed from local-tx-datasource to no-tx-datasource. -Result: Deployment of gatein-sample-portal-ds.xml with gatein-sample-portal.ear now finishes without errors and the sample portal can be visited under http://localhost:8080/sample-portal.
Verified again at 5.2.2 CR01
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.