[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Help with external jars/servlets...



I just started working with a raq550 and am having problems.
I have a servlet that uses one external jar file. I installed the servlet according to the 'simple' instructions. Step 1 place the class file in the
{site}/WEB-INF/classes directory. Step 2 place the jar library in the
{site}/WEB-INF/lib directory. Step 3 restart the web service. Upon
checking the servlet, I get the following error

java.security.AccessControlException: access denied
(java.io.FilePermission /home/.sites/28/site1/web/WEB-INF/classes read)

I know this means I have to set some security policy up but I have no idea
what to set up. I tried putting:

grant codeBase "file:/home/.sites/28/site1/web/WEB-INF/classes/-"{
	permission java.security.AllPermission;
}

in 2 different places according to what I've read -
/usr/java/jakarta-tomcat/conf/tomcat.policy.custom  and
/usr/java/jakarta-tomcat/conf/tomcat.policy (after the first method didn't work)

I only have (and plan on having) a single site up on this box and blowing the security
is less of an issue since it's an internal-only machine.

What could I be doing wrong?

Greg Davis