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

    deploying a web service on jboss 4.0.5

    tripp Newbie

      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 Newbie

          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
            tripp Newbie

            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