This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException" Watch "Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException" New topic

Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException

Mark Wallsgrove

Joined: Sep 18, 2009
Posts: 2

This is my first post on this web site. I found it through googling something from the book Spring in Action.
I don't believe that I have configured Spring correctly because it keeps throwing this exception:

Exception in thread "main" org.springframework.dao.InvalidDataAccessApiUsageException: Object: com.test.domain.Motorist@83b1b is not a known entity type.;
nested exception is java.lang.IllegalArgumentException: Object: com.test.domain.Motorist@83b1b is not a known entity type.

Here is my persistence file:

Here is the output from running the application. Any ideas?

Sorry for the huge log .. For some reason it won't let me attach a .log or .txt file :S

Best Regards,
subject: Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException
Similar Threads
Running application on web start
Transaction failure crashes program
Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'
Spring 2.5 - Transaction example
Spring JDBC Problem getting log messages