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:46:32 UTC

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

The following comment has been added to this issue:

     Author: Jayachandra Sekhara Rao Sunkara
    Created: Tue, 28 Sep 2004 11:44 PM
       Body:
I troubleshooted the problem and found out that in URLMapper.java in the invoke(MessageContext msgContext) method, while setting the TargetService of msgContext path variable is assumed to contain  "/"+servicename. In the case of default servlet mapping being "/*" there is a possibility of path variable to be just servicename. So the following patch that I'm attaching can solve the problem.


---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1372?page=comments#action_53481

---------------------------------------------------------------------
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:44 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