Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 78152 invoked from network); 26 Oct 2006 06:51:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 06:51:48 -0000 Received: (qmail 53679 invoked by uid 500); 24 Oct 2006 03:06:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 53635 invoked by uid 500); 24 Oct 2006 03:06:31 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 53624 invoked by uid 99); 24 Oct 2006 03:06:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2006 20:06:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2006 20:06:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 239E271408A for ; Mon, 23 Oct 2006 20:05:17 -0700 (PDT) Message-ID: <13531883.1161659117112.JavaMail.root@brutus> Date: Mon, 23 Oct 2006 20:05:17 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-1220) AxisServlet.initContextRoot assumes 1 level deep context In-Reply-To: <16470884.1158959362427.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1220?page=all ] Davanum Srinivas resolved AXIS2-1220. ------------------------------------- Resolution: Fixed The solution involved setting it in the axis2.xml file. thanks, dims > 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