How to Tomcat 5, Part 2

April 7th, 2008

How do we establish digit Tomcat computer to deal it between whatever users?

After choice (with choice parameters offered by an artefact program)
artefact of Tomcat for azygos individual you intend much directory scheme low
$CATALINA_HOME directory:

bin - contains move and star files
common - contains every the outside libraries which are utilised by Tomcat (not
Tomcat classes here, countenance for them at computer directory)
common/classes
common/endorsed
common/i18n
common/lib
conf - every earth plan files are here
logs - here you encounter “famous” catalina.out index move and ransomed previous
catalina.out and more logs, aforementioned manager.log, admin.log, host-manager.log
server - here are Tomcat collection files, crowded in blow files and nonnegative plan
files
for host-manager and manager. Who are them? Read later
shared - here mutual classes should be
temp - locate for whatever worker things… Do not undergo just what it is.
On my organisation I wager bugzilla37035-safeToDelete.tmp move with 0 bytes size
here.
webapps - locate where your scheme applications are/will be.
work - here Tomcat module locate collection files after the compilation. As you belike
know,
Tomcat “compiles” prototypal JSP pages into servlet drinkable cipher and then compiles those
servlets into
collection files. That’s ground Tomcat titled servlet container, not JSP container :-)

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

Tomcat has the uncertain $CATALINA_BASE which is in housing of azygos individual is coequal
to $CATALINA_HOME. Just add the discussion “-Dcatalina.base=$CATALINA_BASE” to
move move and $CATALINA_BASE uncertain staleness include files for ‘personal’
Tomcat instance.

As you crapper belike adopt Tomcat distribution between binary users requires that
every individual hit possess plan and possess applications.

Usage of this discussion module obligate Tomcat to ingest qualifying references for files in
the mass directories based
on the continuance of $CATALINA_BASE instead of $CATALINA_HOME:

conf - Server plan files (including server.xml)
logs - Log and production files
shared - For classes and resources that staleness be mutual crossways every scheme
applications
webapps - Automatically unexploded scheme applications
work - Temporary employed directories for scheme applications
temp - Directory utilised by the JVM for temporary files (java.io.tmpdir)

Finally you intend what you requirement to intend a immunity and see liberated from added guys :-)
If you do not transfer the “-Dcatalina.base=$CATALINA_BASE” discussion to the move
command, $CATALINA_BASE module be choice to the aforementioned continuance as $CATALINA_HOME, which
effectuation that the aforementioned directory is utilised for every qualifying line resolutions.

For troubleshooting of Tomcat computer artefact gratify countenance at Troubleshooting
country below:

The brass and trainer scheme applications, which are circumscribed in the
$CATALINA_BASE/conf/Catalina/localhost/admin.xml

and

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

- The line given in the docBase concept of the Context surroundings is made
absolute, and replaced respectively by $CATALINA_HOME/server/webapps/admin
and $CATALINA_HOME/server/webapps/manager
- Both scheme applications are derived or touched to $CATALINA_BASE,
and the line given in the docBase concept of the Context
surroundings is restricted appropriately.
- Both scheme applications are unfit by removing $CATALINA_BASE/conf/Catalina/localhost/admin.xml

and

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


Troubleshooting section

There are exclusive 3 things probable to go criminal during a stand-alone Tomcat
installation:

(1) The most ordinary respire is when added scheme computer (or some impact for that
matter) has ordered verify to opening 8080. This is the choice protocol opening that Tomcat
attempts to bond to at startup. To modify this, unstoppered the file:

$CATALINA_HOME/conf/server.xml

and see for ‘8080′. Change it to a opening that isn’t in use, and is greater
than 1024, as ports inferior than or coequal to 1024 order superuser admittance to bond
low UNIX.

Restart Tomcat and you’re in business. Be trusty that you modify the “8080″ in
the address you’re using to admittance Tomcat. For example, if you modify the opening to
1977, you would letter the address http://localhost:1977/ in your browser.
Remember, that every URLs (pointing to your pages, for warning from digit to
another) that are utilised in covering also staleness hit a opening sort in every address
to impact properly, including forms if they locate towards your server. It is beatific
intent to advise that opening to web.xml move as a constant which is feature during move
up of your application. Web xml is choice plan move which is utilised by
every covering on Tomcat. You crapper encounter it low webbaps/yourapplicationpath/WEB-INF directory.

(2) An “out of surround space” nonachievement when streaming the collection files in Windows
95, 98, or ME operative systems.
Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on “Properties”,
then on the “Memory” tab. For the “Initial environment” field, move in
something aforementioned 4096.
After you utter apply, Windows module create shortcuts which you crapper ingest to move
and kibosh the container.

(3) The ‘localhost’ organisation isn’t found. This could hap if you’re behindhand a
proxy. If that’s the case, attain trusty the agent plan for your covering
knows that you shouldn’t be feat finished the agent to admittance the “localhost”.

In Netscape, this is low Edit/Preferences - Advanced/Proxies, and in cyberspace
Explorer, Tools - cyberspace Options - Connections - LAN Settings.
In cyberspace Explorer here: Tools - internet Options - Connections - LAN
Settings.
In Firefox: Tools - Options - General - Connection Settings

Alexandre Patchine publishes Java Programming Tips on
JavaFAQ.nu locate and offers liberated “1000 Java Tips
e-book on his site. You crapper encounter whatever liberated Java books and Java tools on his
site. If you are acquisition Java the JavaFAQ.nu is prizewinning
locate to move with.

Tags: , , , , , , , , , , , , , , , , , ,

CCNP BSCI Exam Tutorial EIGRP Stub Routing

March 25th, 2008

Passing the BCSI communicating and earning your CCNP authorisation requires you to undergo OSPF record areas exclusive and out. Stub areas, amount record areas, a lowercase think on not-so-stub record areas … and pretty presently your nous is swimming. Then when you center that EIGRP offers record routing, your prototypal activity haw be unprintable! But patch EIGRP record routing is trenchant in the correct situation, it’s not as Byzantine as OSPF record routing. Let’s verify a countenance at base EIGRP record routing.

While EIGRP does not hit the record Atlantic options that OSPF does, EIGRP does earmark a router to be organized as stub. This is commonly finished with a hub-and-spoke plan where the crosspiece routers do not hit the resources to ready a flooded routing table. Since the spoke’s incoming jumping module ever be the hub, every the crosspiece rattling needs is a choice route. For this reason, the exclusive edge an EIGRP record router crapper hit is the hub router. (Obviously, the hub would never be organized as stub.)

Configuring EIGRP record routers also combats the SIA problem. EIGRP record routers are not queried for routes when the hub does not hit a viable progeny for a progeny line that has absent down.

By default, EIGRP record routers promote aggregation most digit types of routes backwards to the hub - direct adjoining networks and unofficial routes. To modify this default, ingest the eigrp record bidding followed by the types of routes you poverty the record to promote backwards to the hub. (The eigrp record bidding separate by itself configures the router as stub.)

R1(config)#router eigrp 100 R1(config-router)#eigrp record ?

connected Do promote adjoining routes

receive-only Set IP-EIGRP as obtain exclusive neighbor

static Do promote noise routes

summary Do promote unofficial routes

For example, study a meshwork where R5 is the hub and R4, R6, and R7 are the spokes.

As daylong as R4, R6, and R7 hit a edge relation exclusive with the hub, they crapper be organized as record routers. They module then promote their direct adjoining networks and unofficial routes backwards to the hub and module obtain exclusive a choice line backwards from the hub. If R5 loses a progeny and has no viable successor, it module not beam a ask boat to some of the record routers.

EIGRP record routing doesn’t provide us every the options that OSPF record routing does, but it is such ultimate to configure and crapper greatly turn extra Query boat sending in a hub-and-spoke network.

Chris Bryant, CCIE #12933, is the someone of The Bryant Advantage, bag of liberated CCNP and CCNA tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages.

For a FREE double of his stylish e-books, “How To Pass The CCNA” and “How To Pass The CCNP”, meet meet the website! You crapper also intend FREE CCNA and CCNP communicating questions every day! Pass the CCNP communicating with The Bryant Advantage!

Tags: , , , , , , , , , , , , , , , , , , , , , , , ,

How to Tomcat 5 Part 1

March 19th, 2008

I had no difficulty with Tomcat artefact and every artefact packages which
I tried, worked dustlike for me. I module not exposit every artefact steps, you ever crapper encounter the
info on it on the bag post for Athapascan Tomcat.

It was a some eld ago, when Tomcat had edition 4.1.0. My prototypal notion was that I am tearful in a swamp, so andante
Tomcat was. The full module on my organisation was exhausted by Tomcat, every utter on
my information programme resulted in chilling the full organisation for second. The
prstat (program in Solaris to manage processes status, in UNIX it is crowning
command) indicated that mainframe jumped to 100%.

After 5 eld with Athapascan computer I was completely disappointed…

I intellection that those guys, that ever kvetch most Java, are right: it is meet
squander of money, resources and time. This famished (in cost of resources)
ogre - Tomcat - module never fly!

I was not right. The difficulty was with settings, which were in my Tomcat
installation. Having utilised that Athapascan runs dead correct absent after an
installation, I was not primed for action tuning. Honestly locution I
hit no evidence how to do that. Especially after employed with httpd.conf (Apache
plan file) it was not so cushy to intend into binary xml files, where
Tomcat’s plan is distribute around. Some fantastic things happened here and
there

First travel was to attain everything working.
And presently Tomcat began to impact meliorate and better.

First difficulty was because of added libraries in my scheme
applications. I could not unification them from Tomcat’s common/lib directory. I
had to hit them meet in digit place, direct in the common/lib, no linking for
added place!

Second difficulty was that, modify if Tomcat’s substantiation claims that “*.war files
module be unconcealed in webapps directory and extracted automatically”, they
actually sometime could be there for hours and null happened. Sometimes it
worked, sometime did not.

So, my advice to you: if you attain an artefact collection for organisation
to some people, it module be safer to select files from struggle files by your
artefact information and do not rely on Tomcat. And you crapper alter this
feature at every (I do not rely on it).

How to advise Tomcat from digit directory to another?

My respond here is for the Solaris and UNIX OSs. But it is rattling kindred procedures for
Windows.

Tomcat 5.x, scrutiny to early versions, has quite beatific scheme and right
cursive plan files. There are no files with hornlike coded paths or
versions. Everything is feature from close surround and it makes Tomcat
rattling transportable. You crapper easily advise Tomcat from digit post to another. Just
update surround uncertain $CATALINA_HOME (this uncertain saucer to “home place”
of Tomcat).

For example, on my organisation choice post was: /usr/local/tomcat.

Later I touched it to /home/httpd/alex.

I was streaming Tomcat as tomcatuser and choice bomb for that individual was bash.
To encounter discover which bomb is choice in your housing you requirement to unstoppered the enter /etc/passwd and post the distinction with tomcat’s individual name. In my housing this distinction
looked same this:

tomcatuser:x:112:214:Tomcat impact user/usr/local/tomcat /:/bin/bash

So, I unsealed the enter .bashrc in bag directory for tomcatuser and denaturized digit
lines:

CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME

to

CATALINA_HOME=/ home/httpd/alex
export CATALINA_HOME

That’s all. Now Tomcat 5 crapper separate from newborn place.

It is meet a first of my news most Tomcat. I move my article most Tomcat tuning
(mostly performance) in the ordinal part.

Alexandre Patchine publishes Java Programming Tips on the JavaFAQ.nu post and offers liberated “1000 Java Tips” e-book on his site. You crapper encounter some liberated Java books, Java Code examples and Java tools on his site. If you see the Java the JavaFAQ.nu post is the prizewinning post to move and move with your study!

Tags: , , , , , , , , , , , , , , , , , ,
Close
E-mail It