• 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

Settings for security-role in weblogic 7

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please help me out .
I have bean with following element added in ejb-jar.xml descriptor.I am using weblogic 7
<security-role>
<role-name>MyEmployee</role-name>
</security-role>
<method-permission>
<role-name>MyEmployee</role-name>
<method>
<ejb-name>MYEJB</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
And in weblogic-ejb-jar.xml i have following descriptor
<security-role-assignment>
<role-name>MyEmployee</role-name>
<principal-name>myname1</principal-name>
<principal-name>myname1</principal-name>
</security-role-assignment>
While accessing this bean from a client how should be the user specified.
What are the settings needed in weblogic.
I get following error while accessing the clients
Exception in thread "main" java.rmi.AccessException: Security Violation: User: '
<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=
my, module=my, ejb=MYEJB, method=create, methodInterface=Home, signature={
java.lang.Integer}.
Thanks
Raj
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic