File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes ctx.isCallerInRole() not working.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "ctx.isCallerInRole() not working...." Watch "ctx.isCallerInRole() not working...." New topic

ctx.isCallerInRole() not working....

Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
I am using Weblogic 7.0 AppServer.
I am using method getInfo(String role), which consists rbool = ctx.isCallerInRole(szRole)
& will return wheather it is in role or not.
But when i am running my application with proper role then also it is telling
java.rmi.AccessException: Security violation: insufficient permission to access method 'getInfo'
I have written ejb-jar.xml like this-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "">
<env-entry-type>java.lang.Integer </env-entry-type>
& weblogic-ejb-jar.xml like this ..
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN" "">

is there any problem in deployment descriptor file? or we have to add the roles from console too?
Thanx in advance.

Jack Nicholson
I agree. Here's the link:
subject: ctx.isCallerInRole() not working....
It's not a secret anymore!