Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 43992 invoked from network); 8 Oct 2003 16:13:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Oct 2003 16:13:09 -0000 Received: (qmail 7240 invoked by uid 500); 8 Oct 2003 16:12:41 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 7212 invoked by uid 500); 8 Oct 2003 16:12:41 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 7199 invoked from network); 8 Oct 2003 16:12:41 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 8 Oct 2003 16:12:41 -0000 Received: (qmail 43883 invoked from network); 8 Oct 2003 16:12:47 -0000 Received: from unknown (HELO jboss.org) (127.0.0.1) by localhost with SMTP; 8 Oct 2003 16:12:47 -0000 Message-ID: <3F84376F.8070002@jboss.org> Date: Wed, 08 Oct 2003 18:12:31 +0200 From: Remy Maucherat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat 5.0.12, Windows, and file pathnames References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Derek Mahar wrote: > Is it the responsibility of Tomcat, the application running on Tomcat, > or Java to translate or resolve Windows file paths? > If it is Tomcat, does Tomcat 5.0.12 translate or resolve these pathnames > correctly? VQWiki (http://www.croninsolutions.com/veryquickwiki/), a > JSP Wiki engine, when run on Tomcat 5.0.9 on Linux, works as expected. > However, on Tomcat 5.0.12 on Windows XP, VQWiki is unable to find and > save its property file, even though this file exists and is both > readable and writable. VQWiki generates the following report page: > > The error had the following > message:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\w > ebapps\vqwiki\WEB-INF\classes\vqwiki.properties (The system cannot find > the path specified) The only way you can get a properly URL encoded URL is when you call getResource on the classloader. If you do a diff, you'll see there's no relevant changes that have been made to the classloader between 5.0.9 and 5.0.12. The most likely cause is that you don't have spaces in your Tomcat path on Linux, but you do on Windows. Note: The URL encoding of those paths is a "feature" which could be removed (it is supposed to fix problems with RMI). -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx R�my Maucherat Senior Developer & Consultant JBoss Group (Europe) S�RL xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org