0 Replies Latest reply on Sep 1, 2014 1:17 AM by kranti kumar

    I am able to deploy the war file build on tomcat 7.0 server sucessfully but same war file when i am trying to deploy in the Jboss 7.1.1 or Jboss EAP 6.0 i am getting below error

    kranti kumar Newbie

      at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)

          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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

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

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

       

      11:36:53,855 WARN  [org.jboss.as.ee] (MSC service thread 1-2) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation

          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)

          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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

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

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

       

      11:36:55,448 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

      11:36:55,460 WARN  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016012: Deployment deployment "TestSpringAndHibernate.war" contains CDI annotations but beans.xml was not found.

      11:36:55,972 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 49) JBAS011402: Starting Persistence Unit Service 'TestSpringAndHibernate.war#org.jbpm.task'

      11:36:55,972 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 48) JBAS011402: Starting Persistence Unit Service 'TestSpringAndHibernate.war#org.jbpm.runtime'

      11:36:57,553 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 49) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      11:36:57,613 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 49) HHH000412: Hibernate Core {4.2.0.CR1}

      11:36:57,613 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 49) HHH000206: hibernate.properties not found

      11:36:57,613 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 49) HHH000021: Bytecode provider name : javassist

      11:36:57,707 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 48) HHH000204: Processing PersistenceUnitInfo [

          name: org.jbpm.runtime

          ...]

      11:36:57,707 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 49) HHH000204: Processing PersistenceUnitInfo [

          name: org.jbpm.task

          ...]

      11:36:58,316 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC00001: Failed to start service jboss.persistenceunit."TestSpringAndHibernate.war#org.jbpm.runtime": org.jboss.msc.service.StartException in serv    q1ice jboss.persistenceunit."TestSpringAndHibernate.war#org.jbpm.runtime": org.hibernate.InvalidMappingException: Unable to read XML

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

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

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

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

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

      Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:109)

          at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:735)

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

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

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          ... 4 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.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:78)

          ... 10 more

       

      11:36:58,316 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 49) MSC00001: Failed to start service jboss.persistenceunit."TestSpringAndHibernate.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."TestSpringAndHibernate.war#org.jbpm.task": org.hibernate.InvalidMappingException: Unable to read XML

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

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

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

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

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

      Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:109)

          at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:735)

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

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

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          ... 4 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.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:78)

          ... 10 more

       

      11:36:58,598 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "TestSpringAndHibernate.war" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {

          "jboss.persistenceunit.\"TestSpringAndHibernate.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"TestSpringAndHibernate.war#org.jbpm.task\": org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          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",

          "jboss.persistenceunit.\"TestSpringAndHibernate.war#org.jbpm.runtime\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"TestSpringAndHibernate.war#org.jbpm.runtime\": org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          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"

      }}

      11:36:59,783 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment TestSpringAndHibernate.war (runtime-name: TestSpringAndHibernate.war) in 1178ms

       

       

      Internal Server Error

      {

          "outcome" => "failed",

          "failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"SpringAndHibernateTest.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"SpringAndHibernateTest.war\".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment \"SpringAndHibernateTest.war\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018740: Failed to mount deployment content

          Caused by: java.io.IOException: Could not create directory for original name 'content' after 10 attempts"}},

          "rolled-back" => true

       

      JBAS018733: Failed to process phase STRUCTURE of deployment \"SpringAndHibernateTest.war\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018740: Failed to mount deployment content

       

      JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest

          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]