Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 76134 invoked from network); 4 Jan 2008 06:28:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2008 06:28:58 -0000 Received: (qmail 96834 invoked by uid 500); 4 Jan 2008 06:28:45 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 96783 invoked by uid 500); 4 Jan 2008 06:28:45 -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 96770 invoked by uid 99); 4 Jan 2008 06:28:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 22:28:45 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 06:28:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9DD75714211 for ; Thu, 3 Jan 2008 22:28:34 -0800 (PST) Message-ID: <29942657.1199428114643.JavaMail.jira@brutus> Date: Thu, 3 Jan 2008 22:28:34 -0800 (PST) From: "Thilina Buddhika (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-3098) WebService deployment failed due to config.getServletContext().getRealPath("") returns null in NES6.2 In-Reply-To: <26467166.1186507319357.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 [ https://issues.apache.org/jira/browse/AXIS2-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thilina Buddhika updated AXIS2-3098: ------------------------------------ Attachment: AXIS2-3098.patch all "getRealPath("")" were replaced with getRealPath("/") > WebService deployment failed due to config.getServletContext().getRealPath("") returns null in NES6.2 > ----------------------------------------------------------------------------------------------------- > > Key: AXIS2-3098 > URL: https://issues.apache.org/jira/browse/AXIS2-3098 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Affects Versions: 1.3, 1.2, nightly > Environment: Redhat Enterprise Linux 4, Netscape Enterprise Server 6.2, Firefox > Reporter: david > Assignee: Deepal Jayasinghe > Priority: Critical > Attachments: AXIS2-3098.patch > > > After I copied my StockQuoteService.aar file into tomcat 4.1.36 under folder \axis2\WEB-INF\services, from this URL: http://localhost:8080/axis2/services/listServices, I can see all the services including Version and StockQuoteService, I did the same thing to NES6.2, I could not see the StockQuoteService from the listServices URL, for NES, only I manually added StockQuoteService.aar to services.LIST file under \axis2\WEB-INF\services, then I can see the StockQuoteService and everything works normally. But I checked the result on tomcat, nothing is added to services.LIST file, but it still lists all the services. > After I debug into the code, I found in WarBasedAxisConfigurator.java, there are three getRealPath("") calls, in NES6.2 environment, they returned null, but in Tomcat, they returned the real path string, in order to work for more web servers, they should be changed to getRealPath("/") , that will always return the real path as: C:\apache-tomcat-4.1.36\webapps\axis2 in windows or \opt\redhat-es\https-dduRHL.pkipro/web-apps/axis2. > I did the change in my version of axis2-1.2 release, it now work for both tomcat and NES6.2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org