Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 30100 invoked from network); 9 May 2006 13:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 13:02:52 -0000 Received: (qmail 19836 invoked by uid 500); 9 May 2006 13:02:31 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19391 invoked by uid 500); 9 May 2006 13:02:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 19380 invoked by uid 99); 9 May 2006 13:02:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 06:02:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of funkman@joedog.org designates 204.74.20.252 as permitted sender) Received: from [204.74.20.252] (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 06:02:28 -0700 Received: from [10.38.20.134] (tafunk-lt.americas.armstrong.com [10.38.20.134]) by sid.armstrong.com (8.13.6/8.12.8) with ESMTP id k49D9wf4019668 for ; Tue, 9 May 2006 08:09:58 -0500 Message-ID: <446092CF.50504@joedog.org> Date: Tue, 09 May 2006 09:02:07 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: System.setProperty failed during Tomcat5 startup References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 1) Don't hijack threads - start a new one 2) Your running tomcat in with the security manager turned on. When the security manager is enabled - methods System.setProperty() and System.exit() are not allowed to be called. -Tim lee hwaying wrote: > Tomcat startup fail with below error log when Springframework tried to > call System.setProperty. > Can some one help me? > I ran the code succesyfully at windows pc but not on unix server > > thanks > hy > > java.security.AccessControlException: access denied > (java.util.PropertyPermission webApp.root write) > @40000000445f114f374f04fc at > java.security.AccessControlContext.checkPermission > java.security.AccessController.checkPermission(AccessController.java:427) > @40000000445f114f374f149c at java.lang.SecurityManager.checkPermission > (SecurityManager.java:532) > @40000000445f114f374fa524 at java.lang.System.setProperty > (System.java:698) > @40000000445f114f374facf4 at > org.springframework.web.util.WebUtils.setWebAppRootSystemProperty > (WebUtils.java:104) > @40000000445f114f374fb4c4 at > org.springframework.web.util.Log4jWebConfigurer.initLogging > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org