2 Replies Latest reply on Sep 24, 2012 10:27 AM by sarahfr

    Problem with hibernate configuration

    sarahfr Newbie

      Hi,

      I try to deploy my application in JBoss 7.1 but I have this error:

       

      16:29:20,334 INFO  [org.hibernate.cfg.Configuration] (MSC service thread 1-7) HHH000040: Configuration resource: hibernate.cfg.xml

      16:29:20,354 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/CCS]] (MSC service thread 1-7) StandardWrapper.Throwable: java.lang.ExceptionInInitializerError

              at cwe.common.CWEJBPMUtils.<clinit>(CWEJBPMUtils.java:66) [CWE.jar:]

              at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_25]

              at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_25]

              at ccp.workflow.CWEServicesServlet.init(CWEServicesServlet.java:67) [CameleonChannelSelling.jar:]

              at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]

      Caused by: org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml

              at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2010) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

              at org.hibernate.cfg.Configuration.configure(Configuration.java:1922) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

              at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90) [jbpm.jar:]

              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68) [jbpm.jar:]

              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90) [jbpm.jar:]

              at cwe.common.CWEJBPMUtils.<clinit>(CWEJBPMUtils.java:61) [CWE.jar:]

              ... 14 more

      Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

              at org.dom4j.io.SAXReader.read(SAXReader.java:484) [dom4j.jar:]

              at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2002) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

              ... 19 more

       

       

      16:29:20,365 INFO  [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /CWE

      16:29:20,434 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/CCS]] (MSC service thread 1-7) La servlet /CCS a gÚnÚrÚ une exception "load()": org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

              at org.dom4j.io.SAXReader.read(SAXReader.java:484) [dom4j.jar:]

              at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2002) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

              at org.hibernate.cfg.Configuration.configure(Configuration.java:1922) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

              at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90) [jbpm.jar:]

              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68) [jbpm.jar:]

              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90) [jbpm.jar:]

              at cwe.common.CWEJBPMUtils.<clinit>(CWEJBPMUtils.java:61) [CWE.jar:]

              at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_25]

              at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_25]

              at ccp.workflow.CWEServicesServlet.init(CWEServicesServlet.java:67) [CameleonChannelSelling.jar:]

              at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]

       

       

      Can you help me?????

      thanks