6 Replies Latest reply on Oct 16, 2013 11:27 PM by xiaojie Ma

    wildfly beta1 can't deploy jboss-federation-server.ear ?

    xiaojie Ma Newbie

      Today,I try to configure the sso According to StartFedSSO , when I mv  jboss-federation-server.ear  to the deployment,and start the wildfly with standalone,some mistake like this:

       

      11:11:08,424 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."jboss-federation-server.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-federation-server.ear".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "jboss-federation-server.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Beta1.jar:8.0.0.Beta1]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]

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

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

        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011059: Failed to parse "/content/jboss-federation-server.ear/META-INF/application.xml"

        at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleSpecMetadata(EarMetaDataParsingProcessor.java:105)

        at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.deploy(EarMetaDataParsingProcessor.java:66)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Beta1.jar:8.0.0.Beta1]

        ... 5 more

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

      Message: Unexpected element 'service' encountered

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

        at org.jboss.metadata.parser.spec.EarModuleMetaDataParser.parse(EarModuleMetaDataParser.java:86)

        at org.jboss.metadata.parser.spec.EarMetaDataParser.handleElement(EarMetaDataParser.java:167)

        at org.jboss.metadata.parser.spec.EarMetaDataParser.parse(EarMetaDataParser.java:135)

        at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleSpecMetadata(EarMetaDataParsingProcessor.java:102)

        ... 7 more


      and jboss-federation-server.ea.failed content is :

      "{\"JBAS014671: Failed services\" => {\"jboss.deployment.unit.\\\"jboss-federation-server.ear\\\".STRUCTURE\" => \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"jboss-federation-server.ear\\\".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment \\\"jboss-federation-server.ear\\\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011059: Failed to parse \\\"/content/jboss-federation-server.ear/META-INF/application.xml\\\"

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

      Message: Unexpected element 'service' encountered\"}}"

      I'm particularly interested in the part:

       

      Caused by: java.lang.ClassCastException: org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData cannot be cast to org.jboss.metadata.ear.spec.EarMetaData

       

      I took a look at

      EARStructure.java and took a somewhat wild guess and changed the name of application.xml to jboss-app.xml. No luck. Here's application.xml btw:

       

       

        <?xml version="1.0" encoding="UTF-8"?>

        <jboss-app>

        <module>

        <service>jboss-federation-server.sar</service>

        </module>

        <module>

        <web>

        <web-uri>jboss-federation-server.war</web-uri>

        </web>

        </module>

        <module>

        <java>jboss-federation-server.jar</java>

        </module>

        <module>

        <java>jboss-saml.jar</java>

        </module>

         <module>

         <java>jboss-security-common.jar</java>

        </module>

         </jboss-app>

       

       

      Any hints would be appreciated. thanks. -e.

      ~                                                     

       

      @Anil Saldhana,Sohil Shah