1 Reply Latest reply on Mar 22, 2013 9:11 AM by Gunnar Bostrom

    Failed to start service jboss.persistenceunit

    Gunnar Bostrom Newbie

      Hi,

      I'm trying to migrate an application from JBoss 5.1 to JBoss 7.1.3.

      I get the following stacktrace when starting the server.

       

      13:10:19,575 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      13:10:19,582 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 50) HHH000412: Hibernate Core {4.1.6.Final}

      13:10:19,584 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000206: hibernate.properties not found

      13:10:19,586 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000021: Bytecode provider name : javassist

      13:10:19,605 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 50) HHH000204: Processing PersistenceUnitInfo [

                name: CasablancaDataUnit

                ...]

      13:10:19,871 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC00001: Failed to start service jboss.persistenceunit."ebill-ear.ear/ebill-engine.jar#CasablancaDataUnit": org.jboss.msc.service.StartException in service jboss.persistenceunit."ebill-ear.ear/ebill-engine.jar#CasablancaDataUnit": javax.persistence.PersistenceException: [PersistenceUnit: CasablancaDataUnit] Unable to build EntityManagerFactory

                at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:100) [jboss-as-jpa-7.1.3.Final.jar:7.1.3.Final]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: CasablancaDataUnit] Unable to build EntityManagerFactory

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

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

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

                at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:197) [jboss-as-jpa-7.1.3.Final.jar:7.1.3.Final]

                at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$500(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.1.3.Final.jar:7.1.3.Final]

                at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:96) [jboss-as-jpa-7.1.3.Final.jar:7.1.3.Final]

                ... 4 more

      Caused by: org.hibernate.MappingException: Could not create DynamicParameterizedType for type: org.hibernate.type.EnumType

                at org.hibernate.mapping.SimpleValue.createParameterImpl(SimpleValue.java:398)

                at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:304)

                at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:294)

                at org.hibernate.mapping.Property.isValid(Property.java:238)

                at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:469)

                at org.hibernate.mapping.RootClass.validate(RootClass.java:270)

                at org.hibernate.cfg.Configuration.validate(Configuration.java:1294)

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

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

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

                ... 9 more

      Caused by: java.lang.ClassNotFoundException: int from [Module "org.hibernate:main" from local module loader @99f0a4b (roots: /home/bostrgun/opt/jboss7/modules)]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]

                at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_17]

                at java.lang.Class.forName(Class.java:188) [rt.jar:1.7.0_17]

                at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192)

                at org.hibernate.mapping.SimpleValue.createParameterImpl(SimpleValue.java:389)

                ... 18 more

       

       

      What can be wrong?

      Gunnar