File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes AccessException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "AccessException" Watch "AccessException" New topic


Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
I've just started working with ejbs and am using SUN's Application Deployment Tool V1.3 and SUN's J2EE Server. I'm trying to test a simple stateful session bean, which deployed without error, but when I attempt to connect to the bean I get an RMI AccessException. I have changed all pertinant security policy files to grant universal access but still keep getting the exception. Also I am running Windows 2000 Pro. Here is the stack trace:
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at usingj2ee.hello._HelloWorldSessionHome_Stub.create(Unknown Source)
at usingj2ee.hello.TestHello.main(
Can anyone help?

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Consider Paul's rocket mass heater.
subject: AccessException
It's not a secret anymore!