I've been setting up tomcat5 with great success and have a couple of webapps working.
Next I thought I'll put the manager application in place and after a few difficulties with the UserDatabase finally got it configured with a memory Realm as discussed in the documentation for the manager app.
Ok, so all was working yesterday. Now I get an IOException about writing to a file I don't have! Bizaarly tomcat wants a file called tomcat-users.xml.new when I use tomcat-users.xml? What is that about?
exception, server.xml, and manager.xml (context) are below.
<!-- Global JNDI resources --> <GlobalNamingResources>
<!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved"> </Resource> <ResourceParams name="UserDatabase"> <parameter> <name>factory</name> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams>
</GlobalNamingResources>
<Service name="Local">
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />
--------------------------------------------------------------------- To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)