persistence@glassfish.java.net

Re: Unable to deploy Java Persistence Example ex1-ee.ear using latest trunk build

From: Tom Ware <tom.ware_at_oracle.com>
Date: Wed, 26 Apr 2006 14:41:47 -0400

+1

Sanjeeb Kumar Sahoo wrote:

>Marina,
>
>Given that Java2DB is a heavily used feature by developers, can we
>enable Java2DB for the entity-persistence test case in QuickLook?
>
>Thanks,
>Sahoo
>Tom Ware wrote:
>
>
>>It looks like a change is required to the EntityManagerFactory close
>>method to make clean-up happen properly since the most recent drop. I
>>will look into making those changes.
>>
>>Thanks,
>>-Tom
>>
>>Michael Bouschen wrote:
>>
>>
>>
>>>Hi,
>>>
>>>today I tried to deploy the Java EE example (ex1-ee.ear) from the
>>>Java Persistence Example page:
>>>https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html#Using_in_Java_EE
>>>
>>>
>>>I'm using the current trunk glassfish-image as installed by 'maven
>>>bootstrap configure-runtime' called from the bootstrap directory.
>>>Deploying the ear ex1-ee.ear fails saying a session is redeployed w/o
>>>closing it. Here is the detailed message:
>>>% asadmin.bat deploy --retrieve . ../ex1-ee.ear
>>>CLI171 Command deploy failed : Deploying application in domain
>>>failed; Exception [TOPLINK-28009] (Oracle TopLink Essentials - 2006.4
>>>(Build 060420)):
>>>oracle.toplink.essentials.exceptions.EntityManagerSetupException
>>>Exception Description: Attempted to redeploy a session named
>>>file:/D:/sjsas9/ws/publish/glassfish/domains/domain1/applications/j2ee-apps/ex1-ee/entities.jar-pu1
>>>without closing it.
>>>
>>>Sahoo suggested I should try to deploy with java2db disabled. I
>>>removed the property toplink.ddl-generation from the persistence.xml.
>>>Then the exception disappears and the ear deploys. I can also deploy
>>>the original ear (with java2db enabled) using the latest promoted
>>>build from the FCS branch (b45).
>>>
>>>Any idea?
>>>
>>>Regards Michael
>>>
>>>
>>>
>>>