0 Replies Latest reply on Nov 1, 2008 7:15 AM by Uros Majeric

    How to access webservice

    Uros Majeric Newbie

      Hi,
      I'm new at webservices and have been searching for solution but couldn't find this specific problem anywhere. I'm pretty sure that I'm not the first one with this problem, but anyway.

      I have a webservice that works fine on my local machine. I access to it with URL: http://127.0.0.1:8081/taskws/TaskService?wsdl
      Web services looks like this:

      @Stateless
      @WebContext(contextRoot="/taskws")
      @WebService(name = "TaskService", serviceName = "TaskService")
      public class TaskService implements TaskServiceRemote {
      //...
      }


      But problem appears when I deploy on my server. I can't acces my web services there. I have an application instaled like this:
      in application.xml:
      <context-root>/<context-root>

      in jboss-web:
      <jboss-web>
      ...
       <virtual-host>test</virtual-host>
       <context-root>/</context-root>
      </jboss-web>


      and in server.xml: a have a host:
      <Host name="test" autoDeploy="false" deployOnStartup="false" deployXML="false">
       <Alias>test.domain.com</Alias>
      ...
       </Host>


      Jboss runs on localhost and I access to jboss via apache mod_jk.

      How do I have to configure to have access to this service.
      application works fine if I access test.domain.com.

      I appriciate your help.

      Uros