Zwei Persistence Units mit Toplink auf Glassfish -> "Unknown abstract schema Type"

kleinevroni

Mitglied
Hallo,

weiß jmd spontan, was die Toplink-Fehlermeldung

Exception [TOPLINK-8034] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EJBQLException
Exception Description: Error compiling the query [SELECT t FROM TbConfig t WHERE t.cfgKey = 'blubb']. Unknown abstract schema type [TbConfig].

mir eigtl sagen will?

die Klasse heißt TbConfig.

die persistence.xml:
Code:
...
<persistence-unit name="fkdmjpa">		
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
		<mapping-file>META-INF/orm.xml</mapping-file>
	    <properties>
            <!-- Provider-specific connection properties -->
            <property name="toplink.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
            <property name="toplink.jdbc.url" value="jdbc:oracle:thin:@xxx"/>
            <property name="toplink.jdbc.user" value="xxx"/>
            <property name="toplink.jdbc.password" value="xxx"/>
	    <!-- Provider-specific settings -->
            <property name="toplink.logging.level" value="FINEST"/>
            <property name="toplink.show_sql" value="true" />
        </properties> 
	</persistence-unit>
...

und orm.xml
Code:
<entity-mappings version="1.0"
    xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd">
...
	<entity class="com.bmw.fkdm.entities.TbConfig">
        <table schema="mySchema" name="TB_CONFIG" />
    </entity>
</entity-mappings>

Darüber hinaus hab ich noch eine Persistence Unit in der persistence.xml. Die greift aber auf die Tabelle nicht zu. Allerdings auf die gleiche Datenbank.

Das komische ist: Wenn ich den Glassfish neu starte, und eine Aktion ausführe, die entweder auf persistence unit A oder B zugreift, dann funktioniert jeweils die erste die ich "getriggert" habe. Und bei der anderen kommt dann dieser Fehler. Ist das verständlich?
 
Zurück