commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Lundberg <>
Subject Re: Commons Logging settings
Date Tue, 02 Jan 2007 21:38:31 GMT
Hi Denis

Are you using commons-logging 1.1? There is a bug in that version which 
only presents itself when you run under a security manager. We stumbled 
upon this for our applets, that are also delivered as signed jars in 
much the same way as you do. Perhaps this problem occurs for java web 
start as well?

We reverted back to 1.0.4 as a workaround. There is a 1.1.1 release 
coming up soon, that has a fix for this bug. You might want to try a 
nightly build to see if it solves your problem:

Dennis Lundberg

Denis Bessmertnyj wrote:
> I have software which I deliver to client through Java Web Start.
> I use Apache Commons Logging, but it doesn't work when I use it through 
> Web Start,
> because it can't find config file for logger.
> I deliver my application with certificate and all permissions.
> I store config file in jar file which I also deliver to client through JWS.
> Here is my code of getting config file on client:
> ClassLoader classLoader = this.getClass().getClassLoader();
> URL loggerConfigFileURL = classLoader.getResource("resources/logger.cfg");
> System.setProperty("java.util.logging.config.file", 
> loggerConfigFileURL.toString());
> By the way, ClassLoader finds config file in jar, and
> loggerConfigFileURL var has value: 
> jar:http://localhost:8080/newframework/lib/framework.jar!/resources/logger.cfg 
> But logger doesn't want to work!!! It's working only if I start locally 
> (not through JWS) my application and
> map "java.util.logging.config.file" to absoulute local path to 
> logger.cfg file (not using URL notation).
> How I realize it and what I do wrong?
> thnx!
> ---
> Denis Bessmertnyj,
> GUI SoftWeb
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message