Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 55677 invoked from network); 29 Feb 2008 21:57:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 21:57:20 -0000 Received: (qmail 30045 invoked by uid 500); 29 Feb 2008 21:57:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 30009 invoked by uid 500); 29 Feb 2008 21:57:15 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 30000 invoked by uid 99); 29 Feb 2008 21:57:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 13:57:15 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 21:56:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 38F4C234C066 for ; Fri, 29 Feb 2008 13:56:18 -0800 (PST) Message-ID: <2042228414.1204322178228.JavaMail.jira@brutus> Date: Fri, 29 Feb 2008 13:56:18 -0800 (PST) From: "Bear Giles (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1605) 5.0.0: applet fails to initialize with default log4j.properties. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 5.0.0: applet fails to initialize with default log4j.properties. ---------------------------------------------------------------- Key: AMQ-1605 URL: https://issues.apache.org/activemq/browse/AMQ-1605 Project: ActiveMQ Issue Type: Bug Components: JMS client Affects Versions: 5.0.0 Environment: jre 1.6.0_03 applet on both firefox and msie. Reporter: Bear Giles We are unable to create a JMS-aware applet because of an initialization error in ActiveMQConnectionFactory/ActiveMQConnection. My research suggests that the problem is due to a static logger instance and a default log4j.properties file that contains an appender that is inappropriate (as in, throws security exceptions) in applets. java.lang.ExceptionInInitializerError at org.apache.activemq.ActiveMQConnection.(ActiveMQConnection.java:106) at com.si.applet.JmsApplet.(JmsApplet.java:36) at com.si.applet.ProducerConsumerApplet.(ProducerConsumerApplet.java:36) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.LogFactory.HashtableImpl read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320) at org.apache.commons.logging.LogFactory.(LogFactory.java:1725) ... 14 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.