"Scott M Stark" <[EMAIL PROTECTED]> wrote:
> They have to be somewhere in the classpath. This could be inside
> your ejb-jar in the root directory, in the dist/conf/default
> directory, or any other directory or archive in the server
> classpath.
I tried all of them and only (finally) got rid of the
NullPointerException when I put it in the ejb-jar file itself. But
now, it doesn't recignize the roles.
ejb-jar.xml contains:
<security-role>
<role-name>admin</role-name>
</security-role>
<security-role>
<role-name>guest</role-name>
</security-role>
<method-permission>
<role-name>admin</role-name>
<method>
<ejb-name>MyBean</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
users.properties:
rherzog=password
roles.properties
rherzog=admin
But I can try whatever I want, I get "Illegal access" on any
method. If I enter the wrong password the "Illegal access" message is
preceeded by FailedLoginException, if I enter the right password I get
no exception, which sounds good. But these roles...
--
(o_ Raffael Herzog
//\ [EMAIL PROTECTED]
V_/_
May the penguin be with you!
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user