0 Replies Latest reply on Apr 9, 2014 4:06 PM by Anne Rosset

    Issue redeploying an ear when using Infinispan 2LC

    Anne Rosset Newbie

      Hi,

      We have an app with 2 ears. The second ear is using infinispan as 2LC and it works fine.

      But if we try to redeploy this ear we get this error:

      aused by: java.lang.NullPointerException

              at org.hibernate.cache.infinispan.InfinispanRegionFactory.getCache(InfinispanRegionFactory.java:445)

              at org.hibernate.cache.infinispan.InfinispanRegionFactory.buildEntityRegion(InfinispanRegionFactory.java:198)

              at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:339)

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)

              at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

       

      Any idea on why this is happening and how to solve this issue. (A work around for us is to redeploy the first ear as well)

      Thanks for any help,

      Anne