3 Replies Latest reply on Mar 30, 2007 9:51 AM by Jason Greene

    JSR181 EJB endpoint with root contextRoot

    Joseph Miller Newbie

      Hi, I've got an EJB as a JSR181 endpoint, and I want the service to be accessible via a URL like this: http://hostname:8080/MyExampleService?wsdl

      This is what I have so far:

      @WebService(targetNamespace = "http://example.com", name="MyExample", serviceName="MyExampleService")
      @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
      @PortComponent(contextRoot="/", urlPattern="/MyExampleService")
      public class MyExampleServiceImpl implements Remote, MyExampleService {

      However, deploying it like this results in it apparently (according to the /jbossws/services page) being deployed to http://hostname//MyExampleService?wsdl, but when I click on it, it's gives a 404 error.

      Is there any way to successfully get the webservice to deploy in the root?