3 Replies Latest reply on Aug 3, 2006 10:07 AM by jason_rency

    Web service can't be found 404 error

    jason_rency

      hi all, I am trying the Calculator web service with the jboss 4.04GA server. I can deploy and running the web service successfully as when starting the server it says:

      2006-08-03 10:28:27,153 INFO [org.jboss.ws.server.WSDLFilePublisher] WSDL published to: file:/C:/Program Files/jboss-4.0.4.GA/server/default/data/wsdl/regserver.ear/regserver.ejb3/CalculatorService56401.wsdl
      
      2006-08-03 10:28:27,753 INFO [org.jboss.ws.server.ServiceEndpointManager] WebService started: http://E152:8080/regserver/CalculatorBean


      then I used the generated wsdl file and generate a test client by the IDE, when running it, it throws the following exceptions:

      HTTP Status-Code 404: Not Found - /regserver/CalculatorBean com.sun.xml.rpc.client.http.HttpClientTransport.checkResponseCode(HttpClientTransport.java:302) com.sun.xml.rpc.client.http.HttpClientTransport.connectForResponse(HttpClientTransport.java:252) com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:88) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96) webservice.Calculator_Stub.add(Calculator_Stub.java:70) webservice.CalculatorServiceClient.calculatorportAdd(CalculatorServiceClient.java:22) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)


      any ideas? thanks a lot...

      Jason

        • 1. Re: Web service can't be found 404 error
          jason_rency

          my ejb-jar.xml is like this:

          - <ejb-jar>
          - <assembly-descriptor>
          - <interceptor-binding>
           <ejb-name>*</ejb-name>
           <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
           </interceptor-binding>
           </assembly-descriptor>
           </ejb-jar>


          should I config the service endpoint in ejb.jar.xml? if so, how? just wonering why I can still get the web service started (as least job server tells me so)?

          • 2. Re: Web service can't be found 404 error
            jason_rency

            by the way, where to find the package javax.jws.soap, it seems not being included in the jboss-ejb3.jar.
            thanks

            • 3. Re: Web service can't be found 404 error
              jason_rency

              I can see the following information when I visit this page:

              http://localhost:8080/jbossws/services

              Registered Service Endpoints
              ServiceEndpointID ServiceEndpointAddress
              jboss.ws:di=regserver.ear/regserver.ejb3,port=CalculatorPort,service=CalculatorService http://localhost:8080/regserver/CalculatorBean?wsdl

              but when I click on http://localhost:8080/regserver/CalculatorBean?wsdl ..

              the following information appears:
              HTTP Status 404 - /regserver/CalculatorBean
              
              --------------------------------------------------------------------------------
              
              type Status report
              
              message /regserver/CalculatorBean
              
              description The requested resource (/regserver/CalculatorBean) is not available.
              
              
              --------------------------------------------------------------------------------
              
              Apache Tomcat/5.5.17


              help needed...