Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add an answer to the question of using pre-packaged versions of Tomcat.

Preface

Questions

  1. I have Tomcat x.y.z installed as part of my OS. Is it good to use?
  2. When I run ps (on Linux), why do I see my java process a bazillion times!
  3. How do I run without an X server and still get graphics?
  4. Tomcat dies after I log out!
  5. Wiki Markup
    [[#Q4|Catalina.log contains : "SEVERE: [StandardServer].await: create\[8005\] : Throwable occurred: java.net.BindException: The socket name is not available on this system."]]
    \\

Answers

Anchor
Q5
Q5
I have Tomcat x.y.z installed as part of my OS. Is it good to use?

Many Linux distributions provide a pre-packaged version of Apache Tomcat.

These packages work fine and are easy to install for a normal single-instance case, but they make it more difficult for more specific use cases, and more difficult for people on the Tomcat User mailing list to help you. That is because each of these packages distributes the files of Tomcat in different places on the disk, sets different environment variables, sets different links from one directory to the other in the filesystem, etc.. So it would be better to install a "standard" tomcat downloaded from the website http://tomcat.apache.org/, to some directory like /opt/tomcat, and follow the instructions that are given in the "RUNNING.txt" file.

This way, everyone here knows what you are talking about and has a good idea of where things are.

Several notes:

  • Download a "binary" version. Either a "tar.gz" or a "zip" file is fine. There is usually no need to re-compile Tomcat from the source code.
  • The "tar.gz" files use GNU extensions to the tar file format. You need a GNU-compatible version of tar to unpack them.
  • Learn how to run Tomcat with separate values of CATALINA_HOME and CATALINA_BASE, as explained in "RUNNING.txt". This will simplify further upgrades and maintenance.

Anchor
Q1
Q1
When I run ps (on Linux), why do I see my java process a bazillion times!

...

Wiki Markup
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="7f14de388248f3bc-1f925108-40c74a47-8618805d-e1b29b6801110f9c107d80b9"><ac:parameter ac:name="">Q4</ac:parameter></ac:structured-macro>*Error message: "SEVERE: [StandardServer].await: create\[8005\]:
Throwable occurred: java.net.BindException: The socket name is not available on this system."*

...