users@glassfish.java.net

Problem with JDBCRealm

From: <glassfish_at_javadesktop.org>
Date: Sun, 11 Nov 2007 10:07:59 PST

Hi.

I am writing an application which required a authorization but there appears a problem which could not be solved. When i enter correct username and password I go to j_security_check and get exception from glassfish:

[i]SEC5046: Audit: Authentication refused for [w].
Web login failed: Login failed: javax.security.auth.login.LoginException: Security Exception
PWC4011: Unable to set request character encoding to UTF-8 from context /ZPSSBD-war, because request parameters have already been read, or ServletRequest.getReader() has already been called[/i]

Datas are in table login_manager:
login | md5pass | user_type

JDBCRealm conf:
[i]
JNDI: ssbd07UserJDBCResource
User Table: login_manager
User Name Column: login
Password Column: md5pass
Group Table: login_manager
Group Name Column:user_type
Assign Group:
Database User:ssbd07
Database Password: test
Digest Algorithm:
Encoding:
Charset:[/i]

Every thing in web.xml is setted correctly.

I would be very thankful for your help.
[Message sent by forum member 'b1n4ry' (b1n4ry)]

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