openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: ClassNotFoundException in PCEnhancerTask when class has already been enhanced
Date Thu, 06 May 2010 14:25:56 GMT

Hi,
  1. How does persistence.xml exactly refer to the orm.xml? Are these in the
same directory?
  2. Can you replace <openjpac> with direct invocation of PCEnhancer and see
if there is any difference.
      <java classname="..openjpa.enhance.PCEnhancer" fork="true">
          <classpath refid="that.includes.web-inf.classes.and.openjpa.jar">
          <arg value="-properties">
          <arg value="META-INF/persistence.xml#MyUnit">
      </java>
     notice how #MyUnit is used to qualify the persistence.xml. Here MyUnit
is the name of the persistence unit.
   

-----
Pinaki 
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/ClassNotFoundException-in-PCEnhancerTask-when-class-has-already-been-enhanced-tp5010582p5014448.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message