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 "Dominik Kacprzak (JIRA)" <ax...@ws.apache.org> on 2004/12/23 21:14:04 UTC

[jira] Resolved: (AXIS-843) .jws files contained in /services can not be served.

     [ http://nagoya.apache.org/jira/browse/AXIS-843?page=history ]
     
Dominik Kacprzak resolved AXIS-843:
-----------------------------------

      Assign To: Dominik Kacprzak  (was: Axis Developers Mailing List)
     Resolution: Fixed
    Fix Version: current (nightly)

I fixed this issue based on Ben's feedback.

- Dominik

> .jws files contained in /services can not be served.
> ----------------------------------------------------
>
>          Key: AXIS-843
>          URL: http://nagoya.apache.org/jira/browse/AXIS-843
>      Project: Axis
>         Type: Bug
>   Components: Deployment / Registries
>     Versions: 1.1rc2
>  Environment: Operating System: All
> Platform: All
>     Reporter: Ben Menasha
>     Assignee: Dominik Kacprzak
>      Fix For: current (nightly)

>
> the web.xml file for the shipped web application includes the servlet-mapping.
>   <servlet-mapping>
>     <servlet-name>AxisServlet</servlet-name>
>     <url-pattern>/services/*</url-pattern>
>   </servlet-mapping>
> any request for a web-services hosted within /services will fail, because 
> AxisServlet.java always expects request.getServletPath() to return the relative 
> path to the .jws file.
> According to section 4.4 of the servlet spec, when the 
> url "/services/EchoHeader.jws" is requested and it matches the prefix url-
> pattern like the one shown above, the servletPath of the request will 
> be "/services" not "/services/EchoHeader.jws"
> To correct this problem, I would suggest that the calls to 
> request.getServletPath() in AxisServlet.java be replaced with 
> (request.getServletPath() + request.getPathInfo()) which will always be the 
> relative path to the .jws file, even when a prefix url-pattern matched the 
> requested url.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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