activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduard Martinez <eduard.marti...@obeliskvoip.com>
Subject AccessControlException on applet using activemq
Date Thu, 07 Feb 2008 12:16:45 GMT
Hello,
I'm making an applet which uses activemq to connect to a server. Running as a 
normal application all is ok, but when I'm inside an applet, it throws an 
AccessControlException. Some idea?

java.lang.ExceptionInInitializerError
	at 
org.apache.activemq.ActiveMQConnection.<clinit>(ActiveMQConnection.java:106)
	at obremote.JMSConnection.<init>(JMSConnection.java:36)
	at obremote.ObRemote.<init>(ObRemote.java:39)
	at monitor.Monitor.init(Monitor.java:66)
	at sun.applet.AppletPanel.run(AppletPanel.java:419)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.security.AccessControlException: access denied 
(java.util.PropertyPermission 
org.apache.commons.logging.LogFactory.HashtableImpl read)
	at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	at java.security.AccessController.checkPermission(AccessController.java:546)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
	at java.lang.System.getProperty(System.java:652)
	at 
org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320)
	at org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)
	... 6 more

I'm using the following jars of the distribution (included in ARCHIVE tag from 
applet):

activation-1.1.jar, activemq-core-5.0.0.jar, commons-logging-1.1.jar, 
geronimo-j2ee-management_1.0_spec-1.0.jar, geronimo-jms_1.1_spec-1.0.jar, 
geronimo-jta_1.0.1B_spec-1.0.jar

Mime
View raw message