Hi,
Thanks for the reply. I was using an App client but it needed to be built
and deployed whenever changed. For faster testing, I resorted to a
standalone client.
I'm currently trying JAAS login using
com.sun.appserv.security.AppservPasswordLoginModule class.
Getting the error-
"java.util.MissingResourceException: Can't find resource for bundle
sun.security.util.Resources, key unable to instantiate LoginModule:"
Pls help.
Regards,
Abhijit
-----Original Message-----
From: Kenneth.Saks_at_Sun.COM [mailto:Kenneth.Saks_at_Sun.COM]
Sent: Thursday, December 06, 2007 8:05 PM
To: ejb_at_glassfish.dev.java.net; abhijit.sarcar_at_gmail.com
Subject: Re: How to access a secure EJB from stand-alone client
Abhijit Sarkar wrote:
>
> Hi,
>
> I'm getting the below exception when trying to access a secure EJB
> (3.0). I'm using SJSAS 9.1 and EJB 3.0:
>
Hi Abhijit,
This means the caller does not have the appropriate permissions to
invoke the method. This is one of the portability problems with
stand-alone clients. There is no portable client authentication API in
Java EE. Your best bet is to write a Java EE Application Client
component. When you run it, the Application Client Container will
automatically perform the authentication. See the following entry in our
EJB FAQ :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#AppClientDef
>
> init:
>
> deps-jar:
>
> compile-single:
>
> run-single:
>
> javax.naming.NamingException: ejb ref resolution error for remote
> business interface <package name>.UserServiceRemote [Root exception is
> java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
>
> org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack
> trace----------
>
> org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
>
> at