[jboss-jira] [JBoss JIRA] Created: (JBAS-7935) ServletContextListener -> @EJB -> @PersistenceContext -> java.sql.SQLException: Table not found in statement

Frank Cornelis (JIRA) jira-events at lists.jboss.org
Wed Apr 14 05:00:26 EDT 2010


ServletContextListener -> @EJB -> @PersistenceContext -> java.sql.SQLException: Table not found in statement
------------------------------------------------------------------------------------------------------------

                 Key: JBAS-7935
                 URL: https://jira.jboss.org/jira/browse/JBAS-7935
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB3
    Affects Versions: JBossAS-6.0.0.M2
            Reporter: Frank Cornelis
            Assignee: Carlo de Wolf
            Priority: Critical


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list