File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes JNDIRealm in Tomcat 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JNDIRealm in Tomcat 6.0" Watch "JNDIRealm in Tomcat 6.0" New topic

JNDIRealm in Tomcat 6.0

Vijay Krishnan Chennai

Joined: May 05, 2008
Posts: 1

I got this working in Tomcat 5.5

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"


I tried the same thing in Tomcat 6.0 but the authentication popup keeps coming and finally authentication fails. If i switch back to 5.5, it works perfectly. What could be the problem?

Vijay Krishnan
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14802

Welcome to JavaRanch.

I have no experience with this myself, but it's possible that Tomcat 6.0 needs a different way of configuring it than Tomcat 5.5.

Have a look at this in the documentation of Tomcay 6.0 and check if your configuration is correct: Apache Tomcat 6.0 - JNDIRealm

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: JNDIRealm in Tomcat 6.0