0 Replies Latest reply on Aug 29, 2012 12:15 PM by Andres Bravo

    War correctly deployed in Tomcat 6, But failed in JBoss 5.5

    Andres Bravo Newbie

      Hi, I have a WAR that was deployed into Tomcat 6 correctly. However when I try to deploy it into JBoss, it is throwing exceptiones, refering to JPA, EntityManager Factory etc, etc...

       

      Here a piece of the log:

      .

      .

      .

       

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config/context-jpa.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: application] Unable to configure EntityManagerFactory

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

      .

      .

      .

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/ProcedureServiceHessian' defined in class path resource [config/context-webservice.xml]: Cannot resolve reference to bean 'procedureService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'procedureService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private mx.gob.conocer.prototype.jpa.dao.CatStageDAO mx.gob.conocer.prototype.service.procedure.impl.ProcedureServiceImpl.catStageDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'catStageDAO': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config/context-jpa.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: application] Unable to configure EntityManagerFactory

       

      Why this could be possible? I mean, why in tomcat it's working but doesn't works on JBoss?