I have similar issue with openjpa 1.0.2, so i'm using 1.0.1.

B.

[EMAIL PROTECTED] wrote:
I just switch to OpenJPA from the kodo version (0.9.6).

I am enhancing the class using the open jpa enhancer now and I get an
OutOfMemory Exception.
This is the exact same code as before with kodo.

What is going on - am I missing some parameters?

Here is my new target...

      <target name="enhance" depends="compile" description="Enhance alls
Java classes">
        <taskdef name="openjpac" classname=
"org.apache.openjpa.ant.PCEnhancerTask" classpathref="proj.classpath" />
        <openjpac directory="${code.class.dir}" adddefaultconstructor=
"true" >
            <config propertiesFile="${conf.dir}/META-INF/persistence.xml"/>
          <fileset dir="${code.source.dir}">
            <include name="**/domain/*.java" />
          </fileset>
            <classpath refid="proj.classpath" />
            <classpath>
                  <pathelement location="${code.class.dir}" />
            </classpath>
        </openjpac>
      </target>


And this was my old target using kodo...

      <target name="kodo.enhance.new" depends="compile" description=
"Enhance alls Java classes">
            <java classname="org.apache.openjpa.enhance.PCEnhancer" fork=
"true" dir="${basedir}">
                  <arg line="-p ${conf.dir}/META-INF/persistence.xml -d
${code.class.dir} -adc true " />
                  <classpath refid="proj.classpath" />
                  <!-- <classpath refid="kodo.classpath" /> -->
                  <classpath refid="tangosol.classpath" />
                  <classpath>
                        <pathelement location="${code.class.dir}" />
                  </classpath>
            </java>
      </target>

Please help,

Frederic



Reply via email to