You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kimberly Begley <ki...@gmail.com> on 2008/02/20 04:40:40 UTC

not reading my /etc/tomcat5/tomcat5.conf file

Hi,
I'm running CentOS 5 with Tomcat5 (5.5.2.0) that came with the install.
If I try to run dtomcat5 stop or version etc I get the following message
below - I have also pasted the tomcat5.conf file below- it is obvious that
dtomcat5 is not reading the /etc/tomcat5/tomcat5.conf file - what do I have
wrong? Am I going about starting/stopping/getting versions for tomcat the
wrong way? Any suggestions?
Thanks

[root@localhost conf]# dtomcat5 stop
Found JAVA_HOME: /usr/lib/java
Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for
it next time
Using CATALINA_BASE:   /usr
Using CATALINA_HOME:   /usr
Using CATALINA_TMPDIR: /usr/temp
Using JRE_HOME:
/usr/bin/dtomcat5: line 347: /usr/lib/java/bin/java: No such file or
directory
[root@localhost conf]# dtomcat5 version
Found JAVA_HOME: /usr/lib/java
Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for
it next time
Using CATALINA_BASE:   /usr
Using CATALINA_HOME:   /usr
Using CATALINA_TMPDIR: /usr/temp
Using JRE_HOME:
/usr/bin/dtomcat5: line 366: /usr/lib/java/bin/java: No such file or
directory
[root@localhost conf]#

I have updated the /etc/tomcat5/tomcat5.conf file to read as follows:

# tomcat5 service configuration file

# you could also override JAVA_HOME here
# Where your java installation lives
JAVA_HOME="/usr/bin/java"

# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/usr/share/tomcat5"
JASPER_HOME="/usr/share/tomcat5"
CATALINA_TMPDIR="/usr/share/tomcat5/temp"
JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed"

# You can pass some parameters to java
# here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"

# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib

# Bug 190:
# https://www.jpackage.org/bugzilla/show_bug.cgi?id=190
# System property catalina.ext.dirs should be set to its default value
# for ExtensionValidator to be functional.
JAVA_OPTS="$JAVA_OPTS -
Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HO
ME/common/lib"

# What user should run tomcat
TOMCAT_USER="tomcat"

# You can change your tomcat locale here
#LANG=en_US

# Time to wait in seconds, before killing process
SHUTDOWN_WAIT=30

# Set the TOMCAT_PID location
CATALINA_PID=/var/run/tomcat5.pid

# Connector port is 8080 for this tomcat5 instance
#CONNECTOR_PORT=8080

# If you wish to further customize your tomcat environment,
# put your own definitions here

--

Re: not reading my /etc/tomcat5/tomcat5.conf file

Posted by Kimberly Begley <ki...@gmail.com>.
Thanks - I did as you suggested and have a new Tomcat5 and JVM running -
without any problems so far!
Thanks so much,
Kimberly

On Thu, Feb 21, 2008 at 10:57 AM, Philip Cote <co...@cox.net> wrote:

> I concur that that's the easiest way to do this.  However, if you MUST
> work with 3rd party repackaged tomcat (or 3rd party repackaged distro
> versions of anything for that matter), the Cent OS forums would probably
> be the best place to ask.
>
> On Tue, 2008-02-19 at 21:46 -0600, Caldarale, Charles R wrote:
> > > From: Kimberly Begley [mailto:kimberly.lewis@gmail.com]
> > > Subject: not reading my /etc/tomcat5/tomcat5.conf file
> > >
> > > I'm running CentOS 5 with Tomcat5 (5.5.2.0) that came with
> > > the install.
> >
> > I'd strongly recommend you throw that away and download and install a
> > real Tomcat from http://tomcat.apache.org.  The 3rd-party repackaged
> > versions give no end of headaches.
> >
> > You may also need to install a real JVM; some of the Linux distributions
> > come with GNU Java, and that is not suitable for any real work.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Kimberly Begley

RE: not reading my /etc/tomcat5/tomcat5.conf file

Posted by Philip Cote <co...@cox.net>.
I concur that that's the easiest way to do this.  However, if you MUST
work with 3rd party repackaged tomcat (or 3rd party repackaged distro
versions of anything for that matter), the Cent OS forums would probably
be the best place to ask.

On Tue, 2008-02-19 at 21:46 -0600, Caldarale, Charles R wrote:
> > From: Kimberly Begley [mailto:kimberly.lewis@gmail.com] 
> > Subject: not reading my /etc/tomcat5/tomcat5.conf file
> > 
> > I'm running CentOS 5 with Tomcat5 (5.5.2.0) that came with 
> > the install.
> 
> I'd strongly recommend you throw that away and download and install a
> real Tomcat from http://tomcat.apache.org.  The 3rd-party repackaged
> versions give no end of headaches.
> 
> You may also need to install a real JVM; some of the Linux distributions
> come with GNU Java, and that is not suitable for any real work.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: not reading my /etc/tomcat5/tomcat5.conf file

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Kimberly Begley [mailto:kimberly.lewis@gmail.com] 
> Subject: not reading my /etc/tomcat5/tomcat5.conf file
> 
> I'm running CentOS 5 with Tomcat5 (5.5.2.0) that came with 
> the install.

I'd strongly recommend you throw that away and download and install a
real Tomcat from http://tomcat.apache.org.  The 3rd-party repackaged
versions give no end of headaches.

You may also need to install a real JVM; some of the Linux distributions
come with GNU Java, and that is not suitable for any real work.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org