Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1460

deploying cxf webservice in host other than localhost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.1, 1.7.2
    • 1.7.2, 7.0.0-M1
    • None
    • None

    Description

      i have a basic test webservice with interface TestWs

          package testws;
          import javax.jws.WebService;
          @WebService(targetNamespace = "http://test.com/testws/webservices/test")
          public interface TestWs {
              void test();
          }
      

      and class Test

          package testws;
      
          import javax.ejb.Stateless;
          import javax.jws.WebService;
      
          @Stateless
          @WebService(portName = "TestPort", serviceName = "TestService", targetNamespace = "http://test.com/testws/webservices/test", endpointInterface = "testws.TestWs")
          public class Test implements TestWs {
              @Override
              public void test() {
              }
          }
      

      in server.xml i have two host elements

          <Host name="localhost">
          <Host name="test.com">
      

      deploying the war to localhost everything is fine. deploying to test.com it does not work. the log reads:

          INFO: Webservice(wsdl=http://localhost:8080/testws/Test, qname={http://test.com/testws/webservices/test}TestService) --> Ejb(id=Test)
      

      whereas the expected result might be

          INFO: Webservice(wsdl=http://test.com:8080/testws/Test, qname={http://test.com/testws/webservices/test}TestService) --> Ejb(id=Test)
      

      Attachments

        1. testws.war
          3 kB
          Matthew Broadhead

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            chongma Matthew Broadhead
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: