Community
Participate
Working Groups
The following changes are required in order to run JPA testing on JBoss: 1. Add jboss.properties and jboss.xml under trunk\jpa\eclipselink.jpa.test to provide testing environment properties and targets for install, start/stop server, config server and deploy/undeploy applications on JBoss application server. 2. Add persistence.xml for each test suiteand put it under jboss dir because jboss has different jndi name for data-source, e.g trunk\jpa\eclipselink.jpa.test\resource\eclipselink-sessionbean-model\server\jboss\persistence.xml. Modify trunk\jpa\eclipselink.jpa.test\build.xml within "server-build-ejb-jar" target, make sure use correct persistence.xml (under jboss dir). 3. Add jboss dir under trunk\jpa\eclipselink.jpa.test\resource, and put data source xml under this dir, e.g. oracle-ds.xml.
*** Bug 227707 has been marked as a duplicate of this bug. ***
Created attachment 107843 [details] patch for the bug
Created attachment 107851 [details] patch for the bug based on some feedback Based on some feedback, there are the following changes: - Clean up all ${db.name}-ds.xml, remove some comments; - Remove <property file="./test.properties"/> in jboss.xml, it had been already loaded in build.xml; - Remove <chmod dir="${jboss.server}/deploy" perm="ugo+w" includes="*.xml"/> in jboss.xml.
The patch has been checked in both the trunk and 1.0.1 branch. Code Reviewed by: Edwin Tang
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink