• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with orion-Urgent Please Can any one help us

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello people,
I am receiving the following error when our application which is written in Java and deployed on Oracle Enterprise Manager v9.0.2
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).
I was told the error could be in the following files but I have yet to find it
***************
* ejb-jar.xml *
***************
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-version="9.0.2.0.0" deployment-time="f3ed54c502">
<enterprise-beans>
<session-deployment name="loto" max-instances="10" location="loto" wrapper="GameDriverHome_StatelessSessionHomeWrapper7" persistence-filename="loto.VLA_default_island_1" />
</enterprise-beans>
<assembly-descriptor>
<security-role-mapping name="admin">
</security-role-mapping>
<default-method-access>
<security-role-mapping name="<default-ejb-caller-role>" impliesAll="true" />
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar>
*************************
* orion-application.xml *
*************************
<?xml version = '1.0'?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
<orion-application deployment-version="9.0.2.0.0" default-data-source="jdbc/OracleDS">
<ejb-module remote="false" path="LotoGameDriver.jar"/>
<persistence path="persistence"/>
<principals path="principals.xml"/>
<jazn provider="XML" location="jazn-data.xml"/>
<log>
<file path="application.log"/>
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="jazn.com/administrators"/>
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="jazn.com/administrators"/>
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
******************
* principals.xml *
******************
<?xml version = '1.0'?>
<!DOCTYPE principals PUBLIC "//Evermind - Orion Principals//" "http://xmlns.oracle.com/ias/dtds/principals.dtd">
<principals>
<groups>
<group name="administrators">
<description>administrators</description>
<permission name="administration"/>
</group>
<group name="guests">
<description>guests</description>
</group>
<group name="users">
<description>users</description>
<permission name="rmi:login"/>
</group>
</groups>
<users>
<user username="admin" password="y17433">
<group-membership group="administrators"/>
</user>
</users>
</principals>
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

but still i m getting user as guest.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic