Markus Schönhaber wrote:
Tom Robinson wrote:

You missed my other post to Chuck:

Currently I have CATALINA_HOME=/usr/share/tomcat5 and:

lrwxrwxrwx 1 root root 12 Jan 17 01:59 /usr/share/tomcat5/conf ->
/etc/tomcat5
drwxrwxr-x  4 root tomcat4 4096 Feb 16 15:06 /etc/tomcat5

I did indeed miss that, sorry.

Sorry, 'my bad': tomcat 5.0.30. In which case, as you say, readonly won't
help! Also on CentOS4.4

I tried to put the tomcat-users.xml elsewhere:

drwxrwxrwx  2 tomcat4 tomcat4 4096 Feb 16 17:05 /tmptmp
-rw-r--r--  1 tomcat4 tomcat4 193 Feb 16 17:00 tomcat-users.xml

tomcat still balks on startup:

Created MBeanServer with ID:
116471f:110cb83aa97:-8000:---8<---fqdn---8<---:1 16-Feb-2007 17:05:09
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
16-Feb-2007 17:05:09 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1074 ms
16-Feb-2007 17:05:09 org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: IOException writing to /tmptmp/tomcat-users.xml.new
         at
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:4

Strange. You might want to do as Chuck suggested and try a clean install. Are you using a Tomcat package provided bei CentOS? Then I'd try one available from tomcat.apache.org. And if there's no need for you to stick with 5.0 you could even get 5.5.x.

I'm using an rpm from jpackage but I may opt for a fresh install. It works fine for our own apps and the manager was working...

Just a WAG: maybe it's not really a permisson problem but the tomcat-users.xml that is somehow corrupt. If you post it's content here, we can take a look and see if we spot something obviously wrong.
Yes, it's far fetched, but I'm out of ideas.

Since I'm all out of ideas myself:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="manager" password="secret" roles="manager,admin"/>
</tomcat-users>

Cheers,

t.

---------------------------------------------------------------------
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