users@glassfish.java.net

Trying to write certificate login module but missing

From: <forums_at_java.net>
Date: Thu, 15 Mar 2012 15:35:07 -0500 (CDT)

 Hi!

I'd love to be able to get my own certificate login module working, but I
keep getting a barf:

java.lang.NoClassDefFoundError: com/sun/logging/LogDomains at
com.sun.appserv.security.AppservCertificateLoginModule.<clinit>(AppservCertificateLoginModule.java:83)
at java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:264) at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:746)   I
included "security.jar" in the lib/ext directory, along with my module's jar,
because otherwise I was getting NoClassDefFoundError on
AppservCertificateLoginModule   Here's my code (copied from the sample
project, and stripped to the bare bones).   Any help would be very
gratefully received!   import
com.sun.appserv.security.AppservCertificateLoginModule;import
javax.security.auth.login.LoginException;public class MikeLogin extends
AppservCertificateLoginModule {     @Override    protected void
authenticateUser() throws LoginException {       
commitUserAuthentication(new String[]{"asdf:thisgroup"});    }}


--
[Message sent by forum member 'chopper']
View Post: http://forums.java.net/node/884313