axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Chinthaka (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1220) AxisServlet.initContextRoot assumes 1 level deep context
Date Mon, 02 Oct 2006 10:46:20 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1220?page=comments#action_12439099 ] 
            
Eran Chinthaka commented on AXIS2-1220:
---------------------------------------

Hi Bob,

We divide the the whole context in to two. Context path and service root. 

if the url is something like http://myhost/shop/myEngine/services, then 

context path = /shop/myEngine and 
service path - services.

Are you saying the above is not working or you expect context path to be equal to /shop/myEngine/services?

> AxisServlet.initContextRoot assumes 1 level deep context
> --------------------------------------------------------
>
>                 Key: AXIS2-1220
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1220
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: all
>            Reporter: Bob Stevenson
>         Assigned To: Eran Chinthaka
>
> initContextRoot only grabs the first part of the context.  My context is /shop/wsengine
, but this routine sets the contextRoot to only /shop.
> Then getEPRsForService() seems to rely on this for building the endpoints, which are
incorrect.
> if (contextRoot == null) {
>             String [] parts = JavaUtils.split(req.getContextPath(), '/');
>             if (parts != null) {
>                 for (int i = 0; i < parts.length; i++) {
>                     if (parts[i].length() > 0) {
>                         contextRoot = parts[i];                 
>                         break;
>                     }
>                 }
>             }
>             if (contextRoot == null || req.getContextPath().equals("/")) {
>                 contextRoot = "/";
>             }
>                         log.warn("contextRoot2: " + req.getContextPath());
>             //configContext.setContextRoot(contextRoot);
>             configContext.setContextRoot(req.getContextPath());
>         }

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message