1 Reply Latest reply on Aug 7, 2014 3:06 PM by Steven Hu

    Guys Please, Need help with EJB 3 Hibernate on JBOSS- error

    Chamila Liyanage Newbie

      11:52:57,319 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      11:52:57,531 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      11:52:57,583 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      11:52:58,479 INFO  [org.xnio] XNIO Version 3.0.3.GA

      11:52:58,480 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      11:52:58,489 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      11:52:58,496 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      11:52:58,523 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      11:52:58,527 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      11:52:58,532 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      11:52:58,534 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      11:52:58,548 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      11:52:58,551 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      11:52:58,567 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      11:52:58,577 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final

      11:52:58,644 INFO  [org.jboss.as.connector] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      11:52:58,751 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service

      11:52:58,759 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA

      11:52:58,819 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      11:52:58,830 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

      11:52:59,321 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      11:52:59,385 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on localhost/127.0.0.1:4447

      11:52:59,388 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory D:\J2EE SFT\jboss-as-7.1.1.Final\standalone\deployments

      11:52:59,385 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999

      11:52:59,399 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TestFNEW.ear in deployment directory. To trigger deployment create a file called TestFNEW.ear.dodeploy

      11:52:59,400 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TestApp.ear in deployment directory. To trigger deployment create a file called TestApp.ear.dodeploy

      11:52:59,460 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      11:52:59,515 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "TestApp.ear"

      11:52:59,516 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TestFNEW.ear"

      11:53:02,402 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jaxb-api.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:02,403 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jaxb-impl.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:02,405 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jsr173_1.0_api.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:02,406 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry activation.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:02,441 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TestAppWEB.war"

      11:53:02,443 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TestAppEJB.jar"

      11:53:03,743 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-api.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:03,744 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-impl.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:03,744 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jsr173_1.0_api.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:03,745 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/D:/J2EE SFT/jboss-as-7.1.1.Final/standalone/deployments/TestApp.ear/com.sun.tools.xjc_2.2.0.jar"  does not point to a valid jar for a Class-Path reference.

      11:53:03,794 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for TestAppEJB

      11:53:04,364 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011402: Starting Persistence Unit Service 'TestApp.ear/TestAppEJB.jar#TestAppEJB'

      11:53:04,450 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."TestApp.ear"."TestAppWEB.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."TestApp.ear"."TestAppWEB.war".INSTALL: Failed to process phase INSTALL of subdeployment "TestAppWEB.war" of deployment "TestApp.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        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]

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

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011231: More than one Application class found in deployment class org.eclipse.persistence.jpa.rs.service.JPARSApplication and class org.eclipse.persistence.jpa.rs.service.JPARSApplication

        at org.jboss.as.jaxrs.deployment.ResteasyDeploymentData.merge(ResteasyDeploymentData.java:38)

        at org.jboss.as.jaxrs.deployment.JaxrsIntegrationProcessor.deploy(JaxrsIntegrationProcessor.java:105)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        ... 5 more

       

       

      11:53:04,500 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-5) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      11:53:04,505 INFO  [org.hibernate.Version] (MSC service thread 1-5) HHH000412: Hibernate Core {4.0.1.Final}

      11:53:04,507 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000206: hibernate.properties not found

      11:53:04,509 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000021: Bytecode provider name : javassist

      11:53:04,524 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH000204: Processing PersistenceUnitInfo [

        name: TestAppEJB

        ...]

      11:53:04,538 INFO  [org.hibernate.cfg.Configuration] (MSC service thread 1-5) HHH000043: Configuring from resource: META-INF/hibernate.cfg.xml

      11:53:04,539 INFO  [org.hibernate.cfg.Configuration] (MSC service thread 1-5) HHH000040: Configuration resource: META-INF/hibernate.cfg.xml

      11:53:04,559 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."TestApp.ear/TestAppEJB.jar#TestAppEJB": org.jboss.msc.service.StartException in service jboss.persistenceunit."TestApp.ear/TestAppEJB.jar#TestAppEJB": Failed to start service

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

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

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

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

      Caused by: org.hibernate.HibernateException: Could not parse configuration: META-INF/hibernate.cfg.xml

        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2010)

        at org.hibernate.cfg.Configuration.configure(Configuration.java:1922)

        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1042)

        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)

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

        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]

        ... 3 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)

        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2002)

        ... 11 more

       

       

      11:53:04,772 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "TestFNEW.ear" was rolled back with no failure message

      11:53:04,775 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "TestApp.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"TestApp.ear\".\"TestAppWEB.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"TestApp.ear\".\"TestAppWEB.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"TestAppWEB.war\" of deployment \"TestApp.ear\"","jboss.persistenceunit.\"TestApp.ear/TestAppEJB.jar#TestAppEJB\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"TestApp.ear/TestAppEJB.jar#TestAppEJB\": Failed to start service"}}

      11:53:04,792 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment TestFNEW.ear in 19ms

      11:53:04,801 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment TestAppWEB.war in 24ms

      11:53:04,801 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment TestAppEJB.jar in 24ms

      11:53:04,835 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment TestApp.ear in 60ms

      11:53:04,837 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."TestApp.ear"."TestAppWEB.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."TestApp.ear"."TestAppWEB.war".INSTALL: Failed to process phase INSTALL of subdeployment "TestAppWEB.war" of deployment "TestApp.ear"

            service jboss.persistenceunit."TestApp.ear/TestAppEJB.jar#TestAppEJB": org.jboss.msc.service.StartException in service jboss.persistenceunit."TestApp.ear/TestAppEJB.jar#TestAppEJB": Failed to start service

       

       

      11:53:04,841 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"TestApp.ear\".\"TestAppWEB.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"TestApp.ear\".\"TestAppWEB.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"TestAppWEB.war\" of deployment \"TestApp.ear\"","jboss.persistenceunit.\"TestApp.ear/TestAppEJB.jar#TestAppEJB\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"TestApp.ear/TestAppEJB.jar#TestAppEJB\": Failed to start service"}}}}

      11:53:04,846 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back