glenn 01/04/25 10:02:12
Modified: catalina/src/conf catalina.policy
Log:
Update policy examples to use jndi naming conventions
Revision Changes Path
1.11 +15 -4 jakarta-tomcat-4.0/catalina/src/conf/catalina.policy
Index: catalina.policy
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/catalina.policy,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- catalina.policy 2001/04/25 04:14:05 1.10
+++ catalina.policy 2001/04/25 17:02:10 1.11
@@ -8,7 +8,7 @@
//
// * Read access to the document root directory
//
-// $Id: catalina.policy,v 1.10 2001/04/25 04:14:05 glenn Exp $
+// $Id: catalina.policy,v 1.11 2001/04/25 17:02:10 glenn Exp $
// ============================================================================
@@ -142,15 +142,26 @@
// };
//
// The permissions granted to the context WEB-INF/classes directory
-// grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/classes/-" {
+//
+// Permissions granted to a web applications /WEB-INF/classes
+// need to use the JNDI naming convention Tomcat 4 uses to identify
+// these resources. The naming convention is
+// "jndi:/<virtual host name>/<web application directory>/WEB-INF/classes/
+//
+// grant codeBase "jndi:/localhost/examples/WEB-INF/classes/-" {
// };
//
+// Permissions granted to a web applications /WEB-INF/lib
+// need to use the JNDI naming convention Tomcat 4 uses to identify
+// these resources. The naming convention is
+// "jar:jndi:/<virtual host name>/<web application directory>/WEB-INF/lib/
+//
// The permission granted to your JDBC driver
-// grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar" {
+// grant codeBase "jar:jndi:/localhost/examples/WEB-INF/lib/driver.jar" {
// permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
// };
// The permission granted to the scrape taglib
-// grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/scrape.jar" {
+// grant codeBase "jar:jndi:localhost/webapps/examples/WEB-INF/lib/scrape.jar" {
// permission java.net.SocketPermission "*.noaa.gov:80", "connect";
// };