从GlassFish的4.0迁移到GlassFish 4.1.1 - JDBC领域问题从Glas

2019-05-12 10:29发布

我在Glassfish的domain.xml中该安全配置,其适用于4.0,但在4.1.1失败有人可以帮助确定什么是错的。 唯一的区别是类包“EE”

GF 4.0(额外ee

<auth-realm classname="com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm" name="authentication-realm">
<property name="jaas-context" value="jdbcRealm"></property>
<property name="password-column" value="password"></property>
<property name="datasource-jndi" value="jdbc/SomeDS"></property>
<property name="group-table" value="v_user_role"></property>
<property name="charset" value="UTF-8"></property>
<property name="user-table" value="v_user_role"></property>
<property name="group-name-column" value="rolename"></property>
<property name="digest-algorithm" value="SHA-256"></property>
<property name="user-name-column" value="username"></property>
<property name="digestrealm-password-enc-algorithm" value="SHA-256"></property>
<property name="encoding" value="Base64"></property>
</auth-realm>

GF 4.1.1

<auth-realm classname="com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm" name="authentication-realm">
<property name="jaas-context" value="jdbcRealm"></property>
<property name="password-column" value="password"></property>
<property name="datasource-jndi" value="jdbc/SomeDS"></property>
<property name="group-table" value="v_user_role"></property>
<property name="charset" value="UTF-8"></property>
<property name="user-table" value="v_user_role"></property>
<property name="group-name-column" value="rolename"></property>
<property name="digest-algorithm" value="SHA-256"></property>
<property name="user-name-column" value="username"></property>
<property name="digestrealm-password-enc-algorithm" value="SHA-256"></property>
<property name="encoding" value="Base64"></property>
</auth-realm>

Answer 1:

问题发生,因为我复制粘贴在从GlassFish 4.0 JBDC资源的GlassFish 4.1.1 domain.xml中。 这个问题是在手动回复的JDBC资源使用管理控制台或命令行重新创建后解决。



文章来源: Migration from glassfish 4.0 to Glassfish 4.1.1 - JDBC Realm issue