Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4932

Problems when two JAX-WS services have the same packageName + ClassName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • jaxws
    • None

    Description

      When I was trying to reproduce the issue in [1], I realized that, when two JAXWS services (in two different jar files) have the same packageName + className, the WSDL shown on ?wsdl is wrong.

      Here's the reason. Our JAXWSRIWSDLGenerator creates a folder in the java tmp directory to save the generated WSDL and schema files from wsgen. But it creates this folder only using the annotated class name. But in the above case, both the services have the same fully qualified class name. Therefore, in this case both services will share the same folder. But the two service have two different WSDLs and Schemas. Thefeore sometimes ?wsdl shows the WSDL or schema of the other service.

      Steps to reproduce
      ============
      1. deploy the attached two services
      2. do ?wsdl on both services. first time it will show the correct WSDLs
      3. restart the server
      4. ?wsdl on both services. you should now see the incorrect WSDL for one of the services.

      Thanks,
      ~Isuru

      [1] https://issues.apache.org/jira/browse/AXIS2-4151

      Attachments

        1. EchoString.jar
          1 kB
          Isuru Suriarachchi
        2. EchoInt.jar
          1 kB
          Isuru Suriarachchi

        Activity

          People

            isurues Isuru Suriarachchi
            isurues Isuru Suriarachchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: