You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2008/09/26 22:43:13 UTC

DO NOT REPLY [Bug 45704] Failed to load logging.xml for JRE 1.5.0_16 and Webstart

https://issues.apache.org/bugzilla/show_bug.cgi?id=45704


Nick Ebbutt <ni...@ebbutt.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@ebbutt.net




--- Comment #1 from Nick Ebbutt <ni...@ebbutt.net>  2008-09-26 13:43:12 PST ---
I think this can be solved just by modifying line 762 in DOMConfigurator, in
the method public void doConfigure(final URL url, LoggerRepository repository)

Instead of parser.parse(url.toString()) it seems to work OK if we use
parser.parse(url.openConnection().getInputStream()).

The reason is that the url obtained via URL.toString() was broken for webstart
apps in a jdk security patch for 1.5.0_16 and 1.6_07, to obscure the path to
jar files in the webstart cache. openConnection still works

I built a patch with this fix and it seemed to work OK for our webstart apps
See my blog for more details,
http://www.objectdefinitions.com/odblog/2008/fix-for-log4j-bug-45704-failed-to-load-loggingxml-for-jre-150_16-and-webstart/

Nick


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org