Bug 378170 - Known issue: Application managed persistence unit is not the same as the container managed session on WLS
Summary: Known issue: Application managed persistence unit is not the same as the cont...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2012-05-01 11:58 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2012-05-01 11:58:31 EDT
The jpa test "org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testApplicationManagedInServer" failed on WLS 10.3.6/12.1.1 with the same exceptions:

Application managed persistence unit is not the same as the container managed session. Deployment is broken.eclipselink-advanced-modelfile:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default != file:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default

junit.framework.AssertionFailedError: Application managed persistence unit is not the same as the container managed session. Deployment is broken.eclipselink-advanced-modelfile:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default != file:/net/ottvm002.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/beahome-10.3.6patch/wlserver_10.3/samples/domains/mydomain/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar_default
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testApplicationManagedInServer(EntityManagerJUnitTestSuite.java:5136)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:662)
at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy68.runTest(Unknown Source)
Comment 1 Petros Splinakis CLA 2015-04-20 07:17:43 EDT
Fixed as part of 455313.
Also introduced 454477 for investigating a better solution.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:34:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink