openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Simons <michael.sim...@optitool.de>
Subject Enhancer problem, using ant
Date Mon, 18 May 2009 16:34:18 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Running my ant-script to enhance my pc-classes I get these messages:
<snip>
Buildfile: C:\home\sim\dev\otj-domain\src\build.xml
enhance:
 [openjpac] Some product derivations are being skipped. For information about product derivation
status, run:
 [openjpac] java org.apache.openjpa.lib.conf.ProductDerivations

BUILD FAILED
C:\home\sim\dev\otj-domain\src\build.xml:29: java.lang.NoClassDefFoundError:
javax/transaction/Synchronization

Total time: 922 milliseconds
</snip>

Running the PCEnhancer class directly works.

What might be the problem with the Synchronization interface?
Can anyone please explain that derivations thing to me, because I don't understand it?

<excerpt source="build.xml">
<?xml version="1.0"?>
<project name="..." default="enhance" basedir=".">

	<property name="build.dir" value="${basedir}/bin" />
	<property name="src" value="${basedir}/src" />
	<property name="jpa.lib" value=".../openjpa-1.2.1"/>

	<path id="cp">
     	<pathelement path="${src}"/>
    	<pathelement path="${build.dir}"/>
      	<fileset dir="${jpa.lib}" includes="**/*.jar"/>
      	<pathelement path="${develop.basedir}/uoj-common/bin" />
      	<pathelement path="${develop.basedir}/uoj-geocode/bin" />
    </path>

	<!-- define the openjpac task; this can be done at the top of the -->
	<!-- build.xml file, so it will be available for all targets -->
	<taskdef
classpath="${jpa.lib}/openjpa-1.2.1.jar;${jpa.lib}/commons-lang-2.1.jar;commons-collections-3.2.jar"
name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask"/>
	<target name="enhance" description="Enhance pc classes">
	 <!-- invoke enhancer on all .class files below the .../domain directory -->
		<openjpac>
			<fileset dir="${build.dir}">
				<include name="**/domain/*.class" />
			</fileset>
		</openjpac>
	</target>
	
</project>
</excerpt>

kind regards,
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKEY4K5aNR/9BakrgRAtqrAJ97zs/5zEMNKz1Ua0350YpcLWdDvQCfQXZG
RgUpR5XT3lZc9jBVGb7EWbg=
=PHSb
-----END PGP SIGNATURE-----

Mime
View raw message