2 Replies Latest reply on Oct 1, 2007 10:10 AM by trippstowe

    deploying a web service on jboss 4.0.5

    trippstowe

      i have an exploded war on jboss and i can deploy fine through eclipse. the wsdl is created for me, but when i try to do it manually by copying the class files and xml files over, the web service doesnt get deployed. can someone help?

      thanks
      tripp

        • 1. Re: deploying a web service on jboss 4.0.5
          richard_opalka

          Well this is a known bug http://jira.jboss.org/jira/browse/JBWS-1762 :-(

          The problem is in your web.xml file which looks like:

          ...
          <servlet>
           <servlet-name>Hello</servlet-name>
           <servlet-class>org.jboss.wsf.stack.jbws.EndpointServlet</servlet-class>
           <init-param>
           <param-name>jboss.ws.endpoint</param-name>
           <param-value>org.jboss.test.ws.jaxrpc.jbws124.HelloJavaBean</param-value>
           </init-param>
           </servlet>
          ...
          

          Change it in the following way and try to redeploy.
          ...
          <servlet>
           <servlet-name>Hello</servlet-name>
           <servlet-class>org.jboss.test.ws.jaxrpc.jbws124.HelloJavaBean</servlet-class>
           </servlet>
          ...


          If you can use packaged version of wars and ears then use them otherwise you'll face this problem very frequently.

          Richard

          • 2. the problem was my web.xml file was not getting copied over
            trippstowe

            it seems that just deploying the class files does not hot deploy the web service. you have to copy over a new web.xml for the web service to get hot deployed.

            is there any plans to change this since the web.xml is not required anymore?

            thanks
            tripp