Uploaded image for project: 'Geronimo-Devtools'
  1. Geronimo-Devtools
  2. GERONIMODEVTOOLS-56

URLProvider.getModuleRootURL() returning "WebApp_ID"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • eclipse-plugin
    • None
    • Windows XP

    Description

      Driver:

      • WTP 1.0.1 M20060131_1015,
      • Geronimo Server 1.0,
      • Geronimo plugin 0130_0958

      For a Web project called "g1Client", the context root is return as "WebApp_ID" rather than "g1Client". Here's the code:

      IURLProvider urlProvider = (IURLProvider) serverInstance.loadAdapter(IURLProvider.class, null);
      URL url = urlProvider.getModuleRootURL(module);

      url is returned as:

      http://localhost:8080/WebApp_ID/

      I was expecting:

      http://localhost:8080/g1Client/

      The problem can easily be reproduced by going through a Web Service Client scenario with "test Web service". Notice that the URL for the TestClient is wrong, it should be:

      http://localhost:8080/g1Client/sampleEchoProxy/TestClient.jsp

      rather than the current URL:

      http://localhost:8080/WebApp_ID/sampleEchoProxy/TestClient.jsp

      Attachments

        Activity

          People

            sppatel Sachin Pravin Patel
            kathychan Kathy Chan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: