You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Souther <bs...@fwdco.com> on 2004/06/09 14:08:27 UTC
Re: error starting tomcat
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
> tomcat5.
>
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
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, distribution or
copying 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: error starting tomcat
Posted by David Smith <dn...@cornell.edu>.
There's probably a reference to it or a reference to a symlink in your
server.xml's <GlobalNamingResources>...</GlobalNamingResources>
section. Tomcat5 should own this file or be a member of a group that
owns it and has read access to it.
--David
Werner van Mook wrote:
> 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
>>> tomcat5.
>>>
>>> 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: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>> --
>> 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, distribution or
>> copying 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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
> Werner van Mook
> Java Lead Developer / Trainer
> Connecties Voor Internet BV i.o.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: error starting tomcat
Posted by Werner van Mook <we...@connecties.com>.
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
>> tomcat5.
>>
>> 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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> --
> 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, distribution or
> copying 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet BV i.o.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org