Unchecked only means that you do not need any assigned roles to access the
ejb. You still have to be an authenticated user. If you want to allow unauthenticated
users use the unauthenticatedIdentity loign module option to assign such users
an anonymous role.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message ----- 
From: "Jon Haugsand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 2:35 AM
Subject: [JBoss-user] Possible bug: unchecked does not seem to work.


> 
> Does not JBoss support the "unchecked" element in ejb-jar.xml/method-permission?
> 
> In my ejb-jar.xml I have the following fragment:
> 
>    <method-permission >
>       <unchecked/>
>       <method >
>          <ejb-name>SilData</ejb-name>
>          <method-intf>Home</method-intf>
>          <method-name>create</method-name>
>          <method-params>
>          </method-params>
>       </method>
>    </method-permission>
> 
> However, when I try to call this method by:
> 
> cat.debug( "silPlatromfTest: setUp() " );
> EjbHomeFactory ehf = EjbHomeFactory.getFactory();
> cat.debug( "setup(): getFactory()" );
> SilDataHome sdh = ehf.lookUpSilDataHome();
> cat.debug( "setup(): lookUpSilDataHome()" );
> sRemote = sdh.create();
> 
> The last one fails with:
> 
>      [java] java.rmi.ServerException: RemoteException occurred in server thread; 
> nested exception is: 
>      [java]     java.rmi.ServerException: EJBException:; nested exception is: 
>      [java]     javax.ejb.EJBException: checkSecurityAssociation; CausedByException 
> is:
>      [java]     Authentication exception, principal=null
>      [java] java.rmi.ServerException: EJBException:; nested exception is: 
>      [java]     javax.ejb.EJBException: checkSecurityAssociation; CausedByException 
> is:
>      [java]     Authentication exception, principal=null
>      [java] javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
>      [java]     Authentication exception, principal=null
>      [java]     at 
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
> 
> 
> JBoss version is 3.0.2.
> 
> -- 
>  Jon Haugsand, [EMAIL PROTECTED]
>  http://www.norges-bank.no
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to