java.lang.IllegalArgumentException: class org.glassfish.webservices.JAXWSServlet has neither @WebService nor @WebServiceProvider annotation

Oracle Community | zgrega | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    jax-ws web service problem on glassfish

    Oracle Community | 6 years ago | zgrega
    java.lang.IllegalArgumentException: class org.glassfish.webservices.JAXWSServlet has neither @WebService nor @WebServiceProvider annotation

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      class org.glassfish.webservices.JAXWSServlet has neither @WebService nor @WebServiceProvider annotation

      at com.sun.xml.ws.server.EndpointFactory.verifyImplementorClass()
    2. JAX-WS RI Runtime Bundle
      WSEndpoint.create
      1. com.sun.xml.ws.server.EndpointFactory.verifyImplementorClass(EndpointFactory.java:303)
      2. com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:120)
      3. com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
      4. com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:560)
      4 frames
    3. JSR-109 implementation to deploy Metro
      JAXWSServlet.init
      1. org.glassfish.webservices.JAXWSServlet.registerEndpoint(JAXWSServlet.java:405)
      2. org.glassfish.webservices.JAXWSServlet.doInit(JAXWSServlet.java:264)
      3. org.glassfish.webservices.JAXWSServlet.init(JAXWSServlet.java:99)
      3 frames
    4. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1428)
      2. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1060)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:187)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      5 frames
    5. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
      2 frames
    6. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
      3 frames
    7. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
      1 frame
    8. Grizzly WS
      ProcessorTask.invokeAdapter
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      1 frame