Results 1 to 2 of 2

Thread: OpenJPA, SimpleLoadTimeWeaver - doesn't work together

  1. #1
    Join Date
    May 2010
    Posts
    5

    Default OpenJPA, SimpleLoadTimeWeaver - don'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 at 12:24 AM.

  2. #2

    Default Build Time enhancement in OPENJPA

    Hi all,

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •