Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

oracle kodo fatal user error

 
Lam Le
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using oracle kodo to test my JPA application. I did successfully run it in oracle webshop. The kodo jar files I downloaded from http://edelivery.oracle.com/ .However, I do not know why when I run the same application in normal eclipse editor, it causes some problems about fatal user error.

com.bea.dao.DAOException: <1.0.0-SNAPSHOT-SNAPSHOT fatal user error> org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "Application". This could mean that the OpenJPA enhancer or load-time weaver was not run on the type whose alias is "Application". Registered alias mappings: "{Application=null}"
at com.bea.dao.CustomerDAO_Kodo.getAllApplications(CustomerDAO_Kodo.java:42)
at com.bea.dao.Test.main(Test.java:15)

In my src folder, there is one file called license.bea.
Here is my persistence.xml:

<persistence-unit name="unitK">
<provider>
org.apache.openjpa.persistence.PersistenceProviderImpl
</provider>

<class>jpa.Xmltest</class>
<class>jpa.Application</class>
<properties>
<property name="openjpa.TransactionMode" value="local"/>
<property name="openjpa.QueryCompilationCache" value="false"/>
<property name="openjpa.ConnectionDriverName" value="oracle.jdbc.OracleDriver"/>
<property name="openjpa.ConnectionURL" value="jdbcracle:thin:@localhost:1521:XE"/>
<property name="openjpa.ConnectionUserName" value="hr"/>
<property name="openjpa.ConnectionPassword" value="hr"/>
</properties>
</persistence-unit>

Thanks for help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic