Hi friends.. we have one application from Java i am trying to access session bean .It is giving the following error ..
com.evermind.server.rmi.OrionRemoteException: guest is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml
Please can any one help us.. Thanks and Regards. JSB
I notice that "administrators" has permission "administration" and "users" has permission "rmi:login". However, for "guests" I see no permissions listed. Could this relate to your problem? [ March 15, 2003: Message edited by: Marilyn de Queiroz ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Hi friends.. we have one application from Java i am trying to access session bean .It is giving the following error ..
com.evermind.server.rmi.OrionRemoteException: guest is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml
hi, it seems, that your context has wrong settings to acces the sessionbean. where do you get your context from? 1. are you trying to connect from one orion-app to another or 2. are your trying to connect from a standalone-client to an orion-app? in the first case you can just take orions initialcontext.
but be sure, that you have the permission to acces the ejb. look into ORIONHOME/conf/principals.xml and into ORIONHOME/application-deployment/MYAPP/principals.xml in the second case you must set the user-settings in your clients code. i never wrote such a code, but this could work:
in both cases you have to enable the user in your ORION-HOME/principals.xml. set the property deactivated="false" for the user. hope this helps christoph
Jandler Mayer
Greenhorn
Joined: Mar 14, 2003
Posts: 2
posted
0
I notice that "administrators" has permission "administration" and "users" has permission "rmi:login". However, for "guests" I see no permissions listed. Could this relate to your problem?
Those lines are correct. I copied them directly from the orion server documents.
I reached to this thread through google search. Well I am also facing same problem. my bean is getting accessed as guest. Even though I am calling bean with this piece of code.