Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
6.0.0.M2
-
None
Description
I have a JavaEE application with an EJB JAR with JPA entitities (and persistence.xml), WAR and everything bundled within an EAR.
The WAR has a ServletContextListener registered in web.xml. The ServletContextListener gets a session bean injected via @EJB.
The session bean tries to execute some JPA named query via the @PersistenceContext injected EntityManager.
I receive the following exception: Caused by: java.sql.SQLException: Table not found in statement
This indicates that the JPA layer has not yet created the tables before the WAR is being deployed, which is some weird as the EJB JAR is being deployed before the WAR is.