If you're using jdk1.4, use something like this in the java plugin's runtime parameters (where {DIRECTORY} is where your jar and config file lives):
-Xbootclasspath/p:{DIRECTORY};{DIRECTORY}\log4j.jar -Dlog4j.configuration=log4j.xml -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:37 AM To: [EMAIL PROTECTED] Subject: Logging from an applet - loading configuration problem Hi all, I'm trying to set up logging from an applet through a socketAppender. The socketAppender stuff works fine, but I'm having trouble getting the applet to load the correct configuration file. I've tried setting the "log4j.configuration" property through an applet parameter (<param name="log4j.configuration" value="http://somepath/log4j.properties">, to http://somepath/log4j.properties, but it still tries to load up log4j.xml first (and takes 30 seconds or so to do so), before trying log4j.properties. I can't think of any other way to set this type of property in an applet (System.setProperty throws a security exception). Has anyone got any idea what I could be doing wrong? Thanks for any help, Daniel Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]