• 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

Error Using client to access EJB

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I hope can get some help to what I believe should be an elementary problem. I've created an entity bean that has been deployed(finally!) successfully. But when I try to access it "CabinRemote cab_1 = home.create(new Integer(1));", I get an exception thrown "java.rmi.AccessException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=cabin, module=cabin, ejb=CabinEJB, method=create, methodInterface=Home, signature={java.lang.Integer}." Pls help as I'm not sure what I'm doing wrong. I'm not sure where this security violation is occuring, at EJB level or Server level...
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Layi,
This may help you: https://coderanch.com/t/66981/BEA-Weblogic/EJB-Security-Violation
Regards,
Ashish
 
Layi Egbeyemi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ashish, it helped but not in the way I expected. First of all, as Rajeev suggested to Subramaniam, I had already granted method permission to everyone for all methods in my specified EJB(CabinEJB) before I encountered the access violation exception. I could only solve this by specifying my method-permission as 'unchecked'. This finally worked but as we know that is not good in a production environment. Perhaps you could throw more light on this pls??? Thanks
 
Layi Egbeyemi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, and what's this '<anonynous> user' business??
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic