I noticed that the prompt for my credentials says "Enter username and password for 'Tomcat Manager Application'".

That prompt comes from the 401.jsp file in the manager webapp, not the
<realm-name> in the web.xml file; I don't think the <realm-name> is
actually used anywhere.

But why does my custom app display "JDBCRealm" in the credentials prompt? Something is making these two apps behave differently wrt authentication, and it seems that the fact that they display different authentication prompts could be a clue. Problem is, even with this clue, I don't have a clue. :)
??? There's no such <ResourceLink> in
webapps/manager/META-INF/context.xml, nor in conf/context.xml, so where
did that come from?  Sounds like you don't actually have a clean Tomcat
6 installation.
Correct. I copied it over from my Tomcat 5 installation during the many gyrations I've been going through trying to find something that will make this work. I guess I lost track of what I changed at this point, but I'm certain it was failing with a fresh install. But just to be sure, I started from scratch one more time with a clean deployment, and I still have the same problem. In fact, I did the same thing on my other system (after de-installing Tomcat 5.5), and I get the same behavior there-- admin authentication works out of the box, but then stops working after I change the realm to a JDBCRealm.

I only make two changes to the original distribution. In ${catalina.home}\conf\server.xml, I comment out the UserDatabaseRealm and add a JDBCRealm; and in ${catalina.home}\webapps\manager\WEB-INF\web.xml, I change the login-config to

<login-config>
   <auth-method>DIGEST</auth-method>
   <realm-name>JDBCRealm</realm-name>
 </login-config>

Either this is not the right way to make an app work with JDBCRealm (though it works with my custom app), or there's something wrong in this version of Tomcat.

I appreciate all you've done, and I don't want to take up anymore of your time on this. Unless you have any final ideas, I'm ready to give up on making it work. Thanks again.

-Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to