Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-124

Redeployment of an unpackaged war causes a NoSuchMethodException at runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-ws4ee-4.0.2
    • jboss-ws4ee-4.0.1
    • jbossws-native
    • None

      When you deploy an unpackaged war containing web services, the deployment process copies web.xml to web.xml.org and then alters the <servlet-class> element inside web.xml to be:

      <servlet-class>org.jboss.webservice.server.ServiceEndpointServletJSE</servlet-class>

      If this modified web.xml file is then changed, the URLDeploymentScanner notices and redeploys the war. The resulting deployment process then uses the org.jboss.webservice.server.ServiceEndpointServletJSE as the implementation class of your web service which causes a NoSuchMethodException to be thrown when you call methods on your client proxy.

              tdiesler@redhat.com Thomas Diesler
              mnewton@redhat.com Mark Newton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: