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 ji...@apache.org on 2004/05/27 15:42:01 UTC

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

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Thu, 27 May 2004 6:41 AM
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


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

Posted by ax...@ws.apache.org.
Message:

   The following issue has been closed.

   Resolver: Tom Jordahl
       Date: Wed, 29 Sep 2004 10:10 AM

Applied patch - please check out current CVS.
Thanks!
---------------------------------------------------------------------
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: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Axis
   Fix Fors:
             1.2 Beta
   Versions:
             1.1

   Assignee: 
   Reporter: Brian J. Sayatovic

    Created: Thu, 27 May 2004 6:41 AM
    Updated: Wed, 29 Sep 2004 10:10 AM
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


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

Posted by ax...@ws.apache.org.
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


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

Posted by ax...@ws.apache.org.
The following issue has been updated:

    Updater: $changelogauthor.fullName (mailto:)
       Date: Wed, 29 Sep 2004 4:51 AM
    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: Wed, 29 Sep 2004 4:51 AM
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


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

Posted by ax...@ws.apache.org.
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


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

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jayachandra Sekhara Rao Sunkara
    Created: Wed, 29 Sep 2004 4:55 AM
       Body:
The latest attached file (second one) contains a diff done against the recent cvs repository. 
Thank you
jayachandra
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1372?page=comments#action_53495

---------------------------------------------------------------------
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: Wed, 29 Sep 2004 4:55 AM
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