2 Replies Latest reply on Jul 13, 2009 6:43 AM by Kevin Conner

    Problems with deploying JPA enabled EJBs to ESB JBoss

    Sean Burns Newbie

      Hello,

      I have a freshly installed JBoss AS 4.2.3, I install Jboss ESB into JBoss AS (into the all config).

      I start jboss and run the helloworld test and everything works perfectly.

      I then copy my ejb jar (which contains a couple of ejbs which use JPA) into the deploy folder and it fails to deploy (It works with normal JBoss 4.2.3 without ESB)


      This is the exception I get

      javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: ProcessInstancesWaiti
      ngForEvent
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
      at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ....
      ....
      ....

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: org.hibernate.HibernateException: Errors in named queries: ProcessInstancesWaitingForEvent
      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:365)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
      ... 99 more


      I can deploy normal (non JPA) EJB's and they work,

      I am not sure what that named query is used for, can I just remove the jar that uses it? (drools-process-enterprise-5.0.0.M4.jar)?

      Please Help, im trying to do a POC using JBoss ESB and any workaround will be much appreciated,

      Thanks,
      Sean.