ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
651
651
EMPFEHLEN
-
12.04.11 13:08 #1
- Registriert seit
- Oct 2005
- Beiträge
- 32
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 :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
... <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 :1 2 3 4 5 6 7 8
<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?
Ähnliche Themen
-
JPA Toplink Derby "Drop and Create Tables" funktioniert nicht!
Von Merschi im Forum Enterprise Java (JEE, J2EE, Spring & Co.)Antworten: 2Letzter Beitrag: 08.04.08, 11:59 -
bei <input type="file"> den "Durchsuchen" text verändern?
Von Bomber im Forum HTML & XHTMLAntworten: 7Letzter Beitrag: 29.09.06, 22:45 -
<input type="text" value=""> mit $variable füllen
Von Kopfballstar im Forum PHPAntworten: 7Letzter Beitrag: 04.03.05, 14:07 -
<meta name="DC.Type" content="Text"> ?
Von son gohan im Forum HTML & XHTMLAntworten: 7Letzter Beitrag: 15.01.05, 16:08 -
Bei <input type="file" den "Durchsuchen.." text verändern?
Von Bomber im Forum HTML & XHTMLAntworten: 1Letzter Beitrag: 05.06.02, 13:00





Zitieren
Login





