Algirdas M. wrote:

Hello,

I've edited catalina.policy and added line:

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


restarted Tomcat. And when I'm running an application from vvv/WEB-INF/lib, I'm still becoming exception:

"Unable to connect to any hosts due to exception:
java.security.AccessControlException: access denied
(java.net.SocketPermission 111.101.68.165:3306 connect,resolve)"


Which Tomcat version are you using?

Try adding the jar file name instead of granting the entire directory.

-- Jeanfrancois




Why it doesn't work?





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to