3 Replies Latest reply on Jan 23, 2013 9:32 AM by techsjs2012

    CAS WAR file works on EAP6 but not on AS7...

    techsjs2012

      I am trying to use CAS on AS7. Its working on Jboss EAP6 so I dont know why it will not work on AS7... Below is my log.

       

       

      08:49:04,933 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "cas.war"

      08:49:08,213 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."cas.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."cas.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "cas.war"

          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(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from /home/jsmith/jboss-as-7.1.1/standalone/tmp/vfs/tempfc1a3ec9b842c3a8/content-53909802f93b0e18/WEB-INF/jboss-deployment-structure.xml

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          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

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

      Message: Unexpected element '{urn:jboss:deployment-structure:1.2}jboss-deployment-structure'

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)

          at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          ... 8 more

       

      08:49:08,224 INFO  [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS015870: Deploy of deployment "cas.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"cas.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"cas.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"cas.war\""}}

      08:49:08,232 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment cas.war in 6ms

      08:49:08,234 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 1) JBAS014774: Service status report

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

       

      08:49:11,951 INFO  [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011942: Stopping OSGi Framework

        • 1. Re: CAS WAR file works on EAP6 but not on AS7...
          ctomc

          you are using jboss-deployment-structure.xml 1.2 xsd schema which was added after 7.1.1.Final.

           

          but in most cases you can just change that xml file to use 1.1 xsd given that you dont use any new configuration 1.2. brings.

           

          you can also build 7.1.2/7.1.3/7.2 yourself if you want to use that schema.

           

           

          --

          tomaz

          • 2. Re: CAS WAR file works on EAP6 but not on AS7...
            techsjs2012

            can you please tell me in detail on how to change in please

            • 3. Re: CAS WAR file works on EAP6 but not on AS7...
              techsjs2012

              This is what I have in my jboss-deployment-structure.xml. If I change it to 1.1 will it work on EAP6 and Also AS7

               

               

              <?xml version="1.0"?>

              <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

                  <deployment>

                      <exclusions>

                          <module name="org.apache.log4j" />

                          <module name="org.slf4j" />

                      </exclusions>

                      <exclude-subsystems>

                          <subsystem name="jpa" />

                      </exclude-subsystems>

                  </deployment>

                 

              </jboss-deployment-structure>