Hi Kevin,

After debugging, I discovered that I need to have a META-INF/persistence.xml
file on my classpath for this to work otherwise no ClassFileTransformer is
installed and hence enhancing does not work.

It may be worth to explicitly state that out-of-the-box the javaagent
requires a META-INF/persistence in the classpath to work.

Thanks,
Gianny


Kevin Sutter wrote:
> 
> Hi Gianny,
> I use this all the time.  On my Run configuration for the application that
> I
> am running I will put something like the following as a JVM argument...
> 
> -javaagent:C:/eclipse.workspaces/3.2.2/openjpa-1.2.0/openjpa-all/target/openjpa-1.2.0.jar
> 
> This should kick in the PCEnhancerAgent for the Entity classes that are
> being loaded.
> 
> Kevin
> 
> On Fri, Jan 30, 2009 at 3:53 AM, Gianny Damour <
> [email protected]> wrote:
> 
>> Hi,
>>
>> I am unable to get javaagent based enhancement work within Eclipse.
>>
>> Based on a cursory review of PCEnhancerAgent, I can see that no
>> ClassFileTransformer is installed when
>>
>>        List<String> anchors = Configurations.
>>            getFullyQualifiedAnchorsInPropertiesLocation(opts);
>>
>> returns an empty list, which it does in my case when I simply specify the
>> following JVM arg
>>
>> -javaagent:<path to>/openjpa-1.2.0.jar
>>
>>
>> Any hint?
>>
>> Thanks,
>> Gianny
>>
>>
>>
>>
>>
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Eclipse---javaagent-enhancement-tp2245449p2247933.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to