Skip to main content

Remove server.policy from sun application server

No replies
Joined: 2008-07-09

I encounter this java.lang.StackOverflowError error after deployment of the java web application (.war). If i remove the server.policy file. I will not encounter this error however it means that there will be no security. I realize that the error will occur if i include the following in server.policy which by default is included permission java.lang.RuntimePermission "modifyThreadGroup";

If inside the server.policy file i just remove this permission java.lang.RuntimePermission "modifyThreadGroup";

I will get access denied as by default the security manager will check for this permission

Anyone have any idea what is wrong and how do i resolve this?