1 Reply Latest reply on Feb 18, 2012 11:43 PM by jaikiran pai

    Unable to deploy Seam 2.2 project on AS 7.1 Thunder

    Phanor Coll Newbie

      I've created a Seam project using Jboss Developer Studio 5, im trying to deploy it on AS 7.1 "thunder". but when I do so I get this error:

       

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      19:24:53,484 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "gwinc-ds.xml"

      19:24:53,484 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "gwinc.war"

      19:24:54,094 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."gwinc-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."gwinc-ds.xml".PARSE: Failed to process phase PARSE of deployment "gwinc-ds.xml"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource

              at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:85)

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

              ... 5 more

      Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource

              at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:183)

              at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:119)

              at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:82)

              at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:80)

              ... 6 more

       

      19:24:54,359 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC00001: Failed to start service jboss.deployment.unit."gwinc.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."gwinc.war".PARSE: Failed to process phase PARSE of deployment "gwinc.war"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/home/desarrollo/jboss_prod/jboss-as-7.1.0.Final/standalone/deployments/gwinc.war/WEB-INF/jboss-web.xml" at [5,5]

              at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:77)

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

              ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[5,5]

      Message: Unexpected element 'class-loading' encountered

              at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:108)

              at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:211)

              at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:69)

              ... 6 more

       

      19:24:54,366 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "gwinc.war" was rolled back with no failure message

      19:24:54,373 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "gwinc-ds.xml" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"gwinc-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"gwinc-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"gwinc-ds.xml\""}}

      19:24:54,385 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment gwinc-ds.xml in 13ms

      19:24:54,402 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment gwinc.war in 36ms

      19:24:54,403 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."gwinc.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."gwinc.war".PARSE: Failed to process phase PARSE of deployment "gwinc.war"

            service jboss.deployment.unit."gwinc-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."gwinc-ds.xml".PARSE: Failed to process phase PARSE of deployment "gwinc-ds.xml"

       

      19:24:54,405 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.unit.\"gwinc-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"gwinc-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"gwinc-ds.xml\""}}}}

      19:24:54,407 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

       

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      this is my jboss-web.xml

       

      <!DOCTYPE jboss-web PUBLIC

          "-//JBoss//DTD Web Application 4.2//EN"

          "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">

      <jboss-web> 

          <class-loading java2ClassLoadingCompliance="false">

              <loader-repository>

                  seam.jboss.org:loader=gwinc

                  <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

              </loader-repository>

          </class-loading>

      </jboss-web>

       

       

      Need some help.