7 Replies Latest reply on May 3, 2008 10:15 AM by Andrea Palmieri

    Exception while deploying the webservice using jax-ws

    kumar reddy Newbie

      Hi All,

      I am migrating the web service from weblogic to JBoss 4.2.1

      I have WDSL file so i am using TOP-DOWN approach which was mentined in JAX-WS userguide.I have generated schema related classes using jaxb 2.o and modified the code accordingly and used WSCONSUME for generating client side artifacts and prepared the war file and tried to deploy the web service.

      Following is the exception that i am getting while deploying the webservice

      java.lang.ClassCastException: com.covad.xsd.smo.vendororder.ProcessVendorOrder$J
      axbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendororder_VendorO
      rder
      at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.inst
      anciate(OptimizedAccessorFactory.java:151)
      at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(
      OptimizedAccessorFactory.java:96)
      at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.o
      ptimize(Accessor.java:308)
      at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.
      (SingleElementNodeProperty.java:53)
      at sun.reflect.GeneratedConstructorAccessor42.newInstance(Unknown Source
      )
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyF
      actory.java:88)
      at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImp
      l.java:135)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextIm
      pl.java:404)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.ja
      va:246)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
      76)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
      55)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
      at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
      at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java
      :67)
      at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java
      :54)
      at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(Paramete
      rMetaData.java:470)
      at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(Operatio
      nMetaData.java:466)
      at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations
      (EndpointMetaData.java:516)
      at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(Endpoi
      ntMetaData.java:502)
      at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointM
      etaData.java:490)
      at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMet
      aData.java:429)
      at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMet
      aData.java:192)
      at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:1
      12)
      at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(
      ServiceEndpointManager.java:646)
      at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpoin
      tDeployer.java:140)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndp
      oint(DeployerInterceptor.java:144)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerIn
      terceptor.java:96)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      ptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:610)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:225)
      15:58:00,843 ERROR [MainDeployer] Could not start deployment: file:/E:/jboss-4.2
      .1.GA/server/default/deploy/mcafeeAdapter.war
      org.jboss.deployment.DeploymentException: Cannot start service endpoint; - neste
      d throwable: (java.lang.ClassCastException: com.covad.xsd.smo.vendororder.Proces
      sVendorOrder$JaxbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendo
      rorder_VendorOrder)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException
      (DeploymentException.java:53)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerIn
      terceptor.java:101)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      ptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:610)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.ClassCastException: com.covad.xsd.smo.vendororder.ProcessVe
      ndorOrder$JaxbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendoror
      der_VendorOrder
      at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.inst
      anciate(OptimizedAccessorFactory.java:151)
      at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(
      OptimizedAccessorFactory.java:96)
      at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.o
      ptimize(Accessor.java:308)
      at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.
      (SingleElementNodeProperty.java:53)
      at sun.reflect.GeneratedConstructorAccessor42.newInstance(Unknown Source
      )
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyF
      actory.java:88)
      at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImp
      l.java:135)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextIm
      pl.java:404)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.ja
      va:246)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
      76)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
      55)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
      at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
      at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java


      Please help me how to overcome this exception

      Thanks in Advance.

        • 1. Re: Exception while deploying the webservice using jax-ws
          kumar reddy Newbie

          Sorry
          i forgot to mention this the interface created by WSCONSUME

          package com.covad.xsd.smo.vendororder;

          import javax.jws.WebMethod;
          import javax.jws.WebParam;
          import javax.jws.WebResult;
          import javax.jws.WebService;
          import javax.xml.ws.RequestWrapper;
          import javax.xml.ws.ResponseWrapper;


          /**
          * JBossWS Generated Source
          *
          * Generation Date: Tue Oct 23 09:29:51 IST 2007
          *
          * This generated source code represents a derivative work of the input to
          * the generator that produced it. Consult the input for the copyright and
          * terms of use that apply to this source code.
          *
          * JAX-WS Version: 2.0
          *
          */
          @WebService(name = "VendorOrderPort", targetNamespace = "http://smo.xsd.covad.com/vendororder")
          public interface VendorOrderPort {


          /**
          *
          * @param vendorOrder
          * @return
          * returns com.covad.xsd.smo.vendororder.VendorOrder
          * @throws VendorOrderException_Exception
          */
          @WebMethod
          @WebResult(targetNamespace = "http://smo.xsd.covad.com/vendororder")
          @RequestWrapper(localName = "processVendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrder")
          @ResponseWrapper(localName = "processVendorOrderResponse", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrderResponse")
          public VendorOrder processVendorOrder(
          @WebParam(name = "vendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder")
          VendorOrder vendorOrder)
          throws VendorOrderException_Exception
          ;

          }


          Please help me.

          • 2. Re: Exception while deploying the webservice using jax-ws
            kumar reddy Newbie

            Hi All,

            I have resolved ClassCastException issue.

            Now i am getting this exception

            org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.annotation.AnnotationTypeMismatchException: Incorrectly
            typed data found for annotation element public abstract javax.xml.bind.annotati
            on.XmlAccessType javax.xml.bind.annotation.XmlAccessorType.value() (Found data o
            f type Ljavax/xml/bind/annotation/AccessType;.FIELD))
            at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException
            (DeploymentException.java:53)
            at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerI
            nterceptor.java:83)
            at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
            create(SubDeployerInterceptorSupport.java:180)
            at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
            ptor.java:91)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy46.create(Unknown Source)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)

            I have created Schema classes by using JAXB 2.0 and i have deployed on JBoss 4.2.1.

            Please any one suggest on this.

            Thanks in Advance.

            • 3. Re: Exception while deploying the webservice using jax-ws
              Alessio Soldano Master

              Could you please post the code where you're using the XmlAccessorType annotation?
              I mean, are you using this

              @XmlAccessorType(XmlAccessType.FIELD)

              or something different? (like an array of AccessType.FIELD)

              You might also start from the classes generated by wsconsume.

              • 4. Re: Exception while deploying the webservice using jax-ws
                kumar reddy Newbie

                Hi,

                This issue has been resolved by moving to Jbossws 2.0.1 GA.

                Now i am getting different exception

                java.lang.IllegalStateException: Cannot find endpoint meta data for: MacafeeAdapter
                at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM
                etaData(UnifiedMetaDataDeploymentAspect.java:117)
                at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi
                edMetaDataDeploymentAspect.java:86)
                at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
                (DeploymentAspectManagerImpl.java:115)
                at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
                loyerHook.java:97)
                at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
                erceptor.java:90)
                at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
                start(SubDeployerInterceptorSupport.java:188)
                at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
                ptor.java:95)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy45.start(Unknown Source)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy9.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                tScanner.java:421)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                canner.java:634)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                doScan(AbstractDeploymentScanner.java:263)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
                bstractDeploymentScanner.java:336)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
                upport.java:289)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
                eanSupport.java:245)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
                ler.java:978)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:417)
                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy4.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy5.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                at org.jboss.Main.boot(Main.java:200)
                at org.jboss.Main$1.run(Main.java:508)
                at java.lang.Thread.run(Thread.java:595)
                18:29:00,849 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                --- Incompletely deployed packages ---
                org.jboss.deployment.DeploymentInfo@f00a09d9 { url=file:/D:/jboss-4.2.1.GA/serve
                r/default/deploy/mcafeeAdapter.war }
                deployer: MBeanProxyExt[jboss.web:service=WebServer]
                status: Deployment FAILED reason: Cannot find endpoint meta data for: MacafeeA
                dapter
                state: FAILED
                watch: file:/D:/jboss-4.2.1.GA/server/default/deploy/mcafeeAdapter.war
                altDD: null
                lastDeployed: 1193230739941
                lastModified: 1193230739925
                mbeans:
                jboss.web:j2eeType=Servlet,name=default,WebModule=//localhost/mcafeeAdapter,
                J2EEApplication=none,J2EEServer=none (state not available)
                jboss.web:j2eeType=Servlet,name=MacafeeAdapter,WebModule=//localhost/mcafeeA
                dapter,J2EEApplication=none,J2EEServer=none (state not available)
                jboss.web:j2eeType=Servlet,name=jsp,WebModule=//localhost/mcafeeAdapter,J2EE
                Application=none,J2EEServer=none (state not available)


                This is my remote interface

                import javax.xml.ws.ResponseWrapper;

                import java.rmi.Remote;
                import java.rmi.RemoteException;


                /**
                * JBossWS Generated Source
                *
                * Generation Date: Tue Oct 23 09:29:51 IST 2007
                *
                * This generated source code represents a derivative work of the input to
                * the generator that produced it. Consult the input for the copyright and
                * terms of use that apply to this source code.
                *
                * JAX-WS Version: 2.0
                *
                */
                @WebService(name = "VendorOrderPort", targetNamespace = "http://smo.xsd.covad.com/vendororder")
                public interface VendorOrderPort extends Remote{


                /**
                *
                * @param vendorOrder
                * @return
                * returns com.covad.xsd.smo.vendororder.VendorOrder
                * @throws RemoteException
                */
                @WebMethod
                @WebResult(targetNamespace = "http://smo.xsd.covad.com/vendororder")
                @RequestWrapper(localName = "processVendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrder")
                @ResponseWrapper(localName = "processVendorOrderResponse", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrderResponse")
                public VendorOrder processVendorOrder(
                @WebParam(name = "vendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder")
                VendorOrder vendorOrder)
                throws RemoteException
                ;

                }


                This is Web service implementation class

                package com.covad.mcafee.adapter.webservice;



                import com.covad.mcafee.service.McAfeeProxy;

                import com.covad.xsd.smo.vendororder.VendorOrder;

                import org.apache.commons.logging.Log;

                import org.apache.commons.logging.LogFactory;

                import com.covad.xsd.smo.vendororder.VendorOrderPort;

                import javax.jws.WebService;
                import javax.jws.WebMethod;
                import javax.jws.WebParam;
                import javax.jws.WebResult;


                @WebService(endpointInterface="com.covad.xsd.smo.vendororder.VendorOrderPort")
                public class macafeeAdapter implements VendorOrderPort {



                private static Log logger = LogFactory.getLog("com.covad.mcafee.adapter");


                @WebMethod(operationName = "ProcessVendorOrder")
                public VendorOrder processVendorOrder(VendorOrder vendorOrder) {



                // logger.info("Entering mcafeeadapter.processVendorOrder() with "+vendorOrder.xmlText());

                logger.info("Entering mcafeeadapter.processVendorOrder() with ");

                McAfeeProxy mcAfeeProxy = new McAfeeProxy();

                VendorOrder res = mcAfeeProxy.processVendorOrder(vendorOrder);

                logger.info("COMPLETE");

                return res;

                }

                }


                Please help me.

                Thanks in Advance.

                • 5. Re: Exception while deploying the webservice using jax-ws
                  kumar reddy Newbie

                  alessio.soldano wrote:

                  Could you please post the code where you're using the XmlAccessorType annotation?
                  I mean, are you using this
                  Code:

                  @XmlAccessorType(XmlAccessType.FIELD)


                  or something different? (like an array of AccessType.FIELD)

                  You might also start from the classes generated by wsconsume.


                  I have generated the classes from JAXB 2.0 . these classes are using this

                  @XmlAccessorType(XmlAccessType.FIELD)

                  and sample code for this
                  //
                  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3
                  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
                  // Any modifications to this file will be lost upon recompilation of the source schema.
                  // Generated on: 2007.10.22 at 10:28:58 AM IST
                  //
                  
                  
                  package com.covad.xsd.smo.vendororder;
                  
                  import java.util.ArrayList;
                  import java.util.List;
                  import javax.xml.bind.annotation.AccessType;
                  import javax.xml.bind.annotation.XmlAccessorType;
                  import javax.xml.bind.annotation.XmlElement;
                  import javax.xml.bind.annotation.XmlType;
                  import javax.xml.datatype.XMLGregorianCalendar;
                  import com.covad.xsd.smo.vendororder.Client;
                  import com.covad.xsd.smo.vendororder.LineItem;
                  import com.covad.xsd.smo.vendororder.VendorOrder;
                  
                  
                  /**
                   * <p>Java class for VendorOrder complex type.
                   *
                   * <p>The following schema fragment specifies the expected content contained within this class.
                   *
                   * <pre>
                   * <complexType name="VendorOrder">
                   * <complexContent>
                   * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   * <sequence>
                   * <element name="orderID" type="{http://www.w3.org/2001/XMLSchema}int"/>
                   * <element name="vendorID" type="{http://www.w3.org/2001/XMLSchema}int"/>
                   * <element name="vendorOrderID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   * <element name="orderReceivedDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
                   * <element name="contractAcceptedFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
                   * <element name="contractAcceptedDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
                   * <element name="productLanguageCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   * <element name="client" type="{http://smo.xsd.covad.com/vendororder}Client" minOccurs="0"/>
                   * <element name="lineItem" type="{http://smo.xsd.covad.com/vendororder}LineItem" maxOccurs="unbounded" minOccurs="0"/>
                   * </sequence>
                   * </restriction>
                   * </complexContent>
                   * </complexType>
                   * </pre>
                   *
                   *
                   */
                  @XmlAccessorType(AccessType.FIELD)
                  @XmlType(name = "VendorOrder", propOrder = {
                   "orderID",
                   "vendorID",
                   "vendorOrderID",
                   "orderReceivedDate",
                   "contractAcceptedFlag",
                   "contractAcceptedDate",
                   "productLanguageCode",
                   "client",
                   "lineItem"
                  })
                  public class VendorOrder {
                  
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder", type = Integer.class)
                   protected int orderID;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder", type = Integer.class)
                   protected int vendorID;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected String vendorOrderID;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected XMLGregorianCalendar orderReceivedDate;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected Boolean contractAcceptedFlag;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected XMLGregorianCalendar contractAcceptedDate;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected String productLanguageCode;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected Client client;
                   @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder")
                   protected List<LineItem> lineItem;
                  
                   /**
                   * Gets the value of the orderID property.
                   *
                   */
                   public int getOrderID() {
                   return orderID;
                   }
                  
                   /**
                   * Sets the value of the orderID property.
                   *
                   */
                   public void setOrderID(int value) {
                   this.orderID = value;
                   }
                  
                   /**
                   * Gets the value of the vendorID property.
                   *
                   */
                   public int getVendorID() {
                   return vendorID;
                   }
                  
                   /**
                   * Sets the value of the vendorID property.
                   *
                   */
                   public void setVendorID(int value) {
                   this.vendorID = value;
                   }
                  
                   /**
                   * Gets the value of the vendorOrderID property.
                   *
                   * @return
                   * possible object is
                   * {@link String }
                   *
                   */
                   public String getVendorOrderID() {
                   return vendorOrderID;
                   }
                  
                   /**
                   * Sets the value of the vendorOrderID property.
                   *
                   * @param value
                   * allowed object is
                   * {@link String }
                   *
                   */
                   public void setVendorOrderID(String value) {
                   this.vendorOrderID = value;
                   }
                  
                   /**
                   * Gets the value of the orderReceivedDate property.
                   *
                   * @return
                   * possible object is
                   * {@link XMLGregorianCalendar }
                   *
                   */
                   public XMLGregorianCalendar getOrderReceivedDate() {
                   return orderReceivedDate;
                   }
                  
                   /**
                   * Sets the value of the orderReceivedDate property.
                   *
                   * @param value
                   * allowed object is
                   * {@link XMLGregorianCalendar }
                   *
                   */
                   public void setOrderReceivedDate(XMLGregorianCalendar value) {
                   this.orderReceivedDate = value;
                   }
                  
                   /**
                   * Gets the value of the contractAcceptedFlag property.
                   *
                   * @return
                   * possible object is
                   * {@link Boolean }
                   *
                   */
                   public Boolean isContractAcceptedFlag() {
                   return contractAcceptedFlag;
                   }
                  
                   /**
                   * Sets the value of the contractAcceptedFlag property.
                   *
                   * @param value
                   * allowed object is
                   * {@link Boolean }
                   *
                   */
                   public void setContractAcceptedFlag(Boolean value) {
                   this.contractAcceptedFlag = value;
                   }
                  
                   /**
                   * Gets the value of the contractAcceptedDate property.
                   *
                   * @return
                   * possible object is
                   * {@link XMLGregorianCalendar }
                   *
                   */
                   public XMLGregorianCalendar getContractAcceptedDate() {
                   return contractAcceptedDate;
                   }
                  
                   /**
                   * Sets the value of the contractAcceptedDate property.
                   *
                   * @param value
                   * allowed object is
                   * {@link XMLGregorianCalendar }
                   *
                   */
                   public void setContractAcceptedDate(XMLGregorianCalendar value) {
                   this.contractAcceptedDate = value;
                   }
                  
                   /**
                   * Gets the value of the productLanguageCode property.
                   *
                   * @return
                   * possible object is
                   * {@link String }
                   *
                   */
                   public String getProductLanguageCode() {
                   return productLanguageCode;
                   }
                  
                   /**
                   * Sets the value of the productLanguageCode property.
                   *
                   * @param value
                   * allowed object is
                   * {@link String }
                   *
                   */
                   public void setProductLanguageCode(String value) {
                   this.productLanguageCode = value;
                   }
                  
                   /**
                   * Gets the value of the client property.
                   *
                   * @return
                   * possible object is
                   * {@link Client }
                   *
                   */
                   public Client getClient() {
                   return client;
                   }
                  
                   /**
                   * Sets the value of the client property.
                   *
                   * @param value
                   * allowed object is
                   * {@link Client }
                   *
                   */
                   public void setClient(Client value) {
                   this.client = value;
                   }
                  
                   /**
                   * Gets the value of the lineItem property.
                   *
                   * <p>
                   * This accessor method returns a reference to the live list,
                   * not a snapshot. Therefore any modification you make to the
                   * returned list will be present inside the JAXB object.
                   * This is why there is not a <CODE>set</CODE> method for the lineItem property.
                   *
                   * <p>
                   * For example, to add a new item, do as follows:
                   * <pre>
                   * getLineItem().add(newItem);
                   * </pre>
                   *
                   *
                   * <p>
                   * Objects of the following type(s) are allowed in the list
                   * {@link LineItem }
                   *
                   *
                   */
                   public List<LineItem> getLineItem() {
                   if (lineItem == null) {
                   lineItem = new ArrayList<LineItem>();
                   }
                   return this.lineItem;
                   }
                  
                  }
                  



                  Please suggest on this.

                  Thanks in Advance.

                  • 6. Re: Exception while deploying the webservice using jax-ws
                    Alessio Soldano Master

                     

                    "tpawankumar" wrote:
                    Hi,

                    This issue has been resolved by moving to Jbossws 2.0.1 GA.

                    Now i am getting different exception

                    java.lang.IllegalStateException: Cannot find endpoint meta data for: MacafeeAdapter
                    at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM
                    etaData(UnifiedMetaDataDeploymentAspect.java:117)
                    at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi
                    edMetaDataDeploymentAspect.java:86)
                    [...]


                    OK, this is no longer related to the XmlAccessorType issue; this problem is cause by the UnifiedMetaDataDeploymentAspect that is not able to find your endpoint meta data after all meta data have been created. I would double check the web.xml (beware of the case, you have macafeeAdapter as the service implementation class name).

                    • 7. Re: Exception while deploying the webservice using jax-ws
                      Andrea Palmieri Newbie

                      Did you succeed in solving your problem ? I had the same exception:

                      java.lang.IllegalStateException: Cannot find endpoint meta data for


                      please help
                      thanks in advance
                      Andrea