Announcement Announcement Module
Collapse
No announcement yet.
OpenJPA, SimpleLoadTimeWeaver - doesn't work together Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OpenJPA, SimpleLoadTimeWeaver - doesn't work together

    Hi,

    When I try to run my application, following error appers in my logfile:

    Code:
    Caused by: <openjpa-2.0.0-r422266:935683 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent:
    first entity,
    second entity, etc
    This may look like typical OpenJPA error, not related to spring, but this error only appears when I put
    Code:
    <context:load-time-weaver weaver-class="org.springframework.instrument.classloading.SimpleLoadTimeWeaver"/>
    to my context file.

    Of course all my entity classes, are automatically enhanced during build process, and I have no idea why load time waver made all these enhancements invisible to openjpa.
    Last edited by LDevil; May 4th, 2010, 01:24 AM.

  • #2
    Build Time enhancement in OPENJPA

    Hi all,

    can anyone tell me how I enhanced all entity classes during build time

    Comment

    Working...
    X