I have a little problem in my application under jboss 2.4 with Tomcat 2.4.10.
When an user is authenticated by the system, the instruction: System.out.println(context.getCallerPrincipal().getName());
function correctly but the container report this error when I use the function isCallerInRole():
no match found for security role user in the deployment descriptor
I have attached the jboss xml of my jar.
Who is the problem?
security roles should be declared in ejb-jar.xml