There is no admin webapp for Tomcat 6; is that your own, or did you copy
over stuff from a previous level of Tomcat?  If you did, that's likely
the cause of your problem, since the configs and built-in webapps are
not compatible across levels.
I copied the admin app from Tomcat 5 after seeing that the manager app wasn't working right, just to see if I could get a clue from how it was configured. (Tomcat 6 still has the html page for the admin app that says it can be downloaded if desired, so I assumed it was still supported for 6.0.) I got rid of it, now, however. See below.
All of those warnings need to be fixed; it's more evidence of copying
config files from a previous level, which is a definite no-no.  You
should start over with a clean installation of Tomcat 6, and then port
(not copy) whatever you need from the older level.

To enable a systematic approach, I started from scratch. I de-installed Tomcat and deleted all its files. Here's how it went.

1. I re-installed 6.0.16, specifying a user name with manager role for tomcat-users.xml. I was able to access manager using these credentials.

2. I added to server.xml the JDBCRealm descriptor that I showed earlier in the thread. I made no other changes. At this point, I could no longer authenticate to manager using the credentials in Tomcat-users.xml. (Perhaps when there was only one realm, UserDatabaseRealm was used as the default. Now that there are two, I have to point manager to the one to use? I tried earlier to do this using a <ResourceLink> element as described in Tomcat docs and the comments to manager's web.xml, but I must not have done it right, as I couldn't get it to work. I'd prefer anyway to get it working with JDBCRealm.).

3. I put the JDBC connector jar into ${catalina.home}\lib and copied into webapps my custom app that uses JDBCRealm for authentication, and tested it. It works fine, using the JDBC connection to authenticate a user with role manager.

4. I modified manager's web.xml login-config to be

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

which is the same as my custom app. I cannot authenticate to manager using the JDBC credentials.

I now have no error messages (I believe) in my log file except the one about no matching property for debug. I don't know what's causing that, but perhaps it's the relevant clue. Here's my catalina.<date-time>.log file, showing restart and attempt to access manager app.

Mar 19, 2008 11:57:57 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 19, 2008 11:57:57 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Mar 19, 2008 11:58:00 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '99' did not find a matching property.
Mar 19, 2008 11:58:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ActivIdentity\ActivClient Mini\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.0\bin
Mar 19, 2008 11:58:00 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 19, 2008 11:58:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 491 ms
Mar 19, 2008 11:58:00 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 19, 2008 11:58:00 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Mar 19, 2008 11:58:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 19, 2008 11:58:01 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 19, 2008 11:58:01 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Mar 19, 2008 11:58:01 PM org.apache.catalina.startup.Catalina start

I have manager app directly under ${catalina.home}\webapps. Is that correct?

-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