Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 50162 invoked from network); 30 Nov 2000 10:40:44 -0000 Received: from mail.ursus.ru (HELO ursus.ru) (195.96.66.197) by locus.apache.org with SMTP; 30 Nov 2000 10:40:44 -0000 Received: from [195.42.70.3] (HELO anthony) by ursus.ru (Stalker SMTP Server 1.7) with SMTP id S.0000150029 for ; Thu, 30 Nov 2000 13:40:16 +0400 From: "Tagunov Anthony" To: "cocoon-users@xml.apache.org" Date: Thu, 30 Nov 2000 13:42:47 +0300 Reply-To: "Tagunov Anthony" Priority: Normal X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows NT (4.0.1381;6) MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Subject: FYI: IBM JDK 1.1.3 on Linux 6.2 using SYMBOLIC LINKS: problem and solution Message-Id: X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello, everybody! FYI: we hit a problem and have solved it: we used the following struncture in our Cocoon app: =============== ../apps/approot html a.xml ......href="../../stylesheets/a.xsl"... stylesheets a.xsl webapproot WEB-INF ... ln -s ../html ./html ============== I mean that we had ..apps/approot/webapproot mentioned in our server.xml file (we use Tomcat) as the root point of the our web application. There we had a symlink ../html to the dir where files were really stored. It worked (I mean file a.xml get processed by a.xsl, but when we modified a.xsl, this change was not taken into account and the outdated version of doc was taken from cache. This was because IMB JDK couldn't determine the lastModified of ..apps/approot/webapproot/html/../../stylesheets/a.xsl (in fact getCanonicalPath returns ..apps/stylesheets/a.xsl, which is clearly wrong. To get around this we had to use the following dir structure =============== ../apps/approot real html a.xml ......href="../../stylesheets/a.xsl"... stylesheets a.xsl webapproot WEB-INF ... ln -s ../real/html ./html ============== this way the getCanonicalPath of ..apps/approot/webapproot/html/../../a.xsl got to be ..apps/approot/stylesheets and the lastModified by IBM JDK 1.1.3 was not 0 but a correct value. Best regards, Tagunov Anthony NNT Telecom russia, http://www.mavicanet.com http://wap.mavica.ru