• Post Reply Bookmark Topic Watch Topic
  • New Topic

oracle kodo fatal user error  RSS feed

Lam Le
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">

<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"/>

Thanks for help
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!