Java 2 Security Error

I am working on implementing java agent on AIX platform . Its a Websphere environment. Java 2 security is enabled. I created custom services and edited server.policy to add permissions to Java 2 Security Policy.