OK, I created a new test application, referenced the jars inside the Glassfish installation directory directly, used the default "file" realm to which I added a user - and it worked!
(At least when not debugging, because there is an issue with debugging in NetBeans, which I filed here:
https://netbeans.org/bugzilla/show_bug.cgi?id=179678
Please vote and add a comment!)
I couldn't successfully login to my JDBCRealm, however.
So, let's start with the simple case: storing the password as "plain text"
I use the following configuration:
digest-algorithm: none (small letters)
encoding: <blank>
charset: <blank>
Is this correct for "plain text" passwords?
The whole realm definition in the domain.xml looks like this:
<auth-realm classname="com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm" name="myRealm">
<property name="jaas-context" value="jdbcRealm" />
<property name="datasource-jndi" value="jdbc/security" />
<property name="user-table" value="MYSCHEMA.USER_ACCOUNT" />
<property name="user-name-column" value="USER_NAME" />
<property name="password-column" value="PASSWORD_DIGEST" />
<property name="group-table" value="MYSCHEMA.V_USER_ACCOUNT_GROUP_MEMBERSHIP" />
<property name="group-name-column" value="GROUP_NAME" />
<property name="db-user" value="APP" />
<property name="db-password" value="APP" />
<property name="digest-algorithm" value="none" />
</auth-realm>
Any idea what could be wrong?
[Message sent by forum member 'puce' (fbrunnerreg_at_gmx.ch)]
http://forums.java.net/jive/thread.jspa?messageID=382119