Are you seeing this line in the logs prior to the unit tests?
  *** CayenneAgent starting...
This should indicate that the agent is started. If not, check that  
both "forkMode" and "argLine" match what I posted, of course with $ 
{version} replaced with the actual Cayenne version.
Andrus
On Dec 10, 2007, at 7:22 PM, Gilberto C Andrade wrote:
>
>> So is it the same error as before or something else?
>>
>> Andrus
>
> Yes, it is the same one!
>
>>>> -------------------------------------------------------
>>>> T E S T S
>>>> -------------------------------------------------------
>>>> Running com.gilbertoca.gfi.service.PessoaServiceTest
>>>> Dec 10, 2007 11:21:43 AM org.apache.cayenne.jpa.Provider
>>>> createEntityManagerFactory
>>>> INFO: Extra PersistenceUnitInfo properties: null
>>>> Dec 10, 2007 11:21:43 AM
>>>> org.apache.cayenne.jpa.instrument.InstrumentingUnit addTransformer
>>>> INFO: *** Adding transformer:
>>>> org.apache.cayenne.jpa.instrument.UnitClassTransforme..2a55aa
>>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:  
>>>> 0.467
>>>> sec <<< FAILURE!
>>>> Running com.gilbertoca.gfi.AppTest
>>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
>>>> 0.024
>>>> sec>
> -------------------------------------------------------------------------------
>
>> Test set: com.gilbertoca.gfi.service.PessoaServiceTest
>> -------------------------------------------------------------------------------
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:  
>> 2.284 sec <<< FAILURE!
>> hello(com.gilbertoca.gfi.service.PessoaServiceTest)  Time elapsed:  
>> 1.952 sec  <<< ERROR!
>> java.lang.IllegalStateException: Attempt to add a transformer  
>> failed - instrumentation is not initialized.
>>       at  
>> org 
>> .apache 
>> .cayenne 
>> .jpa 
>> .instrument.InstrumentingUnit.addTransformer(InstrumentingUnit.java: 
>> 69)
>>       at  
>> org 
>> .apache 
>> .cayenne 
>> .jpa.Provider.createContainerEntityManagerFactory(Provider.java:243)
>>       at  
>> org 
>> .apache 
>> .cayenne.jpa.Provider.createEntityManagerFactory(Provider.java:194)
>>       at  
>> javax 
>> .persistence 
>> .Persistence.createEntityManagerFactory(Persistence.java:83)
>>       at  
>> javax 
>> .persistence 
>> .Persistence.createEntityManagerFactory(Persistence.java:60)
>>       at  
>> com 
>> .gilbertoca 
>> .gfi.service.PessoaServiceTest.setUp(PessoaServiceTest.java:32)
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>       at  
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>       at  
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Tue Dec 11 2007 - 10:45:57 EST