You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (Updated) (JIRA)" <ji...@apache.org> on 2012/02/02 19:22:54 UTC

[jira] [Updated] (OPENJPA-1590) Agent enhancer doesn't work with Tomcat

     [ https://issues.apache.org/jira/browse/OPENJPA-1590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-1590:
--------------------------------

    Affects Version/s: 2.2.0
                       2.1.1
        Fix Version/s:     (was: 2.2.0)
                       2.3.0

Move fix version to 2.3.0 in preparation for 2.2.0 release.
                
> Agent enhancer doesn't work with Tomcat
> ---------------------------------------
>
>                 Key: OPENJPA-1590
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1590
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: integration, UnenhancedClasses
>    Affects Versions: 2.0.0-M3, 2.1.1, 2.2.0
>            Reporter: Jeremy Bauer
>             Fix For: 2.3.0
>
>
> Originally reported as OPENJPA-1410 - Class linkage exception when creating an EMF with OpenJPA M3
> Experimentation and a quick search for similar issues is showing that use of the OpenJPA's agent enhancer with Tomcat never worked?!? The agent gets tied to the base class loader and enhances classes available to that loader at startup. Each app has their own lazily instantiated class loader. Enhancement has already taken place by the time those loaders get instantiated. This looked like a regression, but it it is actually a separate and much larger issue than the one raised in this JIRA. I will not pursue that issue at this time. 
> Please verify that you no longer see the original problem/exception with latest 2.0 build. If you were relying on runtime enhancement you will need to re-enable it by specifying:
> <property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
> A more recommended solution is to enhance your entities at build time and set -
> <property name="openjpa.DynamicEnhancementAgent" value="false"/>
> <property name="openjpa.RuntimeUnenhancedClasses" value="unsupported"/> 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira