This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes No Realm has been configured to authenticate against Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "No Realm has been configured to authenticate against" Watch "No Realm has been configured to authenticate against" New topic
Author

No Realm has been configured to authenticate against

malek aftab
Greenhorn

Joined: Jun 04, 2006
Posts: 12
Dear all,
When I setup jdbc realm to user database as my realm, the server message "No Realm has been configured to authenticate against".
but all of my settings are correct.

Regards,
Malek Aftab
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
How is your realm set up? Post the changes you made to server.xml so we can take a look.


Ping & DNS - my free Android networking tools app
malek aftab
Greenhorn

Joined: Jun 04, 2006
Posts: 12
Hi,

I used both memory realm, and JDBCRealm such this
memory realm:
<Realm className="org.apache.catalina.realm.MemoryRealm" />
malek aftab
Greenhorn

Joined: Jun 04, 2006
Posts: 12
Hi,

I used both memory realm, and JDBCRealm such this
memory realm:
<Realm className="org.apache.catalina.realm.MemoryRealm" />

and JDBCRealm such this

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc dbc:websecure?user=;password="
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name"/>
 
jQuery in Action, 2nd edition
 
subject: No Realm has been configured to authenticate against