From: Marc Z. <zam...@ao...> - 2003-05-05 21:17:10
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <font face="Arial,sans-serif"><font size="2">All,<br> I got a problem I can't seem to figure out the root problem. Situation:<br> <br> 1 Stateless Session Bean that calls methods on CMP Entity Beans.<br> A Struts application calls the Session Bean.<br> <br> The Session Bean has roles assigned to individual methods. The Entity Beans are all assigned the role "internalRole", and the Session bean<br> has its <security-identity> to use run-as with the role of "internalRole". <br> The whole thing is wrapped up in an EAR file, which delploys without issue.<br> <br> I can run the application, and produce data using methods on the Session Bean. When I try to create a new entry, which again calls the Session Bean, I get a SecurityException, "No method permissions assigned to the method". I've tripple checked the ejb-jar.xml file, and the method DOES have its permissions defined. This seems to be the problem for any of the methods that modify data. The read-only methods (not marked so) seem to work fine.<br> <br> I'm using JBoss 3.2.0, and have also tried 3.2.1. Any ideas?<br> <span>-- <br> Marc Zampetti<br> <br> </span></font></font> </body> </html> |