*
The moose likes Object Relational Mapping and the fly likes Error compiling the query. Unknown entity type [mlsUser] 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 "Error compiling the query. Unknown entity type [mlsUser]" Watch "Error compiling the query. Unknown entity type [mlsUser]" New topic
Author

Error compiling the query. Unknown entity type [mlsUser]

Marius Messerli
Greenhorn

Joined: May 20, 2011
Posts: 2
Hello EJB Enthusiasts,

I am running an EJB application (swing client) for several years just fine. In the transition of upgrading to Netbeans 7 / GlassFish 3.x something has broken and I can figure out what it is.

The runtime message is:



The application compiles, deploys, and starts without errors and it is when the applicent access the server for the first time that I get the error mentioned above.

mlsUser mapps to a MySQL table "users" as follows:



The persistence unit mapps to data source "MindlinerDataSource" and the underlying connection pool pings successfully.

Any help is much appreciated.

Thanks,
Marius
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
Ensure the class is listed in your persistence.xml, or in the jar if using unlisted classes.

Check for any errors that occurred on startup.

Do other Entitys work, what is different about this one?

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
Marius Messerli
Greenhorn

Joined: May 20, 2011
Posts: 2
Perfect. Many (!) thanks, James. I accidentally unchecked "Include All Entity in "MindlinerServer" Module.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error compiling the query. Unknown entity type [mlsUser]
 
Similar Threads
JPA-Unknown entity type error when i actually have the entity in my DB
Querying in JPA
Please help me on using EJB-QL with JBoss 4.0
design decision: variation of session fassade
EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f