• Post Reply Bookmark Topic Watch Topic
  • New Topic

Security issue?  RSS feed

 
Rahul Iyer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I get the following exception when I try to compile my file:
---------------------------------------------------------------------------
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
n(ShutdownUtilDelegate.java:87)
at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at headfirst._AdviceHome_Stub.create(Unknown Source)
at AdviceClient.go(AdviceClient.java:22)
at AdviceClient.main(AdviceClient.java:11)
Caused by: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed:
No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
... 3 more
---------------------------------------------------------------------------

I am currently using j2sdkee version 1.3 and j2se version 1.4 .

I am trying to complete the first EJB client application on page 58 of Head First EJB. I get the message when I try to compile the client.

Please Help!
 
Vipul
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried these options ....

Q1: What should I do if I encounter the following exception: java.rmi.AccessException: CORBA NO_PERMISSION 0 No?

With 1.3.1 final release, the J2EE SDK became strict about checking adherence to the security policies of J2EE components.

How can you make your application run under the Final Release?

If you don't want security checks, do the following:

Use the deploytool to build a deployment descriptor that does not require a strict security policy:

Under the Security screen of the EJB wizard or the Security tab of the EJB inspector in deploytool, click "Deployment Settings..". Under the box "Client Authentication", make sure "Support Client Choice" is checked instead of "Certificate" or "Password".


To require the application pass security checks to run, do the following:

When an enterprise bean specifies "Certificate" or "Password" as the method of Client Authentication, use a J2EE application client, instead of a stand-alone Java application, to access the bean. You will need to login as a valid J2EE user
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!