users@glassfish.java.net

Authentication realm of type JDBCRealm works in 3.0.1 but doesn't in 3.1

From: <glassfish_at_javadesktop.org>
Date: Sat, 24 Jul 2010 20:41:30 PDT

We are authenticating using JdbcReal + MySQL

I create the real from a .bat file on the command line: (to make sure that both realms are created identically)

asadmin create-auth-realm --classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm --property jaas-context=jdbcRealm:datasource-jndi=jdbc/salute:user-table=saluteuser:user-name-column=username:password-column=password:group-table=usergroup:group-name-column=groupname:digest-algorithm=none SaluteRealm


The datasource for this realm is created in both app servers via sun-resources.xml in the ejb module (not manually)

    <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="mysql_salute_rootPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
        <property name="serverName" value="localhost"/>
        <property name="portNumber" value="3306"/>
        <property name="databaseName" value="salute"/>
        <property name="User" value="root"/>
        <property name="Password" value="pablo"/>
        <property name="URL" value="jdbc:mysql://localhost:3306/salute"/>
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
    </jdbc-connection-pool>
    <jdbc-resource enabled="true" jndi-name="jdbc/salute" object-type="user" pool-name="mysql_salute_rootPool"/>

Any ideas?
[Message sent by forum member 'pablopina']

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