Somehow it seems to delete the newly created file.
I've also tried to make the normal tomcat-user.xml file tomcat5 accessable.
It changes it back to root : root Don't when, dont' know why....
On Jun 9, 2004, at 3:41 PM, Benjamin Armintor wrote:
Have you tried copying conf/tomcat-users.xml to
conf/tomcat-users.xml.new to see if that fixes the problem? The log
seems pretty straightforward. If creating the desired file fixes things,
then you can just grep for "conf/tomcat-users.xml.new" to find the
configuration issue.
Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED]
-----Original Message----- From: Werner van Mook [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:36 AM To: Tomcat Users List Subject: Re: error starting tomcat
It is not complaining about the port number.
I've seen the error if your not root. It's not the same. Starting tomcat
manual as root gives me the same error.
Sorry wrong answer ;-)
On Jun 9, 2004, at 2:08 PM, Ben Souther wrote:
You need to be root when you start tomcat in order to bind to port 80 (or any port < 1024). The jsvc will then lower it's user status to tomcat_user ( or whatever user you have configured).
On Wednesday 09 June 2004 08:10 am, Werner van Mook wrote:Hi,
I have the following error starting tomcat and don't know how to solve it.
Jun 9, 2004 2:09:24 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Jun 9, 2004 2:09:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3461 ms Jun 9, 2004 2:09:25 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/local/tomcat/conf/tomcat-users.xml.new (Permission denied)
I have the standard server.xml file. But then removed lots of the comments. User authentication is defined as :
<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>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/>
I don't know where : /usr/local/tomcat/conf/tomcat-users.xml.new is
defined.
I'm using redhat fedore core 1, java 1.4.2_04
the tomcat-users.xml file is owned by root : root
Tomcat is started at boot time by using jsvc where the tomcat user is
ortomcat5.
Can one of you tell me what's wrong?
Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ben Souther F.W. Davison & Company, Inc.
This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distributioncopying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
