50[ CALL US! 770.441.9999 ] GET our Great Expertise and Personal Service -- Just e-mail ANY competitor quote to sales@datatel360.com and DataTel 360 will BEAT it by 5% or more. Partner with DataTel 360 NOW! [ 770.441.9999 ] RENT, Yes Rent via our Managed IT Services ANY technology on the market today. We are here to be of assistance. "We are manufacturer-neutral and application specific. Our experienced certified engineers deploy and support our “complete voice & data solutions” worldwide. Celebrating 12 years of excellence. [ Subcontract work always welcomed! ] JOIN one of our Zultys Webinars, see http://datatel360.eventbrite.com/ for Details! >>>[ 770.441.9999 ] Managed IT and Telecom Services.... Anytime. Anywhere!
Events

Dial Tone/Internet

A Single Point of Contact for All Your Telecom Needs

Today's telecom industry offers more choices than ever before: traditional and basic business line (POTS), switched long distance, dedicated long distance, DSL, integrated T1, PRI SIP, Trunking, Metro E, MPLS, and DS3...But as the list keeps growing, this multitude of options can start to seem like too much of a good thing.

click below for real time quotes


If you're not sure which services are the best fit for your budget and business requirements, DataTel 360 can help.

Our certified staff of telecom consultants can do it all: analyze your needs, negotiate the best deal, manage the installation of your telecom services, and audit your billing.

How to Tomcat 5, Part 2

How do we install one Tomcat server to share it between many users?

After default (with default parameters offered by an installation program)
installation of Tomcat for single user you get such directory structure under
$CATALINA_HOME directory:

bin – contains startup and binary files

common – contains all the external libraries which are used by Tomcat (not
Tomcat classes here, look for them at server directory)

common/classes

common/endorsed

common/i18n

common/lib

conf – all major configuration files are here

logs – here you find “famous” catalina.out log file and saved previous
catalina.out and more logs, like manager.log, admin.log, host-manager.log

server – here are Tomcat class files, packed in jar files and plus configuration
files
for host-manager and manager. Who are them? Read later

shared – here shared classes should be

temp – place for some temp things… Do not know exactly what it is.
On my machine I see bugzilla37035-safeToDelete.tmp file with 0 bytes length
here.

webapps – place where your web applications are/will be.

work – here Tomcat will place class files after the compilation. As you probably
know,
Tomcat “compiles” first JSP pages into servlet java code and then compiles those
servlets into
class files. That’s why Tomcat named servlet container, not JSP container :-)

Now, when you got an overview on Tomcat structure, we are ready to go further.

Tomcat has the variable $CATALINA_BASE which is in case of single user is equal
to $CATALINA_HOME. Just add the argument “-Dcatalina.base=$CATALINA_BASE” to
startup file and $CATALINA_BASE variable must contain files for ‘personal’
Tomcat instance.

As you can probably assume Tomcat sharing between multiple users requires that
every user have own configuration and own applications.

Usage of this argument will force Tomcat to use relative references for files in
the following directories based
on the value of $CATALINA_BASE instead of $CATALINA_HOME:

conf – Server configuration files (including server.xml)

logs – Log and output files

shared – For classes and resources that must be shared across all web
applications

webapps – Automatically loaded web applications

work – Temporary working directories for web applications

temp – Directory used by the JVM for temporary files (java.io.tmpdir)

Finally you get what you need to get a freedom and feel free from other guys :-)

If you do not pass the “-Dcatalina.base=$CATALINA_BASE” argument to the startup
command, $CATALINA_BASE will be default to the same value as $CATALINA_HOME, which
means that the same directory is used for all relative path resolutions.

For troubleshooting of Tomcat server installation please look at Troubleshooting
section below:

The administration and manager web applications, which are defined in the
$CATALINA_BASE/conf/Catalina/localhost/admin.xml

and

$CATALINA_BASE/conf/Catalina/localhost/manager.xml files, will not run in that
configuration, unless either:

- The path specified in the docBase attribute of the Context element is made
absolute, and replaced respectively by $CATALINA_HOME/server/webapps/admin
and $CATALINA_HOME/server/webapps/manager

- Both web applications are copied or moved to $CATALINA_BASE,
and the path specified in the docBase attribute of the Context
element is modified appropriately.

- Both web applications are disabled by removing $CATALINA_BASE/conf/Catalina/localhost/admin.xml

and

$CATALINA_BASE/conf/Catalina/localhost/manager.xml

Troubleshooting section

There are only 3 things likely to go wrong during a stand-alone Tomcat
installation:

(1) The most common hiccup is when another web server (or any process for that
matter) has laid claim to port 8080. This is the default HTTP port that Tomcat
attempts to bind to at startup. To change this, open the file:

$CATALINA_HOME/conf/server.xml

and search for ’8080′. Change it to a port that isn’t in use, and is greater
than 1024, as ports less than or equal to 1024 require superuser access to bind
under UNIX.

Restart Tomcat and you’re in business. Be sure that you replace the “8080″ in
the URL you’re using to access Tomcat. For example, if you change the port to
1977, you would request the URL http://localhost:1977/ in your browser.
Remember, that all URLs (pointing to your pages, for example from one to
another) that are used in application also must have a port number in every URL
to work properly, including forms if they post towards your server. It is good
idea to move that port to web.xml file as a parameter which is read during start
up of your application. Web xml is default configuration file which is used by
every application on Tomcat. You can find it under webbaps/yourapplicationpath/WEB-INF directory.

(2) An “out of environment space” error when running the batch files in Windows
95, 98, or ME operating systems.

Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on “Properties”,
then on the “Memory” tab. For the “Initial environment” field, enter in
something like 4096.

After you click apply, Windows will create shortcuts which you can use to start
and stop the container.

(3) The ‘localhost’ machine isn’t found. This could happen if you’re behind a
proxy. If that’s the case, make sure the proxy configuration for your browser
knows that you shouldn’t be going through the proxy to access the “localhost”.

In Netscape, this is under Edit/Preferences – Advanced/Proxies, and in Internet
Explorer, Tools – Internet Options – Connections – LAN Settings.

In Internet Explorer here: Tools – internet Options – Connections – LAN
Settings.

In Firefox: Tools – Options – General – Connection Settings

Author: Alexandre Patchine
Article Source: EzineArticles.com
Provided by: Canada duty rates

Related posts:

  1. Wireless Network Applications Part II
  2. Slow Computer? – How to Reinstall Windows Properly Part 2
  3. Computer Network – Comprehensive View – Part 2
  4. Wireless Networking, Part 2: Setup and Security
  5. An Initial Reaction to Technology (Part 3 of a Series)

You must be logged in to post a comment.