[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Class Weaving
|
Hi tom,
I also enabled the eclipse link finest logging and found the following
logging for the entity Relation
[EL Finer]: 2009-07-14
22:48:07.14--ServerSession(18812899)--Thread(Thread[main,5,main])--Class
[com.oracle.healthinsurance.orm.entities.Relation] registered to be
processed by weaver.
But not logging stating
[EL Finest]: 2009-07-14
22:50:26.859--ServerSession(18812899)--Thread(Thread[main,5,main])--Weaved
persistence (PersistenceEntity)
[com/oracle/healthinsurance/orm/entities/Relation].
+ change tracking + FetchGroupTracker
Also in my test case I set the debugging properties you mentioned
@BeforeClass
public static void setup() {
System.setProperty("eclipselink.weaving.output.path",
"D:\\projects\\ohi_next\\ohi\\trunk\\ohi-orm\\weavedclasses");
System.setProperty("eclipselink.weaving.overwrite.existing","true");
}
Again I cannot see the weaved class.
tware wrote:
>
> Hi Guarav,
>
> What symptoms are you seeing that indicate you are not getting weaving?
> Are
> you certain that some classes are getting weaved and some are not?
>
> Here are some things you can do to get started debugging.
>
> - Set logging to FINEST (eclipselink.logging.level=FINEST)
> - When EclipseLink starts weaving a class it will log the string "Begin
> weaver
> class transformer processing class" + className and when it ends weaving,
> it
> will log the string "End weaver class transformer processing class" +
> class.
> Look for those logging strings with the classes you suspect are not being
> weaved
> and see if any errors are logged between those strings.
> - There are some debug flags that can be set as System properties that
> will
> allow you to output the weaved classes.
> (eclipselink.weaving.output.path=<path>
> and "eclipselink.weaving.overwrite.existing=true"). If you set those
> flags, you
> should be able to see the classes that are weaved. A decompiler will show
> you
> the source.
> - Successfully weaved classes will implement the
> org.eclipse.persistence.internal.weaving.PersistenceWeaved interface.
> Check for
> it on your suspect classes.
>
> -Tom
>
>
> Gaurav Malhotra wrote:
>> Hi,
>>
>> For some my jpa entities the class weaving is not happening. There is
>> no
>> exception in the log.
>>
>> I am using spring
>> org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.
>>
>> Can somebody give me pointer how to debug this issue???
>>
>> Gaurav Malhotra
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
--
View this message in context: http://www.nabble.com/Class-Weaving-tp24485399p24488044.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.