1 Reply Latest reply on Apr 7, 2014 7:22 AM by RAHUL PARIKH

    Web services exception

    Sergiu Pienar Apprentice

      Using EAP 6.2

       

      I am trying to deploy a web-service and getting the following exception on startup:

      5:11:25,416 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-3) JBWS024061: Adding service endpoint metadata: id=CACUserBean
      address=http://Se-PC:8080/all-ejbs/UserService/UserService
      implementor=com.biz.business.user.CACUserBean
      serviceName={http://user.business.com/}UserService
      portName={http://user.business.com/}UserServicePort
      annotationWsdlLocation=null
      wsdlLocationOverride=null
      mtomEnabled=false
      5:11:25,713 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-3) Creating Service {http://user.business.com/}UserService from class com.biz.business.user.CACUserBean
      5:11:26,204 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."all-5.4.1.4.ear"."all-ejbs.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."all-5.4.1.4.ear"."all-ejbs.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "all-ejbs.jar" of deployment "all-5.4.1.4.ear"
             at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
             at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
             at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
             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]
      aused by: javax.xml.ws.WebServiceException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.wsdl11.WSDLManagerImpl.
             at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
             at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
             at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
             at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
             at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
             at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:129)
             at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:67)
             at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
             at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
             ... 5 more
      aused by: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.wsdl11.WSDLManagerImpl.
             at org.apache.cxf.bus.extension.Extension.load(Extension.java:249)
             at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:211)
             at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:320)
             at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108)
             at org.apache.cxf.binding.soap.SoapBindingFactory.createSoapBinding(SoapBindingFactory.java:219)
             at org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:207)
             at org.apache.cxf.binding.AbstractBaseBindingFactory.createBindingInfo(AbstractBaseBindingFactory.java:83)
             at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:341)
             at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:182)
             at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:259)
             at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:144)
             at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
             at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
             at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
             at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
             ... 13 more
      aused by: java.lang.ClassCastException: class org.xmlsoap.schemas.wsdl.http.AddressType
             at java.lang.Class.asSubclass(Class.java:3018) [rt.jar:1.6.0_25-ea]
             at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:91)
             at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialXmlExtensions(WSDLManagerImpl.java:304)
             at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:273)
             at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:126)
             at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:94)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_25-ea]
             at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_25-ea]
             at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_25-ea]
             at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_25-ea]
             at org.apache.cxf.bus.extension.Extension.load(Extension.java:240)
             ... 27 more
      
      
      5:11:26,895 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 32) JBAS018559: Deployed "all-5.4.1.4.ear" (runtime-name : "all-5.4.1.4.ear")
      5:11:26,908 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
      BAS014775:    New missing/unsatisfied dependencies:
      

       

      The service is described as below:

       

      @Stateless
      @LocalBinding(jndiBinding = "java:global/all-5.4.1.4/sixD-all-ejbs/CACUserBean!com.biz.business.user.CACUserLocal")
      @RemoteBinding(jndiBinding = "ejb:sixD-all-5.4.1.4/sixD-all-ejbs/CACUserBean!com.biz.business.user.CACUserRemote")
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      @Local({ CACUserLocal.class })
      @Remote({ CACUserRemote.class })
      @WebService(name = "UserService", serviceName = "UserService")
      @WebContext(contextRoot = "/service", urlPattern = "/UserService", secureWSDLAccess = false, authMethod = "BASIC", transportGuarantee = "NONE")
      @SecurityDomain(value = "myRealm")
      @EndpointConfig(configName = "Standard WSSecurity Endpoint")
      

       

       

      The same web-service works fine when deployed in JBoss 7.1.1 Final.

        • 1. Re: Web services exception
          RAHUL PARIKH Newbie

          I am facing the same issue with JBoss EAP 6.2.

           

          I am getting error for PolicyType instead for AddressType:

           

          Caused by: java.lang.ClassCastException: class org.apache.cxf.binding.corba.wsdl.PolicyType

            at java.lang.Class.asSubclass(Class.java:3018) [rt.jar:1.6.0_26]

            at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:91)

            at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialXmlExtensions(WSDLManagerImpl.java:304)

            at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:274)

            at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:126)

            at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:94)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_26]

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_26]

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_26]

            at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_26]

            at org.apache.cxf.bus.extension.Extension.load(Extension.java:240)

           

           

          Does any one has found any Solution?