Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error compiling the query. Unknown entity type [mlsUser]

 
Marius Messerli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Marius Messerli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect. Many (!) thanks, James. I accidentally unchecked "Include All Entity in "MindlinerServer" Module.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic