users@glassfish.java.net

Glassfish b55 persistence unit deployment problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Jul 2007 06:52:52 PDT

Hi All,

I have just installed gf b55 on WinXP and Java 1.6.0_01. I have an application that was working perfectly on b54, but now fails with b55. I see in the server trace the following during the deployment of the application :-

PersistenceUnitInfoImpl: For pu-root [C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\SuprimaLiteDataAccess_jar], a jar-file [SuprimaDataEntities.jar] specified in persistence.xml is not found. The server also looked for a file called [C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\SuprimaDataEntities_jar]. Please verify your application.
PersistenceUnitInfoImpl: For pu-root [C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\SuprimaDataAccess_jar], a jar-file [SuprimaDataEntities.jar] specified in persistence.xml is not found. The server also looked for a file called [C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\C:\Sun\glassfish\domains\domain1\applications\j2ee-apps\Suprima_Lite\SuprimaDataEntities_jar]. Please verify your application.

Note that for the two persistence units, the path that the server claims it is looking through seems to have the first part repeated i.e. [C:\Sun\.......\C:\Sun\......]. I would assume that this is the problem, since later on, when the first query is executed in the application, an exception occurs, presumably caused by the fact that the data entities are not loaded due to the first deployment error (I have removed the first and last parts of the stack trace to keep this short) :-

Caused by: Exception [TOPLINK-8034] (Oracle TopLink Essentials - 2.0 (Build b55-rc (07/11/2007))): oracle.toplink.essentials.exceptions.EJBQLException
Exception Description: Error compiling the query [SELECT u from SystemUnit u WHERE u.installationID = :installationID AND u.unitID = :unitID]. Unknown abstract schema type [SystemUnit].
        at oracle.toplink.essentials.exceptions.EJBQLException.unknownAbstractSchemaType(EJBQLException.java:494)
        at oracle.toplink.essentials.internal.parsing.ParseTreeContext.classForSchemaName(ParseTreeContext.java:163)
        at oracle.toplink.essentials.internal.parsing.SelectNode.getClassOfFirstVariable(SelectNode.java:366)
        at oracle.toplink.essentials.internal.parsing.SelectNode.getReferenceClass(SelectNode.java:354)
        at oracle.toplink.essentials.internal.parsing.ParseTree.getReferenceClass(ParseTree.java:463)
        at oracle.toplink.essentials.internal.parsing.ParseTree.adjustReferenceClassForQuery(ParseTree.java:103)
        at oracle.toplink.essentials.internal.parsing.EJBQLParseTree.populateReadQueryInternal(EJBQLParseTree.java:127)
        at oracle.toplink.essentials.internal.parsing.EJBQLParseTree.populateQuery(EJBQLParseTree.java:108)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:219)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:189)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:153)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:114)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:99)
        at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
        at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:204)
        ... 95 more
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager

Regards,

Steve.
[Message sent by forum member 'suttridge_farm' (suttridge_farm)]

http://forums.java.net/jive/thread.jspa?messageID=226329