On 08/19/2011 10:23 AM, BUSCH Steffen wrote:
> The next evolution of our product (see also
> http://www.caucho.com/resin/press/wmaccess-delivers-data-services-using-
> resin/) has been quite successfully tested with most recent Resin Pro
> 4.0.x versions as long as we were using EclipseLink version 2.1.x.
>
> Before heading into the next stage we needed to upgrade to EclipseLink
> version 2.2 and perform various tests on different Application Servers.
> Tomcat 6 passed, Websphere passed, but we have troubles with Resin
> 4.0.20.
> Even EclipseLink 2.2 is packaged in the WAR, Resin's own EclipseLink
> Version 2.1.2.v20101206-r8635 from $RESIN_HOME/lib/eclipselink.jar is
> used.
> Our Application uses a Constructor of EclipseLink 2.2 which causes the
> IllegalAccessError.

Try removing/replacing the eclipselink.jar from resin/lib. Resin itself 
doesn't depend on eclipselink, so it's safe to remove or replace.

-- Scott

>
> When checking the logging output of the EclipseLink 2.1 test WAR
> (testapp-EclipseLink-2.1.war) it seems that it is working because of the
> fact that packaged EclipseLink and used one from
> $RESIN_HOME/lib/eclipselink.jar have the same major/minor version
> respectivly both are similar enough to properly startup.
>
> ...
> context /testapp-EclipseLink-2.1: initializing EntityManagerFactory.
> context /testapp-EclipseLink-2.1: EclipseLink version packaged in .war
> file: 2.1.1.v20100817-r8050
> context /testapp-EclipseLink-2.1: Loaded EclipseLink version:
> 2.1.2.v20101206-r8635
> context /testapp-EclipseLink-2.1: Using EntityManagerFactory
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl@76438d
> context /testapp-EclipseLink-2.1: Application classloader:
> EnvironmentClassLoader[web-app:production/webapp/default/testapp-Eclipse
> Link-2.1]
> context /testapp-EclipseLink-2.1: EntityManagerFactory classloader:
> sun.misc.Launcher$AppClassLoader@1a7bf11
> context /testapp-EclipseLink-2.1: Creating EntityManager
> [EL Info]: 2011-08-19 11:36:33.961--ServerSession(5181335)--EclipseLink,
> version: Eclipse Persistence Services - 2.1.2.v20101206-r8635
> [EL Info]: 2011-08-19
> 11:36:34.554--ServerSession(5181335)--file:/D:/WMACCESS-4.0/container-te
> sting/resin-pro-4.0.20/webapps/testapp-EclipseLink-2.1/WEB-INF/classes/_
> JPA_TEST login successful
> context /testapp-EclipseLink-2.1: Persisting an entity.
> context /testapp-EclipseLink-2.1:  metamodel instance:
> MetamodelImpl@18521651 [ 2 Types: , 1 ManagedTypes: , 1 EntityTypes: , 0
> MappedSuperclassTypes: , 0 EmbeddableTypes: ]
> context /testapp-EclipseLink-2.1: Closing EntityManager
> context /testapp-EclipseLink-2.1:  context listener finished.
> [11-08-19 11:36:34.647] {resin-56}
> WebApp[production/webapp/default/testapp-EclipseLink-2.1] active
> ...
>
>
>
>
> However, our app required EclipseLink 2.2 now and with all other tested
> servlet containers this issue does not appear (logging output from
> Tomcat 6 below).
> Any advice how to solve this issue?
>
>
> Thanks,
> Steffen
>
>
>
>
> Just for the records - Tomcat 6 output:
>
> INFO: Deploying web application archive testapp-EclipseLink-2.2.war
> context /testapp-EclipseLink-2.2: context listener entry point.
> context /testapp-EclipseLink-2.2: initializing EntityManagerFactory.
> context /testapp-EclipseLink-2.2: EclipseLink version packaged in .war
> file: 2.2.0.v20110202-r8913
> context /testapp-EclipseLink-2.2: Loaded EclipseLink version:
> 2.2.0.v20110202-r8913
> context /testapp-EclipseLink-2.2: Using EntityManagerFactory
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl@1762027
> context /testapp-EclipseLink-2.2: Application classloader:
> WebappClassLoader
>    context: /testapp-EclipseLink-2.2
>    delegate: false
>    repositories:
>      /WEB-INF/classes/
> ---------->  Parent Classloader:
> org.apache.catalina.loader.StandardClassLoader@5329c5
>
> context /testapp-EclipseLink-2.2: EntityManagerFactory classloader:
> WebappClassLoader
>    context: /testapp-EclipseLink-2.2
>    delegate: false
>    repositories:
>      /WEB-INF/classes/
> ---------->  Parent Classloader:
> org.apache.catalina.loader.StandardClassLoader@5329c5
>
> context /testapp-EclipseLink-2.2: Invoking EclipseLink 2.2 constructor.
> context /testapp-EclipseLink-2.2: Creating EntityManager
> [EL Info]: 2011-08-19
> 12:28:14.456--ServerSession(13685038)--EclipseLink, version: Eclipse
> Persistence Services - 2.2.0.v20110202-r8913
> [EL Info]: 2011-08-19
> 12:28:14.918--ServerSession(13685038)--file:/D:/WMACCESS-4.0/container-t
> esting/apache-tomcat-6.0.33/webapps/testapp-EclipseLink-2.2/WEB-INF/clas
> ses/_JPA_TEST login successful
> context /testapp-EclipseLink-2.2: Persisting an entity.
> context /testapp-EclipseLink-2.2:  metamodel instance:
> MetamodelImpl@15703940 [ 2 Types: , 1 ManagedTypes: , 1 EntityTypes: , 0
> MappedSuperclassTypes: , 0 EmbeddableTypes: ]
> context /testapp-EclipseLink-2.2: Closing EntityManager
> context /testapp-EclipseLink-2.2:  context listener finished.
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to