You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/09/29 08:48:32 UTC

[jira] Updated: (AXIS-1372) Default servlet mapping for AxisServlet breaks service names

The following issue has been updated:

    Updater: Jayachandra Sekhara Rao Sunkara (mailto:jayachandra@gmail.com)
       Date: Tue, 28 Sep 2004 11:47 PM
    Comment:
Patch for bug # 1372
    Changes:
             Attachment changed to URLMapper_diff.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1372?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1372

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1372
    Summary: Default servlet mapping for AxisServlet breaks service names
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis
   Versions:
             1.1

   Assignee: 
   Reporter: Brian J. Sayatovic

    Created: Thu, 27 May 2004 6:41 AM
    Updated: Tue, 28 Sep 2004 11:47 PM
Environment: WebSphere 4 Test Environment under WSAD 5.1 on Windows XP.

Description:
I'm trying to set up my WAR, with context root /MyApp/MyWar, with the
default servlet being the AxisServlet from Apache AXIS 1.1.  I'm doing this on WebSphere 4.0 (right now, experimenting in WSAD 5. 1with the WAS4 test environment).

My attempt was to set the servlet mapping for AxisServlet to be just "/".  This is how WebSphere's documentation says one should set up a default servlet mapping.  However, when I attempt to reach my service like so...
    http://localhost:8080/MyApp/MyWar/MyService
...Axis complains that it can't find the service name "yService".  Notice the "M" is missing from the beginning.  Interestingly, using the following URLs will work:
    http://localhost:8080/MyApp/MyWar/XMyService
    http://localhost:8080/MyApp/MyWar/aMyService
    http://localhost:8080/MyApp/MyWar/&MyService
    http://localhost:8080/MyApp/MyWar/.MyService
    ...

So, I tried mapping "/foo/*" to AxisServlet, and used the following URL with success:
    http://localhost:8080/MyApp/MyWar/foo/MyService

Attempting to use "/*" as the mapping fails, and the documentation even states that this is not the way to map a default servlet (the first way is).

So, I'm thining this is a bug in Axis when the default servlet mappign is used -- it seems to be miscalculating how much of the URL to chop off to find the service name.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira