Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Class Weaving

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


Back to the top