tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Pearson" <Jon.Pear...@sixnet.com>
Subject RE: Classloader Issues
Date Thu, 11 Jun 2009 19:16:00 GMT
That blurb was already in the catalina.policy file.

> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com] 
> Sent: Thursday, June 11, 2009 2:39 PM
> To: Tomcat Users List
> Subject: RE: Classloader Issues
> 
> 
> inside TC you have to grant the container access to Jar 
> assuming your class is located in commons-daemon.jar in 
> $CATALINA_HOME/conf/catalina.policy
> 
> // These permissions apply to the daemon code
> grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" {
>         permission java.security.AllPermission;
> };
> 
> HTH!
> 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.
> 
> 
> 
> 
> > Subject: Classloader Issues
> > Date: Thu, 11 Jun 2009 13:13:32 -0400
> > From: Jon.Pearson@sixnet.com
> > To: users@tomcat.apache.org
> > 
> > I am encountering an odd problem with Tomcat (6.0.18). When the Java
> > security manager is enabled, I get a ClassNotFoundException 
> when I try
> > to load the Postgres database driver using Class.forName() and a URL
> > classloader pointed at a jar; its parent classloader is the Webapp
> > classloader.
> > 
> > But, when the Java security manager is disabled, everything works
> > smoothly and no ClassNotFoundException is thrown.
> > 
> > I've stepped through the code (using Eclipse's debugger) 
> and not found
> > anything that stands out, and I've set a general breakpoint on all
> > SecurityExceptions, caught or uncaught. None are thrown.
> > 
> > Has anyone else encountered a problem like this? Is there a 
> way for the
> > Java security manager to block a class from loading without a
> > SecurityException being thrown?
> > 
> > Jonathan P. Pearson - Software Engineer
> > -------------------------------------------------- 
> > SIXNET - Solutions for Your Industrial Networking Challenges
> > 331 Ushers Road, Ballston Lake, NY 12019
> > Tel: 1.518.877.5173, Fax: 1.518.877.8346
> > www.sixnet.com
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> 
> _________________________________________________________________
> Insert movie times and more without leaving Hotmail®. 
> http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGL
> M_WL_HM_Tutorial_QuickAdd_062009
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message