Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 41126 invoked from network); 11 Jun 2009 19:16:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 19:16:27 -0000 Received: (qmail 10863 invoked by uid 500); 11 Jun 2009 19:16:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 10783 invoked by uid 500); 11 Jun 2009 19:16:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 10772 invoked by uid 99); 11 Jun 2009 19:16:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 19:16:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.22.42.202] (HELO svr3.sixnetio.com) (64.22.42.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 19:16:23 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Classloader Issues Date: Thu, 11 Jun 2009 15:16:00 -0400 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Classloader Issues Thread-Index: AcnqxA1HAcHp7x/pRGqB9s7sTv875gABPInw References: From: "Jon Pearson" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org That blurb was already in the catalina.policy file. > -----Original Message----- > From: Martin Gainty [mailto:mgainty@hotmail.com]=20 > Sent: Thursday, June 11, 2009 2:39 PM > To: Tomcat Users List > Subject: RE: Classloader Issues >=20 >=20 > inside TC you have to grant the container access to Jar=20 > assuming your class is located in commons-daemon.jar in=20 > $CATALINA_HOME/conf/catalina.policy >=20 > // These permissions apply to the daemon code > grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" { > permission java.security.AllPermission; > }; >=20 > HTH! > Martin Gainty=20 > ______________________________________________=20 > Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de=20 > confidentialit=E9 > =20 > Diese Nachricht ist vertraulich. Sollten Sie nicht der=20 > vorgesehene Empfaenger sein, so bitten wir hoeflich um eine=20 > Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer=20 > Kopie ist unzulaessig. Diese Nachricht dient lediglich dem=20 > Austausch von Informationen und entfaltet keine rechtliche=20 > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von=20 > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous=20 > n'=EAtes pas le destinataire pr=E9vu, nous te demandons avec=20 > bont=E9 que pour satisfaire informez l'exp=E9diteur. N'importe=20 > quelle diffusion non autoris=E9e ou la copie de ceci est=20 > interdite. Ce message sert =E0 l'information seulement et=20 > n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant=20 > donn=E9 que les email peuvent facilement =EAtre sujets =E0 la=20 > manipulation, nous ne pouvons accepter aucune responsabilit=E9=20 > pour le contenu fourni. >=20 >=20 >=20 >=20 > > Subject: Classloader Issues > > Date: Thu, 11 Jun 2009 13:13:32 -0400 > > From: Jon.Pearson@sixnet.com > > To: users@tomcat.apache.org > >=20 > > I am encountering an odd problem with Tomcat (6.0.18). When the Java > > security manager is enabled, I get a ClassNotFoundException=20 > 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. > >=20 > > But, when the Java security manager is disabled, everything works > > smoothly and no ClassNotFoundException is thrown. > >=20 > > I've stepped through the code (using Eclipse's debugger)=20 > and not found > > anything that stands out, and I've set a general breakpoint on all > > SecurityExceptions, caught or uncaught. None are thrown. > >=20 > > Has anyone else encountered a problem like this? Is there a=20 > way for the > > Java security manager to block a class from loading without a > > SecurityException being thrown? > >=20 > > Jonathan P. Pearson - Software Engineer > > --------------------------------------------------=20 > > 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 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > >=20 >=20 > _________________________________________________________________ > Insert movie times and more without leaving Hotmail=AE.=20 > http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=3DTXT_TAGL > M_WL_HM_Tutorial_QuickAdd_062009 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org