commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Semmens <>
Subject RE: commons-logging 1.1 in an applet
Date Thu, 07 Dec 2006 16:06:00 GMT
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 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 [] 
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?


Here is the stack trace:

	at org.hibernate.cfg.Configuration.<clinit>(
	-- my code --
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at java.lang.Class.newInstance0(
	at java.lang.Class.newInstance(
	at sun.applet.AppletPanel.createApplet(
	at sun.plugin.AppletViewer.createApplet(
	at sun.applet.AppletPanel.runLoader(
Caused by: access denied
org.apache.commons.logging.LogFactory.HashtableImpl read)
	at java.lang.SecurityManager.checkPermission(
	at java.lang.SecurityManager.checkPropertyAccess(
	at java.lang.System.getProperty(
	at org.apache.commons.logging.LogFactory.createFactoryStore(
	at org.apache.commons.logging.LogFactory.<clinit>(
	... 14 more

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message