Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 66221 invoked from network); 1 Oct 2010 10:26:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 10:26:20 -0000 Received: (qmail 40698 invoked by uid 500); 1 Oct 2010 10:26:19 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 40392 invoked by uid 500); 1 Oct 2010 10:26:17 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 40378 invoked by uid 99); 1 Oct 2010 10:26:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 10:26:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 10:26:13 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o91APq1C017932 for ; Fri, 1 Oct 2010 10:25:52 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o91APpkb017931; Fri, 1 Oct 2010 06:25:51 -0400 (EDT) Date: Fri, 1 Oct 2010 06:25:51 -0400 (EDT) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 50035] New: StandardContext.getDocBase() returns incorrect values after the context with antiResourceLocking="true" failed to start X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: igor.mukhin@gmx.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=50035 Summary: StandardContext.getDocBase() returns incorrect values after the context with antiResourceLocking="true" failed to start Product: Tomcat 6 Version: 6.0.26 Platform: PC Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: igor.mukhin@gmx.de To reproduce: 1) install clean tomcat 2) create /conf/Catalina/localhost/test1.xml with 3) install a sample application to /webapps/test1 that for instance has a context listener that throws an exception during start of the application web.xml: org.acme.AlwaysFailContextListener AlwaysFailContextListener.java: public class AlwaysFailContextListener implements ServletContextListener { public void contextInitialized(ServletContextEvent event) { throw new RuntimeException("We want this application to fail on start"); } } 4) start tomcat Tomcat will - copy the application resource to /temp/0-test1 directory - tries to start the app and fail - tries to remove /temp/0-test1 directory after that if you do something like: StandardContext sc = (StandardContext) service.findChildren("localhost").findChildren("test1") sc.getDocBase() will return "c:/tomcat/temp/0-test1" directory, but not "test1" as it was and should. (I'm coding a monitoring manager application for tomcat, that is used in our company. Just in case you wondering how I found this bug) -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org