users@glassfish.java.net

Re: Merging from JBoss to GlassFish fails

From: <glassfish_at_javadesktop.org>
Date: Wed, 08 Jul 2009 00:17:06 PDT

added exclude-unlisted-classes, my persistence.xml looks like following, but the error stays the same. here first the verifier error:

<test-name>tests.persistence.DefaultProviderVerification</test-name>
-
<test-assertion>
Test validity of EJB 3.0 persistence unit. This test tests validity using a portable persistence provider. Please refer to EJB 3.0 Persistence API Specification for further information.
</test-assertion>
-
<test-description>
For [ myapp#myappCore.jar#myappPU ]
Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException

Exception Description: predeploy for PersistenceUnit [myappPU] failed.

Internal Exception: Exception [TOPLINK-7243] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException

Exception Description: Missing meta data for class [de.xyz.myapp.core.model.AbstractEntity]. Ensure the class is not being excluded from your persistence unit by a <exclude-unlisted-classes>true</exclude-unlisted-classes> setting. If this is the case, you will need to include the class directly by adding a <class>[de.xyz.myapp.core.model.AbstractEntity]</class> entry for your persistence-unit.
</test-description>


<?xml version="1.0" encoding="UTF-8"?>
<!--
        (C) 2009 me
  -->
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
        <persistence-unit name="myappPU" transaction-type="JTA">

                <provider>oracle.toplink.essentials.PersistenceProvider</provider>
                <jta-data-source>jdbc/myappdb</jta-data-source>
                <exclude-unlisted-classes>false</exclude-unlisted-classes>
                
        </persistence-unit>
</persistence>

help would be apreciated :(
[Message sent by forum member 'tashtego' (tashtego)]

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