Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 29903 invoked from network); 7 Dec 2006 16:13:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 16:13:44 -0000 Received: (qmail 28752 invoked by uid 500); 7 Dec 2006 16:13:45 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 28713 invoked by uid 500); 7 Dec 2006 16:13:45 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 28695 invoked by uid 99); 7 Dec 2006 16:13:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:13:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elihusmails@gmail.com designates 64.233.162.233 as permitted sender) Received: from [64.233.162.233] (HELO nz-out-0102.google.com) (64.233.162.233) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:13:32 -0800 Received: by nz-out-0102.google.com with SMTP id o1so364691nzf for ; Thu, 07 Dec 2006 08:13:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lcVYuDj4yFOeHNsXSoPKF1opH0bDFWc1VsiCfaf9xhaDKg4hxVFOgntf+MaHjUczvHJVKo3gTD5Qo4xGBi1GakKheYyfwjJqnIIDqj7ExKW6RDaK6lU5kL/F6pyH9ihNvP+pvV8prRPKQmwXNJtjG1UuqTkRM3aP4uWOQ4s3EPk= Received: by 10.65.93.18 with SMTP id v18mr3826881qbl.1165507990992; Thu, 07 Dec 2006 08:13:10 -0800 (PST) Received: by 10.65.103.10 with HTTP; Thu, 7 Dec 2006 08:13:10 -0800 (PST) Message-ID: <9f066ee90612070813l60050ed0x8f1952ef612be0a1@mail.gmail.com> Date: Thu, 7 Dec 2006 11:13:10 -0500 From: "Mark Webb" To: "Jakarta Commons Users List" Subject: Re: commons-logging 1.1 in an applet In-Reply-To: <20061207160641.CE9CF3B80E0@mail-relay3.marketpipe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061207160641.CE9CF3B80E0@mail-relay3.marketpipe.com> X-Virus-Checked: Checked by ClamAV on apache.org can a signed applet access this information? That is what I am working on now. On 12/7/06, Lance Semmens wrote: > I don't have a solution but I can shed some light on the subject. Applets can not access the following System Properties: > > java.home Java installation directory > java.class.path Java classpath > user.name User account name > user.home User home directory > user.dir User's current working directory > > LogFactory.createFactoryStore() must be trying to access one of these. > > -----Original Message----- > From: Mark Webb [mailto:elihusmails@gmail.com] > Sent: 07 December 2006 14:58 > To: Jakarta Commons Users List > Subject: commons-logging 1.1 in an applet > > I have a program that can run as an applet or application. When run > as an application, all logging works fine. When I run the program as > an applet, I get an error. Is there a way to fix this problem? > > TIA. > Mark > > Here is the stack trace: > > java.lang.ExceptionInInitializerError > at org.hibernate.cfg.Configuration.(Configuration.java:120) > -- my code -- > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at sun.applet.AppletPanel.createApplet(AppletPanel.java:721) > at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1760) > at sun.applet.AppletPanel.runLoader(AppletPanel.java:650) > at sun.applet.AppletPanel.run(AppletPanel.java:324) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.apache.commons.logging.LogFactory.HashtableImpl read) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) > at java.security.AccessController.checkPermission(AccessController.java:427) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285) > at java.lang.System.getProperty(System.java:627) > at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320) > at org.apache.commons.logging.LogFactory.(LogFactory.java:1725) > ... 14 more > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org