EJB3 project failed on WAS 6.1.0.17 "Name comp/env/persistence notfound" - Websphere

This is a discussion on EJB3 project failed on WAS 6.1.0.17 "Name comp/env/persistence notfound" - Websphere ; Hi, My project worked well with WAS6.1.0.13 + EJB3 GA. Today I have upgraded it to WAS6.1.0.17, it failed. The steps I did for upgrade are: 1. Install WAS6.1 2. Start UpdateInstaller to install "6.1.0-WS-WAS-WinX32-FP0000017.pak" and "6.1.0-WS-WASSDK-WinX32-FP0000017.pak" 3. Install EJB3 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: EJB3 project failed on WAS 6.1.0.17 "Name comp/env/persistence notfound"

  1. EJB3 project failed on WAS 6.1.0.17 "Name comp/env/persistence notfound"

    Hi,



    My project worked well with WAS6.1.0.13 + EJB3 GA. Today I have upgraded it to WAS6.1.0.17, it failed. The steps I did for upgrade are:



    1. Install WAS6.1

    2. Start UpdateInstaller to install "6.1.0-WS-WAS-WinX32-FP0000017.pak" and "6.1.0-WS-WASSDK-WinX32-FP0000017.pak"

    3. Install EJB3 GA by invoke install.exe and provide "6.1.0-WS-WASEJB3-WinX32-FP0000017.pak" as fixpack17 for EJB3



    After that I started server and run my tests, I got problem for get EntityManagerFactory, the persistence provider I am using is EclipseLink, the error is:



    javax.naming.NameNotFoundException: Name comp/env/persistence not found in context "java:".

    at org.eclipse.persistence.testing.framework.server.J EEPlatform.getEntityManagerFa ctory(JEEPlatform.java:153)

    at org.eclipse.persistence.testing.framework.junit.JU nitTestCase.getEntityManagerF actory(JUnitTestCase.java:279)

    at org.eclipse.persistence.testing.framework.junit.JU nitTestCase.getEntityManagerF actory(JUnitTestCase.java:274)

    at org.eclipse.persistence.testing.framework.junit.JU nitTestCase.getServerSession( JUnitTestCase.java:270)

    at org.eclipse.persistence.testing.tests.jpa.sessionb ean.SessionBeanTests.testSetu p(SessionBeanTests.java:69)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.ja va:43)

    at org.eclipse.persistence.testing.framework.junit.JU nitTestCase.runBareServer(JUn itTestCase.java:378)

    at org.eclipse.persistence.testing.framework.server.T estRunnerBean.runTest(TestRun nerBean.java:87)

    at org.eclipse.persistence.testing.framework.server.E JSRemote0SLTestRunner_ed64327 1.runTest(EJSRemote0SLTestRunner_ed643271.java)

    at org.eclipse.persistence.testing.framework.server._ EJSRemote0SLTestRunner_ed6432 71_Tie.runTest(_EJSRemote0SLTestRunner_ed643271_Ti e.java)

    at org.eclipse.persistence.testing.framework.server._ EJSRemote0SLTestRunner_ed6432 71_Tie._invoke(_EJSRemote0SLTestRunner_ed643271_Ti e.java)

    at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHa ndler(ServerDelegate.java:621 )

    at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerD elegate.java:474)

    at com.ibm.rmi.iiop.ORB.process(ORB.java:503)

    at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)

    at com.ibm.rmi.iiop.Connection.respondTo(Connection.j ava:2701)

    at com.ibm.rmi.iiop.Connection.doWork(Connection.java :2575)

    at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl. java:62)

    at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.ja va:118)

    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)



    Does anyone see this already? Are my installation steps correct?

  2. Re: EJB3 project failed on WAS 6.1.0.17 "Name comp/env/persistencenot found"

    Hi, Your EJB3 project did not fail, but the Junit testing cannot find the persistence in the environment. Did you do a dumpNamespace.sh and see if it is there?



    Regards,

    Brian

+ Reply to Thread