users@glassfish.java.net

Register custom realm

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Jun 2007 16:26:01 PDT

Hi,

i'm trying to use glassfish v2 b41d. But sadly i'm not able to use my custom realm, which worked under Glassfish v1.

The steps i've done so far:

- I've added to my domains/domain1/config/login.conf:
   databaseRealm {
        com.digitaldesigns.realms.jdbc.authmodule.DBLoginModule required;
   };

- Using the gui, i've added the following entries to domains/domain1/config/domain.xml:

           <auth-realm
classname="com.digitaldesigns.realms.jdbc.authmodule.DBRealm" name="databaseRealm">
          <property name="auth-type" value="databaseRealm"/>
          <property name="jaas-context" value="databaseRealm"/>
        </auth-realm>

  and:

  <java-config classpath-suffix="/home/arnie/Downloads/Java/glassfish/lib/addons/DBRealm.jar"

The realm is using two class files (included in DBRealm.jar), which are not found during startup. I always get the following message:

java.lang.ClassNotFoundException: com.digitaldesigns.realms.jdbc.authmodule.RealmGroup

I really hope that somebody can help me.

Greetings
Arne
[Message sent by forum member 'agessner' (agessner)]

http://forums.java.net/jive/thread.jspa?messageID=222526