2 Replies Latest reply on Jun 15, 2012 9:36 AM by Stephen Coy

    Migrating web services to JBoss 7

    Sergiu Pienar Apprentice

      Hi,

       

      I want to migrate some webservices from JBoss 5.1.0 to JBoss 7.1.1. The services were written using Axis and under JBoss 7.1.1 I get errors like these :

       

      10:55:34,098 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."all.ear"."all-ejbs.jar"

              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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25-ea]

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

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25-ea]

      Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException

              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)

              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)

              at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113)

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66)

              at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

              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: org.apache.cxf.service.factory.ServiceConstructionException

              at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:293)

              at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)

              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:444)

              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)

              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:507)

              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)

              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)

              at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)

              at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)

              at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:203)

              at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)

              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)

              ... 13 more

      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 7 counts of IllegalAnnotationExceptions

      com.container.Container$BinaryContainment is a non-static inner class, and JAXB can't handle those.

       

      What are your suggestions (Considering I don't want to make very many code changes)

       

      Thanks !