6 Replies Latest reply on Feb 14, 2017 10:46 AM by Hugo Silva

    SAR file deployment? - Wildfly 10

    Hugo Silva Newbie

      Hello,

       

      I'm migrating from jboss 4.2.3GA to Wildfly 10, and in deployment I get this error. Can you please give me some advices? Thanks in advance.

       

      Here is jboss-service.xml:

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

      <server>

       

       

        <mbean code="com.smartreport.engine.mbeans.resources.SmartReportResources"

        name="SMRENGINE:service=SmartReportResources">

        <attribute name="EngineMaxParsedEventsBeforePersist">10000</attribute>

        <attribute name="SmrEngineIP">127.0.0.1</attribute>

        <attribute name="SmrEngineNamingPort">${xv_rmi_port:1099}</attribute>

        <attribute name="SmrFireAlarmReceiverQueueName">queue/SmrFireAlarmReceiverQueue</attribute>

        </mbean>

       

       

        <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"

        name="jboss.jmx:type=adaptor,name=SmartReportEngineResources,protocol=jrmp,service=proxyFactory">

        <depends optional-attribute-name="InvokerName">jboss:service=invoker,type=jrmp</depends>

        <depends optional-attribute-name="TargetName">SMRENGINE:service=SmartReportResources</depends>

        <attribute name="JndiName">SmartReportResources</attribute>

        <attribute name="InvokeTargetMethod">true</attribute>

        <attribute name="ExportedInterfaces">com.smartreport.engine.mbeans.resources.SmartReportResourcesMBean</attribute>

        <attribute name="ClientInterceptors">

        <interceptors>

        <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>

        <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>

        <interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>

        <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>

        </interceptors>

        </attribute>

        </mbean>

      </server>

       

       

      And the error is:

       

      18:57:14,004 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."APP_XVIEWER.ear"."smrengine-resources.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_XVIEWER.ear"."smrengine-resources.sar".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment "smrengine-resources.sar" of deployment "APP_XVIEWER.ear"

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

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSAR0006: Failed to parse service xml ["/C:/EAI/wildfly-10.1.0.Final/standalone/deployments/APP_XVIEWER.ear/smrengine-resources.sar/META-INF/jboss-service.xml"]

        at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:103)

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

        ... 5 more

      Caused by: java.lang.IllegalStateException: Not a textual event (START_ELEMENT)

        at com.ctc.wstx.sr.BasicStreamReader.throwNotTextual(BasicStreamReader.java:5503)

        at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:857)

        at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getText(XMLExtendedStreamReaderImpl.java:275)

        at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.unexpectedContent(JBossServiceXmlDescriptorParser.java:638)

        at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseAttribute(JBossServiceXmlDescriptorParser.java:386)

        at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseMBean(JBossServiceXmlDescriptorParser.java:268)

        at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:192)

        at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:48)

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

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

        at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:96)

        ... 6 more

        • 1. Re: SAR file deployment? - Wildfly 10
          Tomaz Cerar Master

          my guess would be that

          this is wrong

            <attribute name="ClientInterceptors">

            <interceptors>

            <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>

            <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>

            <interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>

            <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>

            </interceptors>

            </attribute>

          Try removing / commenting out this whole attribute and see if it helps

           

          WildFly supports only limited set of what jboss-service.xml used to support in AS4.

           

          also this interceptors are not available anymore

          • 2. Re: SAR file deployment? - Wildfly 10
            Hugo Silva Newbie

            I'm still getting the same error after commenting:

              <attribute name="ClientInterceptors">

              <interceptors>

              <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>

              <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>

              <interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>

              <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>

              </interceptors>

              </attribute>

            • 3. Re: SAR file deployment? - Wildfly 10
              Hugo Silva Newbie

              Hello,

               

              I'm also getting this error:

              Thanks in advance.

               

              11:43:32,757 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."APP_XVIEWER.ear"."XV_ALARM_ENGINE.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_XVIEWER.ear"."XV_ALARM_ENGINE.jar".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment "XV_ALARM_ENGINE.jar" of deployment "APP_XVIEWER.ear"

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

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

              Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found

                at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:669)

                at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:274)

                at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageDrivenBeanMetaData(MessageDrivenComponentDescriptionFactory.java:243)

                at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processBeanMetaData(MessageDrivenComponentDescriptionFactory.java:88)

                at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processBeanMetaData(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:64)

                at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.processDeploymentDescriptor(AbstractDeploymentUnitProcessor.java:138)

                at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:79)

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

                ... 5 more

              • 4. Re: SAR file deployment? - Wildfly 10
                Tomaz Cerar Master

                start server with -c standalone-full.xml

                • 5. Re: SAR file deployment? - Wildfly 10
                  Hugo Silva Newbie

                  Hello,

                   

                  Still getting the same error.

                  Can you please help? Thanks in advance.

                  • 6. Re: SAR file deployment? - Wildfly 10
                    Hugo Silva Newbie

                    Hello,

                     

                    The other error (Service service jboss.ejb.default-resource-adapter-name-service not found) disappeared after starting server with standalone-full.xml but I'm getting the initial error: Thanks in advance.

                     

                    15:25:22,993 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."APP_XVIEWER.ear"."smrengine-resources.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP_XVIEWER.ear"."smrengine-resources.sar".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment "smrengine-resources.sar" of deployment "APP_XVIEWER.ear"

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

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                      at java.lang.Thread.run(Unknown Source)

                    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSAR0006: Failed to parse service xml ["/C:/EAI/wildfly-10.1.0.Final/standalone/deployments/APP_XVIEWER.ear/smrengine-resources.sar/META-INF/jboss-service.xml"]

                      at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:103)

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

                      ... 5 more

                    Caused by: java.lang.IllegalStateException: Not a textual event (START_ELEMENT)

                      at com.ctc.wstx.sr.BasicStreamReader.throwNotTextual(BasicStreamReader.java:5503)

                      at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:857)

                      at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getText(XMLExtendedStreamReaderImpl.java:275)

                      at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.unexpectedContent(JBossServiceXmlDescriptorParser.java:638)

                      at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseAttribute(JBossServiceXmlDescriptorParser.java:386)

                      at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseMBean(JBossServiceXmlDescriptorParser.java:268)

                      at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:192)

                      at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:48)

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

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

                      at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:96)

                      ... 6 more