You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by testwreq wreq <te...@gmail.com> on 2010/03/10 19:54:04 UTC

How do I set up and run Tomcat 5.5.23 on Cetos5.3

Hello, I do not know much on setting up tomcat on linux. I am new to both.

However, I ran yum install tomcat5 to install tomcat from centos5 built. I
could see the version with the below command.

# /etc/init.d/tomcat5 version
Server version: Apache Tomcat/5.5.23
Server built:   Jul 27 2009 05:23:29
Server number:  5.5.23.0
OS Name:        Linux
OS Version:     2.6.18-128.1.10.el5
Architecture:   i386
JVM Version:    1.6.0-b09
JVM Vendor:     Sun Microsystems Inc.
I need help to proceed further. Please guide me how to set-up TOMCAT on
centos5?  The base installation, I think is located in /user/share/tomcat5
and I see java in /usr/bin/jvm

Please help.

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> I cannot bring up the tomcat page http://serverhost:8005

As David K pointed out, you shouldn't be able to.

> The file is showing Server port="8005" and  <Connector port="8080'>

8005 is the shutdown port, accessible only from 127.0.0.1, so it doesn't need to be made available from outside.  Port 8080 is the one that handles HTTP requests, as a brief review of the doc or even the comments in server.xml would tell you.

http://tomcat.apache.org/tomcat-5.5-doc/config/index.html

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
i am sorry, it is tomcat5.conf
JAVA_HOME="/usr/lib/jvm/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"



On Mon, Mar 15, 2010 at 9:17 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > In server.xml file, the tomcat_home which is probably called
> > catlina_home is set to the root of where tomcat is installed.
>
> Please elaborate on that statement; server.xml can't set tomcat_home or
> catalina_home to anything - if they exist at all, such environment variables
> must be established before being used in server.xml.
>
> > This is why tomcat runs from /usr/share/tomcat5.
> > There is one BIN directory in this folder and other symlinks as below.
>
> I really, really hate these 3rd-party distributions that scatter files all
> over the place and then attempt to put things back together with symlinks;
> this adds nothing but confusion.
>
> > Where in the installation should be tomcat index file located?
>
> There's no "tomcat [sic] index file"; there can be a welcome file for each
> deployed webapp, and the default webapp must be named ROOT (case sensitive).
>
> In a standard Tomcat distribution, the default application is located in
> the ROOT directory under the <Host> appBase directory; so there should be
> the following under /var/lib/tomcat5/webapps:
>
> ROOT/
>  index.jsp
>  WEB-INF/
>    web.xml
>    lib/
>      catalina-root.jar
>
> Since you're running a 3rd-party Tomcat, you'll need to get support from
> whoever packaged it - or install a real Tomcat from tomcat.apache.org so
> we can provide better help for you.
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> In server.xml file, the tomcat_home which is probably called
> catlina_home is set to the root of where tomcat is installed.

Please elaborate on that statement; server.xml can't set tomcat_home or catalina_home to anything - if they exist at all, such environment variables must be established before being used in server.xml.

> This is why tomcat runs from /usr/share/tomcat5.
> There is one BIN directory in this folder and other symlinks as below.

I really, really hate these 3rd-party distributions that scatter files all over the place and then attempt to put things back together with symlinks; this adds nothing but confusion.

> Where in the installation should be tomcat index file located?

There's no "tomcat [sic] index file"; there can be a welcome file for each deployed webapp, and the default webapp must be named ROOT (case sensitive).

In a standard Tomcat distribution, the default application is located in the ROOT directory under the <Host> appBase directory; so there should be the following under /var/lib/tomcat5/webapps:

ROOT/
  index.jsp
  WEB-INF/
    web.xml
    lib/
      catalina-root.jar

Since you're running a 3rd-party Tomcat, you'll need to get support from whoever packaged it - or install a real Tomcat from tomcat.apache.org so we can provide better help for you.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
In server.xml file, the tomcat_home which is probably called catlina_home is
set to the root of where tomcat is installed. i.e. /usr/share/tomcat5 ; This
is why tomcat runs from /usr/share/tomcat5.
There is one BIN directory in this folder and other symlinks as below. Where
in the installation should be tomcat index file located?
drwxr-xr-x 2 tomcat root 4096 Mar 10 09:27 bin
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 common -> /var/lib/tomcat5/common
lrwxrwxrwx 1 tomcat root   12 Mar 10 09:27 conf -> /etc/tomcat5
lrwxrwxrwx 1 tomcat root   16 Mar 10 09:27 logs -> /var/log/tomcat5
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 server -> /var/lib/tomcat5/server
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 shared -> /var/lib/tomcat5/shared
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 temp -> /var/cache/tomcat5/temp
lrwxrwxrwx 1 tomcat root   24 Mar 10 09:27 webapps ->
/var/lib/tomcat5/webapps
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 work -> /var/cache/tomcat5/work

Thanks,vm
On Mon, Mar 15, 2010 at 8:46 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > /var/lib/tomcat5/webapps is empty.
>
> Which could be why you get a blank page.  However, your ps output shows
> Tomcat running from /usr/share/tomcat5, not /var/lib/tomcat5; are they
> symlinked together?  If not, why do you think /var/lib/tomcat5 is important?
>
> The applications distributed with Tomcat are normally under the <Host>
> appBase directory; since you're using a mangled 3rd-party distribution of
> Tomcat, they may have been removed, or located somewhere else - in which
> case you'll need help from whoever mangled the distribution.  If you use a
> standard Tomcat distribution from tomcat.apache.org, we could provide more
> and better help.
>
> The Tomcat startup script you're using also adds a lot of junk to the
> initial classpath - that's another potential problem.  Make sure you do not
> have the CLASSPATH variable set when starting Tomcat.
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> /var/lib/tomcat5/webapps is empty.

Which could be why you get a blank page.  However, your ps output shows Tomcat running from /usr/share/tomcat5, not /var/lib/tomcat5; are they symlinked together?  If not, why do you think /var/lib/tomcat5 is important?

The applications distributed with Tomcat are normally under the <Host> appBase directory; since you're using a mangled 3rd-party distribution of Tomcat, they may have been removed, or located somewhere else - in which case you'll need help from whoever mangled the distribution.  If you use a standard Tomcat distribution from tomcat.apache.org, we could provide more and better help.

The Tomcat startup script you're using also adds a lot of junk to the initial classpath - that's another potential problem.  Make sure you do not have the CLASSPATH variable set when starting Tomcat.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
Shows a blank page. I was expecting some sort of tomcat/apache page.
/var/lib/tomcat5/webapps is empty. where is tomcat index file located?

On Fri, Mar 12, 2010 at 1:27 PM, David kerber <dc...@verizon.net> wrote:

> testwreq wreq wrote:
>
>> I cannot bring up the tomcat page http://serverhost:8005
>>
>
> Try it on 8080; it's the connector that you want to connect to.
>
>
> D
>
>
>
>> there are no errors logged in the /var/log/tomcat5 ; The server.xml file
>> has
>> The file is showing Server port="8005" and  <Connector port="8080'>
>>
>> I know in firewall port 8005 is open. what is the connector port? Could it
>> have something with page not showing?
>>
>> On Wed, Mar 10, 2010 at 4:52 PM, André Warnier <aw...@ice-sa.com> wrote:
>>
>> Caldarale, Charles R wrote:
>>>
>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>>>
>>>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>>>
>>>>> 1/I already have apache running on port 80. If I start the tomcat
>>>>> service, I think it will probably start on port 80 as well.
>>>>>
>>>>> The standard Tomcat downloads are configured to use port 8080 by
>>>> default;
>>>> what your version has isn't known, so you'll have to look in Tomcat's
>>>> conf/server.xml file.
>>>>
>>>> 2/ I have setup the following environment variables
>>>>
>>>>> JAVA_HOME=/usr/lib/jvm/java
>>>>>
>>>>> Good.
>>>>
>>>> CATALINA_HOME = /usr/share/tomcat5
>>>> You probably don't need that; the standard Tomcat startup scripts
>>>> determine what the value should be.  However, since you're not using a
>>>> standard Tomcat, it's hard to tell.
>>>>
>>>> PATH=$PATH:$JAVA_HOME/bin
>>>> Good.
>>>>
>>>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>>>> variable (for any Java application).
>>>>
>>>> 4/ Is there anything else that should be done to setup tomcat?
>>>> Go through the server.xml file and see if there's anything you need to
>>>> change.  Read the Tomcat docs for more information.
>>>>
>>>>
>>>> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>>>
>>> Testwreq,
>>>
>>> The "standard Tomcat" is the one which you get and download from
>>> http://tomcat.apache.org.
>>> That is the current version, and the one everyone here knows and loves,
>>> because for that one, everyone knows where the files are, what the
>>> standard
>>> settings are, and so on.
>>> But is not a "package" that fits with the "package manager" software of
>>> any
>>> particular Unix/Linux version.
>>>
>>> And then there are many "pre-packaged Tomcats", which vary depending on
>>> which Unix/Linux type or distribution they are made for, and by whom,
>>> from
>>> which (generally older) version of the standard Tomcat.
>>> For reasons mostly good but sometimes bad, these packages tend to vary
>>> from
>>> the original and between them, as to which locations they install the
>>> files
>>> in, which links to what they also set up, which settings they set by
>>> default, which ports they use, under which user they are started, how
>>> they
>>> are started, etc..
>>>
>>> Unfortunately, the people here do not know all these versions, so our
>>> capacity to help is limited, except to provide general principles and
>>> direct
>>> you to the standard documentation.
>>>
>>> So if you are having problems with a particular packaged version of
>>> Tomcat
>>> (like you are using), the best place to ask for help first is probably
>>> the
>>> help desk or help list of your particular Unix/Linux version.
>>> Then once this packaged Tomcat is running, if you are having problem
>>> /using/ it, maybe we can help better.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
Hello Andrea,

[root@webtest tomcat5]# netstat -anp|grep LISTEN|grep 6980
tcp        0      0 ::ffff:127.0.0.1:8005       :::*
LISTEN      6980/java
tcp        0      0 :::8009                     :::*
LISTEN      6980/java
tcp        0      0 :::8080                     :::*
LISTEN      6980/java
[root@webtest tomcat5]# ps -ef|grep 6980
tomcat    6980     1  0 Mar12 ?        00:00:02 /usr/lib/jvm/java/bin/java
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
-Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5
-Djava.io.tmpdir=/usr/share/tomcat5/temp
org.apache.catalina.startup.Bootstrap start
root     30570  4896  0 08:59 pts/2    00:00:00 grep 6980
SERVER.XML
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
  <GlobalNamingResources>
 <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
       <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
 <Service name="Catalina">
 <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
 <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
 <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
 <Engine name="Catalina" defaultHost="localhost">
 <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

 <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
  </Host>
    </Engine>
  </Service>
</Server>
Will appreciate if you could help. On my server http://hostname:8080 shows a
blank page. I was expecting a apache tomcat page. What could it be?

regards,
vm
===========END ==========
On Fri, Mar 12, 2010 at 3:55 PM, André Warnier <aw...@ice-sa.com> wrote:

> testwreq wreq wrote:
>
>> I see 8080 running as follows:
>> tcp        0      0 :::8080                     :::*
>> LISTEN      6980/java
>>
>> Ok, that /might/ be Tomcat, and it /might/ be the Tomcat we are talking
> about.  But it is not sure yet, because it seems that there may be more
> running on that system than you (and us) know about.
>
> teswreq,
> I am going to try to help you, but you have to follow the steps and do what
> you are told, ok ?
>
> First, enter this command :
>
> netstat -anp | grep LISTEN | grep 6980
>
> you should see the same line as above, and a couple of additional ones.
> Paste these lines here, in your next message.
>
> Then, enter this :
>
> ps -ef | grep 6980
>
> and also paste the result here.
>
> Then, navigate to the "conf" directory of Tomcat (we do not know where the
> CentOS Tomcat package puts that one, so you have to find it yourself).  In
> that directory, is a file "server.xml".
> Make a copy of that file, and edit that copy.
> Remove all the XML comments from it. (Those are text sections between
> "<!--" and "-->" sequences), and also paste the rest here.
>
> Then, we might see things a bit more clearly.
>
> Then, while we are looking at that, get yourself an add-on for your
> browser, that we will use later to show what exactly is going on between the
> browser and the server.  If you are using Firefox (recommended), get the
> HttpFox add-on for example.  If you are using IE, get Fiddler2.  You can
> find these things in Google, or in the "add-ons/plugins" menu of the
> browser.
>
>
> So, off you go.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by André Warnier <aw...@ice-sa.com>.
testwreq wreq wrote:
> I see 8080 running as follows:
> tcp        0      0 :::8080                     :::*
> LISTEN      6980/java
> 
Ok, that /might/ be Tomcat, and it /might/ be the Tomcat we are talking 
about.  But it is not sure yet, because it seems that there may be more 
running on that system than you (and us) know about.

teswreq,
I am going to try to help you, but you have to follow the steps and do 
what you are told, ok ?

First, enter this command :

netstat -anp | grep LISTEN | grep 6980

you should see the same line as above, and a couple of additional ones.
Paste these lines here, in your next message.

Then, enter this :

ps -ef | grep 6980

and also paste the result here.

Then, navigate to the "conf" directory of Tomcat (we do not know where 
the CentOS Tomcat package puts that one, so you have to find it 
yourself).  In that directory, is a file "server.xml".
Make a copy of that file, and edit that copy.
Remove all the XML comments from it. (Those are text sections between 
"<!--" and "-->" sequences), and also paste the rest here.

Then, we might see things a bit more clearly.

Then, while we are looking at that, get yourself an add-on for your 
browser, that we will use later to show what exactly is going on between 
the browser and the server.  If you are using Firefox (recommended), get 
the HttpFox add-on for example.  If you are using IE, get Fiddler2.  You 
can find these things in Google, or in the "add-ons/plugins" menu of the 
browser.


So, off you go.


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


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
I see 8080 running as follows:
tcp        0      0 :::8080                     :::*
LISTEN      6980/java

On Fri, Mar 12, 2010 at 2:27 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>
> > netstat -ano showed the following for 8080
>
> Sorry, I should have said netstat -anp (-ano is for Windows).  The -p
> option will display the pid numbers, which should be quite interesting.
>
> > tcp        0      0 ::ffff:127.0.0.1:8005       :::* LISTEN
>
> The above is the shutdown port.
>
> > tcp        0      0 :::8009                     :::* LISTEN
>
> That's the AJP port, which you're likely not using.
>
> > tcp        0      0 :::8080                     :::* LISTEN
>
> That should be Tomcat, but without the pid number, we can't be certain.
>
> > tcp        0      0 :::80                       :::* LISTEN
>
> That says you've got a web server running as well as Tomcat.
>
> > tcp        0      0 :::8081                     :::* LISTEN
>
> Now who is that on 8081?
>
> > tcp        0      0 :::443                      :::* LISTEN
>
> The HTTPS port, most likely from the same process that's listening on 80.
>
> > tcp        0      0 :::8443                     :::* LISTEN
>
> That's a commonly used port for Tomcat HTTPS traffic.
>
> > tcp        0      0 ::ffff:123.9.10:8080   ::ffff:130.245.9.106:46028TIME_WAIT
> > tcp        0      0 ::ffff:130.123.9.10:8080 ::ffff:130.123.9.10:46029TIME_WAIT
> > tcp        0      0 ::ffff:130.123.9.10:8080 ::ffff:130.123.9.10:57590TIME_WAIT
>
> That shows connections have been made at some point to whatever is
> listening on 8080.
>
> Looks to me like you've got more things running on this box than you're
> aware of, quite possibly including another copy of Tomcat - not the one you
> think you're using.  Until you determine what's really going on in this box,
> there's not much anyone can do to help you.
>
> Run the netstat -anp so we can look at pid numbers, and post your entire
> server.xml.
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

> netstat -ano showed the following for 8080

Sorry, I should have said netstat -anp (-ano is for Windows).  The -p option will display the pid numbers, which should be quite interesting.

> tcp        0      0 ::ffff:127.0.0.1:8005       :::* LISTEN

The above is the shutdown port.

> tcp        0      0 :::8009                     :::* LISTEN

That's the AJP port, which you're likely not using.

> tcp        0      0 :::8080                     :::* LISTEN

That should be Tomcat, but without the pid number, we can't be certain.

> tcp        0      0 :::80                       :::* LISTEN

That says you've got a web server running as well as Tomcat.

> tcp        0      0 :::8081                     :::* LISTEN

Now who is that on 8081?

> tcp        0      0 :::443                      :::* LISTEN

The HTTPS port, most likely from the same process that's listening on 80.

> tcp        0      0 :::8443                     :::* LISTEN

That's a commonly used port for Tomcat HTTPS traffic.

> tcp        0      0 ::ffff:123.9.10:8080   ::ffff:130.245.9.106:46028 TIME_WAIT
> tcp        0      0 ::ffff:130.123.9.10:8080 ::ffff:130.123.9.10:46029 TIME_WAIT
> tcp        0      0 ::ffff:130.123.9.10:8080 ::ffff:130.123.9.10:57590 TIME_WAIT

That shows connections have been made at some point to whatever is listening on 8080.

Looks to me like you've got more things running on this box than you're aware of, quite possibly including another copy of Tomcat - not the one you think you're using.  Until you determine what's really going on in this box, there's not much anyone can do to help you.

Run the netstat -anp so we can look at pid numbers, and post your entire server.xml.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
Thanks a lot. netstat -ano showed the following for 8080
tcp        0      0 ::ffff:127.0.0.1:8005       :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::8009                     :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::8080                     :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::80                       :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::8081                     :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::22                       :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::443                      :::*
LISTEN      off (0.00/0/0)
tcp        0      0 :::8443                     :::*
LISTEN      off (0.00/0/0)
tcp        0      0 ::ffff:123.9.10:8080   ::ffff:130.245.9.106:46028
TIME_WAIT   timewait (1.86/0/0)
tcp        0    288 ::ffff:130.123.9.10:22     ::ffff:130.123.9.10:49423
ESTABLISHED on (0.28/0/0)
tcp        0      0 ::ffff:130.123.9.10:8080   ::ffff:130.123.9.10:46029
TIME_WAIT   timewait (1.95/0/0)
tcp        0      0 ::ffff:130.123.9.10:8080   ::ffff:130.123.9.10:57590
TIME_WAIT   timewait (31.94/0/0)

therefore, I tried accessing http://serverhostname:8080 from the server
itself, and it displays a blank page. Maybe the department firewal is
blocking the access from other nets.

How can I get to the tomcat home page, instead of it showing me a blank
page?

thanks again.



On Fri, Mar 12, 2010 at 1:48 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > 8080 does not work either. And, there are no logs generated.
>
> Firewall?  Do a netstat -ano and verify that Tomcat is listening on 8080.
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> 8080 does not work either. And, there are no logs generated.

Firewall?  Do a netstat -ano and verify that Tomcat is listening on 8080.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
8080 does not work either. And, there are no logs generated.

On Fri, Mar 12, 2010 at 1:27 PM, David kerber <dc...@verizon.net> wrote:

> testwreq wreq wrote:
>
>> I cannot bring up the tomcat page http://serverhost:8005
>>
>
> Try it on 8080; it's the connector that you want to connect to.
>
>
> D
>
>
>
>> there are no errors logged in the /var/log/tomcat5 ; The server.xml file
>> has
>> The file is showing Server port="8005" and  <Connector port="8080'>
>>
>> I know in firewall port 8005 is open. what is the connector port? Could it
>> have something with page not showing?
>>
>> On Wed, Mar 10, 2010 at 4:52 PM, André Warnier <aw...@ice-sa.com> wrote:
>>
>> Caldarale, Charles R wrote:
>>>
>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>>>
>>>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>>>
>>>>> 1/I already have apache running on port 80. If I start the tomcat
>>>>> service, I think it will probably start on port 80 as well.
>>>>>
>>>>> The standard Tomcat downloads are configured to use port 8080 by
>>>> default;
>>>> what your version has isn't known, so you'll have to look in Tomcat's
>>>> conf/server.xml file.
>>>>
>>>> 2/ I have setup the following environment variables
>>>>
>>>>> JAVA_HOME=/usr/lib/jvm/java
>>>>>
>>>>> Good.
>>>>
>>>> CATALINA_HOME = /usr/share/tomcat5
>>>> You probably don't need that; the standard Tomcat startup scripts
>>>> determine what the value should be.  However, since you're not using a
>>>> standard Tomcat, it's hard to tell.
>>>>
>>>> PATH=$PATH:$JAVA_HOME/bin
>>>> Good.
>>>>
>>>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>>>> variable (for any Java application).
>>>>
>>>> 4/ Is there anything else that should be done to setup tomcat?
>>>> Go through the server.xml file and see if there's anything you need to
>>>> change.  Read the Tomcat docs for more information.
>>>>
>>>>
>>>> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>>>
>>> Testwreq,
>>>
>>> The "standard Tomcat" is the one which you get and download from
>>> http://tomcat.apache.org.
>>> That is the current version, and the one everyone here knows and loves,
>>> because for that one, everyone knows where the files are, what the
>>> standard
>>> settings are, and so on.
>>> But is not a "package" that fits with the "package manager" software of
>>> any
>>> particular Unix/Linux version.
>>>
>>> And then there are many "pre-packaged Tomcats", which vary depending on
>>> which Unix/Linux type or distribution they are made for, and by whom,
>>> from
>>> which (generally older) version of the standard Tomcat.
>>> For reasons mostly good but sometimes bad, these packages tend to vary
>>> from
>>> the original and between them, as to which locations they install the
>>> files
>>> in, which links to what they also set up, which settings they set by
>>> default, which ports they use, under which user they are started, how
>>> they
>>> are started, etc..
>>>
>>> Unfortunately, the people here do not know all these versions, so our
>>> capacity to help is limited, except to provide general principles and
>>> direct
>>> you to the standard documentation.
>>>
>>> So if you are having problems with a particular packaged version of
>>> Tomcat
>>> (like you are using), the best place to ask for help first is probably
>>> the
>>> help desk or help list of your particular Unix/Linux version.
>>> Then once this packaged Tomcat is running, if you are having problem
>>> /using/ it, maybe we can help better.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by David kerber <dc...@verizon.net>.
testwreq wreq wrote:
> I cannot bring up the tomcat page http://serverhost:8005

Try it on 8080; it's the connector that you want to connect to.

D


> 
> there are no errors logged in the /var/log/tomcat5 ; The server.xml file has
> The file is showing Server port="8005" and  <Connector port="8080'>
> 
> I know in firewall port 8005 is open. what is the connector port? Could it
> have something with page not showing?
> 
> On Wed, Mar 10, 2010 at 4:52 PM, André Warnier <aw...@ice-sa.com> wrote:
> 
>> Caldarale, Charles R wrote:
>>
>>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>>
>>>> 1/I already have apache running on port 80. If I start the tomcat
>>>> service, I think it will probably start on port 80 as well.
>>>>
>>> The standard Tomcat downloads are configured to use port 8080 by default;
>>> what your version has isn't known, so you'll have to look in Tomcat's
>>> conf/server.xml file.
>>>
>>> 2/ I have setup the following environment variables
>>>> JAVA_HOME=/usr/lib/jvm/java
>>>>
>>> Good.
>>>
>>> CATALINA_HOME = /usr/share/tomcat5
>>> You probably don't need that; the standard Tomcat startup scripts
>>> determine what the value should be.  However, since you're not using a
>>> standard Tomcat, it's hard to tell.
>>>
>>> PATH=$PATH:$JAVA_HOME/bin
>>> Good.
>>>
>>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>>> variable (for any Java application).
>>>
>>> 4/ Is there anything else that should be done to setup tomcat?
>>> Go through the server.xml file and see if there's anything you need to
>>> change.  Read the Tomcat docs for more information.
>>>
>>>
>> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>>
>> Testwreq,
>>
>> The "standard Tomcat" is the one which you get and download from
>> http://tomcat.apache.org.
>> That is the current version, and the one everyone here knows and loves,
>> because for that one, everyone knows where the files are, what the standard
>> settings are, and so on.
>> But is not a "package" that fits with the "package manager" software of any
>> particular Unix/Linux version.
>>
>> And then there are many "pre-packaged Tomcats", which vary depending on
>> which Unix/Linux type or distribution they are made for, and by whom, from
>> which (generally older) version of the standard Tomcat.
>> For reasons mostly good but sometimes bad, these packages tend to vary from
>> the original and between them, as to which locations they install the files
>> in, which links to what they also set up, which settings they set by
>> default, which ports they use, under which user they are started, how they
>> are started, etc..
>>
>> Unfortunately, the people here do not know all these versions, so our
>> capacity to help is limited, except to provide general principles and direct
>> you to the standard documentation.
>>
>> So if you are having problems with a particular packaged version of Tomcat
>> (like you are using), the best place to ask for help first is probably the
>> help desk or help list of your particular Unix/Linux version.
>> Then once this packaged Tomcat is running, if you are having problem
>> /using/ it, maybe we can help better.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


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


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
I cannot bring up the tomcat page http://serverhost:8005

there are no errors logged in the /var/log/tomcat5 ; The server.xml file has
The file is showing Server port="8005" and  <Connector port="8080'>

I know in firewall port 8005 is open. what is the connector port? Could it
have something with page not showing?

On Wed, Mar 10, 2010 at 4:52 PM, André Warnier <aw...@ice-sa.com> wrote:

> Caldarale, Charles R wrote:
>
>> From: testwreq wreq [mailto:testwreq@gmail.com]
>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>
>>> 1/I already have apache running on port 80. If I start the tomcat
>>> service, I think it will probably start on port 80 as well.
>>>
>>
>> The standard Tomcat downloads are configured to use port 8080 by default;
>> what your version has isn't known, so you'll have to look in Tomcat's
>> conf/server.xml file.
>>
>> 2/ I have setup the following environment variables
>>> JAVA_HOME=/usr/lib/jvm/java
>>>
>>
>> Good.
>>
>> CATALINA_HOME = /usr/share/tomcat5
>>>
>>
>> You probably don't need that; the standard Tomcat startup scripts
>> determine what the value should be.  However, since you're not using a
>> standard Tomcat, it's hard to tell.
>>
>> PATH=$PATH:$JAVA_HOME/bin
>>>
>>
>> Good.
>>
>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>
>>
>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>> variable (for any Java application).
>>
>> 4/ Is there anything else that should be done to setup tomcat?
>>>
>>
>> Go through the server.xml file and see if there's anything you need to
>> change.  Read the Tomcat docs for more information.
>>
>>
> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>
> Testwreq,
>
> The "standard Tomcat" is the one which you get and download from
> http://tomcat.apache.org.
> That is the current version, and the one everyone here knows and loves,
> because for that one, everyone knows where the files are, what the standard
> settings are, and so on.
> But is not a "package" that fits with the "package manager" software of any
> particular Unix/Linux version.
>
> And then there are many "pre-packaged Tomcats", which vary depending on
> which Unix/Linux type or distribution they are made for, and by whom, from
> which (generally older) version of the standard Tomcat.
> For reasons mostly good but sometimes bad, these packages tend to vary from
> the original and between them, as to which locations they install the files
> in, which links to what they also set up, which settings they set by
> default, which ports they use, under which user they are started, how they
> are started, etc..
>
> Unfortunately, the people here do not know all these versions, so our
> capacity to help is limited, except to provide general principles and direct
> you to the standard documentation.
>
> So if you are having problems with a particular packaged version of Tomcat
> (like you are using), the best place to ask for help first is probably the
> help desk or help list of your particular Unix/Linux version.
> Then once this packaged Tomcat is running, if you are having problem
> /using/ it, maybe we can help better.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by André Warnier <aw...@ice-sa.com>.
Caldarale, Charles R wrote:
>> From: testwreq wreq [mailto:testwreq@gmail.com]
>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>
>> 1/I already have apache running on port 80. If I start the tomcat
>> service, I think it will probably start on port 80 as well.
> 
> The standard Tomcat downloads are configured to use port 8080 by default; what your version has isn't known, so you'll have to look in Tomcat's conf/server.xml file.
> 
>> 2/ I have setup the following environment variables
>> JAVA_HOME=/usr/lib/jvm/java
> 
> Good.
> 
>> CATALINA_HOME = /usr/share/tomcat5
> 
> You probably don't need that; the standard Tomcat startup scripts determine what the value should be.  However, since you're not using a standard Tomcat, it's hard to tell.
> 
>> PATH=$PATH:$JAVA_HOME/bin
> 
> Good.
> 
>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
> 
> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment variable (for any Java application).
> 
>> 4/ Is there anything else that should be done to setup tomcat?
> 
> Go through the server.xml file and see if there's anything you need to change.  Read the Tomcat docs for more information.
> 

And we're back to the "standard Tomcat vs packaged Tomcat" discussion..

Testwreq,

The "standard Tomcat" is the one which you get and download from 
http://tomcat.apache.org.
That is the current version, and the one everyone here knows and loves, 
because for that one, everyone knows where the files are, what the 
standard settings are, and so on.
But is not a "package" that fits with the "package manager" software of 
any particular Unix/Linux version.

And then there are many "pre-packaged Tomcats", which vary depending on 
which Unix/Linux type or distribution they are made for, and by whom, 
from which (generally older) version of the standard Tomcat.
For reasons mostly good but sometimes bad, these packages tend to vary 
from the original and between them, as to which locations they install 
the files in, which links to what they also set up, which settings they 
set by default, which ports they use, under which user they are started, 
how they are started, etc..

Unfortunately, the people here do not know all these versions, so our 
capacity to help is limited, except to provide general principles and 
direct you to the standard documentation.

So if you are having problems with a particular packaged version of 
Tomcat (like you are using), the best place to ask for help first is 
probably the help desk or help list of your particular Unix/Linux version.
Then once this packaged Tomcat is running, if you are having problem 
/using/ it, maybe we can help better.


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


RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> 1/I already have apache running on port 80. If I start the tomcat
> service, I think it will probably start on port 80 as well.

The standard Tomcat downloads are configured to use port 8080 by default; what your version has isn't known, so you'll have to look in Tomcat's conf/server.xml file.

> 2/ I have setup the following environment variables
> JAVA_HOME=/usr/lib/jvm/java

Good.

> CATALINA_HOME = /usr/share/tomcat5

You probably don't need that; the standard Tomcat startup scripts determine what the value should be.  However, since you're not using a standard Tomcat, it's hard to tell.

> PATH=$PATH:$JAVA_HOME/bin

Good.

> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar

Get rid of CLASSPATH; never, never, never use the CLASSPATH environment variable (for any Java application).

> 4/ Is there anything else that should be done to setup tomcat?

Go through the server.xml file and see if there's anything you need to change.  Read the Tomcat docs for more information.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
It is not running yet.

There are a few things.

1/I already have apache running on port 80. If I start the tomcat service, I
think it will probably start on port 80 as well. Will it not clash?

2/ I have setup the following environment variables
JAVA_HOME=/usr/lib/jvm/java
CATALINA_HOME = /usr/share/tomcat5
 PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
chown -R tomcat /usr/share/tomcat5
 ln -s /usr/share/tomcat5 /usr/share/tomcat

I will be adding the first 4 variables to the profile file.

3/ if I run the startup command for tomcat, it will start the service as
root. It should be started as non privileged user on everystartup. I have
seen some links on that, which I will read and follow.

4/ Is there anything else that should be done to setup tomcat?

thanks.


On Wed, Mar 10, 2010 at 2:58 PM, André Warnier <aw...@ice-sa.com> wrote:

>  testwreq wreq wrote:
>
>> Hello, I do not know much on setting up tomcat on linux. I am new to both.
>>
>> However, I ran yum install tomcat5 to install tomcat from centos5 built. I
>> could see the version with the below command.
>>
>> # /etc/init.d/tomcat5 version
>> Server version: Apache Tomcat/5.5.23
>> Server built:   Jul 27 2009 05:23:29
>> Server number:  5.5.23.0
>> OS Name:        Linux
>> OS Version:     2.6.18-128.1.10.el5
>> Architecture:   i386
>> JVM Version:    1.6.0-b09
>> JVM Vendor:     Sun Microsystems Inc.
>> I need help to proceed further. Please guide me how to set-up TOMCAT on
>> centos5?  The base installation, I think is located in /user/share/tomcat5
>> and I see java in /usr/bin/jvm
>>
>> Please help.
>>
>> Well, according to what it says above, you are done. That's the nice part
> about these packages.  Tomcat is installed, and probably running. So what
> else do you need ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by André Warnier <aw...@ice-sa.com>.
testwreq wreq wrote:
> Hello, I do not know much on setting up tomcat on linux. I am new to both.
> 
> However, I ran yum install tomcat5 to install tomcat from centos5 built. I
> could see the version with the below command.
> 
> # /etc/init.d/tomcat5 version
> Server version: Apache Tomcat/5.5.23
> Server built:   Jul 27 2009 05:23:29
> Server number:  5.5.23.0
> OS Name:        Linux
> OS Version:     2.6.18-128.1.10.el5
> Architecture:   i386
> JVM Version:    1.6.0-b09
> JVM Vendor:     Sun Microsystems Inc.
> I need help to proceed further. Please guide me how to set-up TOMCAT on
> centos5?  The base installation, I think is located in /user/share/tomcat5
> and I see java in /usr/bin/jvm
> 
> Please help.
> 
Well, according to what it says above, you are done. That's the nice 
part about these packages.  Tomcat is installed, and probably running. 
So what else do you need ?


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


RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> I cannot use 6.0 because my boss believes that we should use
> the one that comes with the centos built as this is tested.

Not nearly as well as the testing done by Tomcat committers and users.

> Since I am new, I am not sure what unix daemon setup is and that
> is what this document is asking to do?

Sorry, but I don't think anyone here has the time to give you training in Linux fundamentals (unless you want to pay for it).

> Currently, I am logged to my test machine as root. But, I want
> to run tomcat as non privileged user.

Read the FAQ:
http://wiki.apache.org/tomcat/HowTo#How_to_run_Tomcat_without_root_privileges.3F

I would not recommend adding httpd to the mix (unnecessary complexity and performance impacts); use either jsvc or iptables.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by André Warnier <aw...@ice-sa.com>.
Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hassan,
> 
> On 3/10/2010 3:04 PM, Hassan Schroeder wrote:
>> On Wed, Mar 10, 2010 at 11:19 AM, testwreq wreq <te...@gmail.com> wrote:
>>> Unfortunately, I cannot use 6.0 because my boss believes that we should use
>>> the one that comes with the centos built as this is tested.
>> I love the smell of delusional thinking in the morning ...  :-)
> 
> :)
> 

+1 :-)
That was indeed an enjoyable formulation.


> 
> Of course, we could always get the binaries directly from MySQL or build
> it ourselves, but there's just something about sweet, sweet
> package-managed software that's tough to leave behind.
> 
+1 too.
That is why I tend to be a bit more sympathetic than some others which I 
will not name, to the poor sods coming here with their "un-real" Tomcat 
packages.
There is also a certain added satisfaction to the chase, I find.

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


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hassan,

On 3/10/2010 3:04 PM, Hassan Schroeder wrote:
> On Wed, Mar 10, 2010 at 11:19 AM, testwreq wreq <te...@gmail.com> wrote:
>> Unfortunately, I cannot use 6.0 because my boss believes that we should use
>> the one that comes with the centos built as this is tested.
> 
> I love the smell of delusional thinking in the morning ...  :-)

:)

We're using Debian Lenny in production, and they are stuck on MysQL
5.0... forever. We'll have to wait until Squeeze comes out to get a new
version. MySQL EOL'd v5.0 at the end of last year, and the Debian folks
didn't exactly plan for that when they bet on MySQL 5.0 for Lenny (which
was released at the /beginning/ of last year, shortly after the release
of MySQL 5.1).

Unfortunately for Debian/MySQL users, the release cycles and policies of
both of these products are such that these kinds of things will always
be happening. :(

Of course, we could always get the binaries directly from MySQL or build
it ourselves, but there's just something about sweet, sweet
package-managed software that's tough to leave behind.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuaqdMACgkQ9CaO5/Lv0PCBqACcDMCe42WX0lQymAegPIJYSUsB
nFsAoIfpxIPXdbxkcXi4mStaVow3qSD3
=mtGf
-----END PGP SIGNATURE-----

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


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by Hassan Schroeder <ha...@gmail.com>.
On Wed, Mar 10, 2010 at 11:19 AM, testwreq wreq <te...@gmail.com> wrote:
> Unfortunately, I cannot use 6.0 because my boss believes that we should use
> the one that comes with the centos built as this is tested.

I love the smell of delusional thinking in the morning ...  :-)

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

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


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by testwreq wreq <te...@gmail.com>.
Unfortunately, I cannot use 6.0 because my boss believes that we should use
the one that comes with the centos built as this is tested.

Thanks a lot for the link. Since I am new, I am not sure what unix daemon
setup is and that is what this document is asking to do? Do I have to run
./configure script first or do I have to set some environment variables?
Currently, I am logged to my test machine as root. But, I want to run tomcat
as non privileged user.




On Wed, Mar 10, 2010 at 2:04 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: testwreq wreq [mailto:testwreq@gmail.com]
> > Subject: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > I need help to proceed further. Please guide me how to set-up
> > TOMCAT on centos5?
>
> Since you're using a non-standard version of Tomcat, the instructions on
> the Tomcat web site might not correspond exactly with the CentOS
> distribution.  Regardless, start here:
> http://tomcat.apache.org/tomcat-5.5-doc/index.html
>
> Note that the version of Tomcat you've chosen to use is three years old,
> and several fixes for a variety of problems (including security) have gone
> in since then.  You might want to consider discarding that one and loading
> the latest Tomcat from here:
> http://tomcat.apache.org/download-60.cgi
>
> If you do choose to use Tomcat 6.0 (highly recommended), its doc starts
> here:
> http://tomcat.apache.org/tomcat-6.0-doc/index.html
>
> If you have specific questions, please ask.
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: testwreq wreq [mailto:testwreq@gmail.com]
> Subject: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> 
> I need help to proceed further. Please guide me how to set-up
> TOMCAT on centos5?

Since you're using a non-standard version of Tomcat, the instructions on the Tomcat web site might not correspond exactly with the CentOS distribution.  Regardless, start here:
http://tomcat.apache.org/tomcat-5.5-doc/index.html

Note that the version of Tomcat you've chosen to use is three years old, and several fixes for a variety of problems (including security) have gone in since then.  You might want to consider discarding that one and loading the latest Tomcat from here:
http://tomcat.apache.org/download-60.cgi

If you do choose to use Tomcat 6.0 (highly recommended), its doc starts here:
http://tomcat.apache.org/tomcat-6.0-doc/index.html

If you have specific questions, please ask.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org