« Return to Thread: Solution to Problem with Java Security Manager

Solution to Problem with Java Security Manager

by Jonathan O'Donovan :: Rate this Message:

Reply to Author | View in Thread

Hi All -

I found a solution to the problem I was experiencing - I changed the following in my JavaHome\jre\lib\security\java.policy file  :


grant {
 permission java.security.AllPermission;
};


It was previously set to

grant codeBase "file:${java.home}/lib/ext/*" {
 permission java.security.AllPermission;
};


I had previously done the same in the java.policy file in TomcatHome\conf\java.policy and I thought that this should have fixed the problem because I thought that the
java.policy file in the Tomcat folder would override those in JavaHome\jre\lib\security\java.policy but this doesn't seem to be the case, or is it ?

If anybody can clear this up for me I'd be very grateful as I would like to make sure that I'm not compromising security in some way.

Regards,
Jonathan O'Donovan
Web Developer,
EuroKom

 « Return to Thread: Solution to Problem with Java Security Manager

LightInTheBox - Buy quality products at wholesale price