Ok, this is what I did:
1) undeployed the service
2) checked generated/policy and there was nothing there
3) checked Default P2R (was checked already), saved config again (just in
case), restarted GF
4) installed service, still not working
This is the granted.policy file
/* AUTOMATICALLY GENERATED ON Mon Aug 15 09:46:01 BOT 2011*/ /* DO NOT EDIT
*/ grant { permission javax.security.jacc.EJBMethodPermission "HelloService",
"sayHello,ServiceEndpoint,"; permission
javax.security.jacc.EJBMethodPermission "HelloService", "sayHello,Local,";
permission javax.security.jacc.EJBMethodPermission "HelloService",
"sayHello,Remote,"; }; grant principal org.glassfish.security.common.Group
"Administrator" { permission javax.security.jacc.EJBRoleRefPermission
"HelloService", "Administrator"; permission
javax.security.jacc.EJBMethodPermission "HelloService",
"saySecureHello,Local,"; permission javax.security.jacc.EJBMethodPermission
"HelloService", "saySecureHello,ServiceEndpoint,"; permission
javax.security.jacc.EJBMethodPermission "HelloService",
"saySecureHello,Remote,"; };
Just in case the zipped project (Eclipse/Maven) and the jar file (jar is
insize the zip /target folder).
--
[Message sent by forum member 'fawzib']
View Post: http://forums.java.net/node/832305