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

Unknown abstract schema type

 
Mohammad Jaber
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

i Have an JPA/Toplink application on which i used Manual creation of EntityManager and iam using <exclude-unlisted-classes>false</exclude-unlisted-classes> , it works fine under IBM WAS , but when i deply it into Oracle AS 10.1.3.3 , it gives me the following (Exception Description: Error compiling the query , .... , Unknown abstract schema type ) , is this familiar , Thanks

Best Regards
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was answered in the TopLink forum, but in summary...

Explicitly setting exclude-unlisted-classes to false and using the Persistence bootstrap API triggers an extra feature in TopLink Essentials that causes it to automatically discover all of the entities located in the same scope as the persistence.xml file was found. This feature mimics the standard EJB 3 container feature that does the same thing, but was intended to be used in the absence of a container, not inside one, since normally when running in a container the container will do it.

When using the bootstrap API inside a container then the important thing is to ensure that the entities are on the classpath in the scope in which the Persistence class is invoked. The entities can be enumerated either as class elements in persistence.xml or as entity elements in an orm.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic