2 Replies Latest reply on Aug 21, 2018 7:03 AM by fvs_2926

    JBossWS-Native 4.0.2.GA on JBoss EAP 7

    fvs_2926

      Hi, Currently I am working on service migration for JBoss upgrade (From JBoss 5 to JBoss 7) with code change as little as possible

       

      A Project Structure

      A.ear

      -- A-ejb.jar

      -- A-soap.jar


      I have problem with the WebService migration.  From JBoss 5 it work fine with JBossWS-Native for Webservice to publish the WSDL
      and when I deploy at JBoss 7 it uses apache.cxf and it cause error on some WSDL at A-soap.jar

       

      So I try to use JBossWS-Native 4.0.2.GA in JBoss 7  EAP as in the JBossWS - Supported Target Containers  and install JBossWS-Native 4.0.2.GA  successfully.

      After new deployment, It shows error on missing module with

       

      server.log

      ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)

              at org.jboss.as.server.ServerService.boot(ServerService.java:387)

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:370)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module org.jboss.as.webservices

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154)

              at org.jboss.as.server.parsing.StandaloneXml$DefaultExtensionHandler.parseExtensions(StandaloneXml.java:131)

              at org.jboss.as.server.parsing.StandaloneXml_5.readServerElement(StandaloneXml_5.java:219)

              at org.jboss.as.server.parsing.StandaloneXml_5.readElement(StandaloneXml_5.java:142)

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107)

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)

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

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

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:126)

              ... 3 more

      Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module

              at java.util.concurrent.FutureTask.report(FutureTask.java:122)

              at java.util.concurrent.FutureTask.get(FutureTask.java:192)

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146)

              ... 11 more

      Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:195)

              at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68)

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126)

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.common-core

              at org.jboss.modules.Module.addPaths(Module.java:1217)

              at org.jboss.modules.Module.link(Module.java:1573)

              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1601)

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:287)

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:271)

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:177)

              ... 8 more

       

      So I try comment the <extension module="org.jboss.as.webservices"/> in standalone.xml

      and add this below to jboss-deployment-structure.xml

      <dependencies>

      <module name="org.jboss.as.webservices" export="true">

      </dependencies>

       

      but it seems like it didn't run the webservice at all. (Before install JBossWS-Native the webservice can run but got some error)

       

      Could anyone please advice? Thanks in advance

        • 1. Re: JBossWS-Native 4.0.2.GA on JBoss EAP 7
          ctomc

          Jboss EAP 7 is not JBoss AS 7.

          EAP 7.0 is closer to WildFly 10.1.

           

          Probably better to use bundled WS impl and try to resolve the problem instead of installing really old version of stack.

           

          So, can you post more in detail what kind of issues you face when deploying on vanilla EAP 7, so we can help you fix it.

          • 2. Re: JBossWS-Native 4.0.2.GA on JBoss EAP 7
            fvs_2926

            Yeah,  today I just noticed about EAP and AS too.  The problem I face is

             

            I am currently working on JBoss migration from EAP 5.0.0 to EAP 7.1.0 My project structure is

            Project structure
            AAA.ear
            -- AAA-ejb.jar
            -- AAA-soap.jar
              
            -- /**-mapping.xml
            -- lib

            For now when I try to deploy AAA.ear with only AAA-ejb.jar dependency it doesn’t get any error.

            But with both AAA-ejb.jar and AAA-soap.jar there is error log with the XML binding

             

            Error log
            2018-08-20 11:53:55,565 INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://www.abcd.co.com/wsdl/AImplementation/subscription/subscription-soap11http/v1}Subscription-SOAP11HTTP-v1 from WSDL: META-INF/wsdl/Subscription-SOAP11HTTP.wsdl
            2018-08-20 11:53:55,672 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."AAA.ear"."AAA-soap.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."AAA.ear"."AAA-soap.jar".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "AAA-soap.jar" of deployment "AAA.ear"
              at org
            .jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
              at org
            .jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
              at org
            .jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
              at java
            .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java
            .util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java
            .lang.Thread.run(Thread.java:745)
            Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
              at org
            .apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375)
              at org
            .jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:79)
              at org
            .apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
              at org
            .apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543)
              at org
            .jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:235)
              at org
            .jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
              at org
            .jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
              at org
            .jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
              at org
            .jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
              
            ... 5 more
            Caused by: org.apache.cxf.service.factory.ServiceConstructionException
              at org
            .apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:329)
              at org
            .apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
              at org
            .apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:426)
              at org
            .apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:528)
              at org
            .apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:263)
              at org
            .apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
              at org
            .apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103)
              at org
            .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
              at org
            .apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
              at org
            .apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
              at org
            .apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
              
            ... 13 more
            Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 12 counts of IllegalAnnotationExceptions
            Two classes have the same XML type name "{http://www.abcd.co.com/schema/bus/money/money/v1}InvestmentTypeType". Use @XmlType.name and @XmlType.namespace to assign different names to them.
              
            this problem is related to the following location:
              at com
            .co.abcd.subscriptionv1.schema.bus.money.money.InvestmentTypeType
              at
            protected com.co.abcd.subscriptionv1.schema.bus.money.money.InvestmentTypeType com.co.abcd.subscriptionv1.schema.bus.subscription.subscription.SubscriptionByInvestmentTypeType.investmentType
              at com
            .co.abcd.subscriptionv1.schema.bus.subscription.subscription.SubscriptionByInvestmentTypeType
              at
            public com.co.abcd.subscriptionv1.schema.bus.subscription.subscription.SubscriptionByInvestmentTypeType com.co.abcd.subscriptionv1.schema.bus.subscription.subscription.ObjectFactory.createSubscriptionByInvestmentTypeType()
              at com
            .co.abcd.subscriptionv1.schema.bus.subscription.subscription.ObjectFactory
              
            this problem is related to the following location:
              at com
            .co.abcd.schema.bus.money.money.v1.InvestmentTypeType
              at
            protected com.co.abcd.schema.bus.money.money.v1.InvestmentTypeType com.co.abcd.schema.bus.account.account.v1.ValuationByMoneyType.investmentType
              at com
            .co.abcd.schema.bus.account.account.v1.ValuationByMoneyType
              at
            protected java.util.List com.co.abcd.schema.bus.account.account.v1.ValuationByMoneyListType.valuationByMoney
              at com
            .co.abcd.schema.bus.account.account.v1.ValuationByMoneyListType
              at
            protected com.co.abcd.schema.bus.account.account.v1.ValuationByMoneyListType com.co.abcd.schema.bus.account.account.v1.ProductHoldingInstanceType.valuationByMoneyList
              at com
            .co.abcd.schema.bus.account.account.v1.ProductHoldingInstanceType
              at
            protected java.util.List com.co.abcd.schema.bus.account.account.v1.ProductHoldingInstanceListType.productHoldingInstance
              at com
            .co.abcd.schema.bus.account.account.v1.ProductHoldingInstanceListType
              at
            public com.co.abcd.schema.bus.account.account.v1.ProductHoldingInstanceListType com.co.abcd.schema.bus.account.account.v1.ObjectFactory.createProductHoldingInstanceListType()
              at com
            .co.abcd.schema.bus.account.account.v1.ObjectFactory
            .
            .
            .

            My currently jboss-deployment-structure.xml in AAA.ear is

            <jboss-deployment-structure> 
            <ear-subdeployments-isolated>false</ear-subdeployments-isolated>
            <deployment>
            <dependencies>
                 <module name="org.hibernate" export="true"/>
                  <module name="org.jboss.as.system-jmx" export="true"/>
                   <module name="org.dom4j" export="true"/>
                  <module name="deployment.AAA.ear.AAA-ejb.jar" export="true"/>
                 <module name="deployment.AAA.ear.AAA-soap.jar" export="true"/>
            </dependencies>
            </deployment>
            <sub-deployment name="AAA-ejb.jar"> </sub-deployment>
            <sub-deployment name="AAA-soap.jar">
            <dependencies>
                 <module name="deployment.AAA.ear.AAA-ejb.jar" />
            </dependencies>
            </jboss-deployment-structure>

            And I recognized that my project can deploy and run successfullly in Jboss 5 with JBoss Web Services Native 3.1.2 SP3. Does this error occured because of the JBoss Web services is changed to JBossWS 5.1.9 ? If yes, what should I do.

            Thanks in advance