Hello I've managed to compile and deploy Ode successfully after some random tweaking.
I'm not sure which changes I've made really did fix problems, but it seems that at least failonerror="true" attributes are worth adding, since they helped me a lot to narrow down problems. Maybe my environment is broken, but adding additional dependencies might have solved "class not found" exceptions somewhere. Also I've manually imported two Sun's jars into Maven's repository - jta and j2ee_connector. I don't know if they're really needed (Ode's pages do not mention this). Are javax.synchronization or javax.resource.cci provided somewhere else? I'm attaching patch that makes Ode compile correctly to war that deploys without error into Tomcat (I've tested deployment with Tomcat versions 6.x and 5.x), although I'm not sure which changes are really needed. Best Regards, Maciej
Index: dao-jpa-ojpa-derby/build.xml =================================================================== --- dao-jpa-ojpa-derby/build.xml (revision 529449) +++ dao-jpa-ojpa-derby/build.xml (working copy) @@ -84,6 +84,7 @@ <target name="derby-shutdown"> <java classname="org.apache.derby.tools.ij" + fork="true" append="true" failonerror="true" classpathref="maven.dependency.classpath" > @@ -93,13 +94,14 @@ <target name="gen-schemas"> <mkdir dir="${target.dir}"/> - <java classname="org.apache.openjpa.jdbc.meta.MappingTool"> + <java classname="org.apache.openjpa.jdbc.meta.MappingTool" + fork="true" + append="true" + failonerror="true" + classpathref="maven.dependency.classpath"> <arg line="-p ${descriptors.dir}/persistence.derby.xml"/> <arg line="-sa build"/> <arg line="-sql ${derby.target.sql}"/> - <classpath> - <path refid="maven.dependency.classpath"/> - </classpath> </java> <concat destfile="${derby.target.sql}" append="true"> <fileset file="${src.sql.dir}/quartz-derby.sql" /> Index: dao-jpa/pom.xml =================================================================== --- dao-jpa/pom.xml (revision 529449) +++ dao-jpa/pom.xml (working copy) @@ -57,6 +57,16 @@ <artifactId>xercesImpl</artifactId> <scope>compile</scope> </dependency> + <dependency> + <groupId>javax.transaction</groupId> + <artifactId>jta</artifactId> + <version>1.0.1B</version> + </dependency> + <dependency> + <groupId>javax.resource</groupId> + <artifactId>connector</artifactId> + <version>1.0</version> + </dependency> </dependencies> <build> @@ -72,7 +82,9 @@ <id>OpenJPA Enhancer</id> <configuration> <tasks> - <java classname="org.apache.openjpa.enhance.PCEnhancer"> + <java classname="org.apache.openjpa.enhance.PCEnhancer" + fork="true" + failonerror="true"> <arg line="-p ${basedir}/src/main/resources/META-INF/persistence.xml"/> <arg line="-d ${basedir}/target/classes"/> <classpath> Index: bpel-store/pom.xml =================================================================== --- bpel-store/pom.xml (revision 529449) +++ bpel-store/pom.xml (working copy) @@ -86,6 +86,23 @@ <artifactId>commons-collections</artifactId> <version>3.1</version> </dependency> + <dependency> + <groupId>javax.transaction</groupId> + <artifactId>jta</artifactId> + <version>1.0.1B</version> + </dependency> + <dependency> + <groupId>javax.resource</groupId> + <artifactId>connector</artifactId> + <version>1.0</version> + </dependency> + <!-- + <dependency> + <groupId>javax.resource</groupId> + <artifactId>connector-api</artifactId> + <version>1.0</version> + </dependency> + --> </dependencies> <build> <plugins> @@ -122,11 +139,14 @@ <tasks> <mkdir dir="target/classes/META-INF"/> <copy todir="target/classes/META-INF" file="src/main/resources/META-INF/persistence.xml"/> - <java classname="org.apache.openjpa.enhance.PCEnhancer"> + <java classname="org.apache.openjpa.enhance.PCEnhancer" + fork="true" + failonerror="true"> <arg line="-p ${basedir}/src/main/resources/META-INF/persistence.xml"/> <arg line="-d ${basedir}/target/classes"/> <classpath> <path refid="maven.compile.classpath"/> + <path refid="maven.dependency.classpath"/> <!--<path refid="maven.plugin.classpath"/>--> </classpath> </java>