Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
Unknown entity bean class, but not always..
posted 7 years ago
hi, I want to use an entity bean in the ServletContextListener's contextInitialized, to read some variables from the database, it works well, but sometimes if I start the application get the following error message and I have to restart it..
: Unknown entity bean class: class ... , please verify that this class has been marked with the @Entity annotation.
What could be the reason for this? The class is marked with the @Entity annotation, and it is listed in the persistence.xml.
I get this error on every 4 - 5. start attempt.
You showed up just in time for the waffles! And this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
Hibernate Mapping Files Ignored
can an Entity Bean be a private class?
use an entity bean in the contextInitialized method
Deployment problem in OC4J
persistence unit scope