you need to package everything (including log4j classes) into the applet zip 
file

for IO you'll need the browser operator a mechanism to grant IO permissions
the accepted solution is to create a cert associated with the applet which will 
grant (read and write) IO permissions
http://www.captain.at/programming/java/

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 9 Dec 2010 18:43:39 -0800
> From: cpa...@yahoo.com
> Subject: Re: deploy log4j
> To: users@tomcat.apache.org
> 
> Hello
> I agree it should be simple and in the IDE it works fine.  In simple 
> production 
> environment on Windows Servers it fails.  In simple production environment on 
> a 
> WinXPP it works.  It cant get any more discipline testing than that.  Nothing 
> changes other than the deployment OS.  
> 
> 
> I am loading an applet and I can synthesize my location as 
> codebase+"WEB-INF/classes/log4j.properties but even the working IDE 
> environment 
> fails.  I am doing a 
> prop.load(getClass().getResourceAsStream(codebase+"WEB-INF/classes/log4j.properties")).
>  
>  Now neither environment works.  Ideas?
> 
> 
> 
> 
> ________________________________
> From: Christopher Schultz <ch...@christopherschultz.net>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Thu, December 9, 2010 4:37:23 PM
> Subject: Re: deploy log4j
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Mark,
> 
> On 12/9/2010 3:44 PM, Mark Eggers wrote:
> > I didn't get any errors.
> 
> Nor do we: we use log4j for application logging, have log4j.jar in
> WEB-INF/lib, have our log4j.properties in
> WEB-INF/classes/log4j.properties, and use the following code to
> configure our logging system:
> 
>         new PropertyConfigurator();
> 
> It couldn't be simpler than that if you ask me.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk0BTBMACgkQ9CaO5/Lv0PBiZgCfY2ajcRb5kgt5ODC4/hx8UaBW
> 48kAoK0a1Dq/wxwSsXsVrjNWBJwo0IXc
> =eyxa
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
                                          

Reply via email to