Hi!

I'm trying to deploy a web application which also contain an applet.

Here are the files,

 webapp/dummyapp/index.html
 webapp/dummyapp/WEB-INF/classes/DummyApplet.class
 webapp/dummyapp/WEB-INF/lib/commons-collections.jar


assuming that index.html will load the Java applet DummyApplet and
that DummyApplet uses some classes in commons-collections.jar. In
order for the applet to access the resource, should we create the
following grant entries into the catalina.policy?

 grant codeBase "file:${catalina.home}/webapps/dummyapp/-" {
   permission java.security.AllPermission;
 };

 grant codeBase "file:${catalina.home}/webapps/dummyapp/WEB-INF/classes/-" {
   permission java.security.AllPermission;
 };

 grant codeBase
"jar:file:${catalina.home}/webapps/dummyapp/WEB-INF/lib/commons-collections.jar!/-"
{
   permission java.security.AllPermission;
 };

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to