So I was looking for simalar tutorial in how-to sectiond but did not find and decided to write it myself.
Only I'm not sure about j2sdk is it need to update or not. If something does not work try to follow this tutorial first
http://forums.fedoraforum.org/showthread.php?t=47591 [First] Anyway let's start

Also there you can follow third tutorial about instalation of tomcat5 if you do not like my
Start terminal and became root.Then type
Code:
yum install tomcat5-jasper-5.0.30-5jpp_6fc cryptix cryptix-ans1
P.s I can't remeber all dependencys what is needed for tomcat5, anywai you can see it by typing yum install tomcat5 and see what dependencys is needed. But then say no for the instaliation

It's only useful to know what dependencys is needed

First i tried yum install tomcat5 it installed ok but self server did not worked for my at all. And one more thing i do not quaranty that it will work for you. Like i spend all day doing crasy things to make it work

And i wrote there everything i could remember what i did

Anyway atleast you gona have idea how to make it work
First shutdown original apache server
Code:
/sbin/service httpd stop
Also we will need this directory later
Code:
mkdir /var/www/html/java
1.tomcat 5.5.9
Code:
wget http://mirrors.isc.org/pub/apache/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9.tar.gz
tar zxf jakarta-tomcat-5.5.9.tar.gz
after extract rename jakarta-tomcat-5.5.9 to tomcat5
and finaly move tomcat5 to /usr/share catalog (like i'm beginer i dont know what exactly commands i used

so (^^)
Now we need to do a little tweaking to server.xml file, so in console type
Code:
gedit /usr/share/tomcat5/conf/server.xml
Under these lines
Code:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
add this line :
Code:
<Context docBase="/var/www/html/java" path="/java"/>
we will be using this directory for storing simple hello.jsp script.
In general to test is tomcat5 working type
Code:
/usr/share/tomcat5/bin/startup.sh
then go to
http://localhost:8080/java
(you should see empty directory)
You can also try
http://localhost:8080/
(and you should see dafault tomcat web page)
Then you are sure that everything is working type :
Code:
/usr/share/tomcat5/bin/shutdown.sh
2.Installation of mod_jk
After that you have to execute ceople commands
Code:
cp /usr/share/doc/mod_jk-1.2.6/mod_jk.conf.sample /etc/httpd/conf.d/mod_jk.conf
Then :
Code:
gedit /etc/httpd/conf.d/mod_jk.conf
(now you have to change ceople things in it like we are using original version of tomcat.)
a) change
Code:
JkWorkersFile /etc/httpd/conf/workers.properties
to
Code:
JkWorkersFile /usr/share/tomcat5/conf/workers.properties
b)
Change these lines
Code:
Alias /examples "/usr/share/tomcat5/webapps/examples"
<Directory "/usr/share/tomcat5/webapps/examples">
Options Indexes FollowSymLinks
</Directory>
to
Code:
Alias /jsp-examples "/usr/share/tomcat5/webapps/jsp-examples"
<Directory "/usr/share/tomcat5/webapps/jsp-examples">
Options Indexes FollowSymLinks
</Directory>
This will be default jsp-examples page just for testing purposes.
Strange thing i noticed that then alias is different than in tomcat it does not work. So alias must match
tomcat server folder.
Next under
Code:
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
add this line
Code:
JkMount /var/www/html/java/* ajp13
Save and close the file.
Looks like thats all

like i did not change anything else in it, others directorys wont work but if you want you can yourself experiment to make in work
finaly to test
Code:
touch /var/www/html/java/hello.jsp
gedit /var/www/html/java/hello.jsp
and paste in it this line
Code:
<%= new java.util.Date() %>
Save and close the file.
Finaly in console type
Code:
/usr/share/tomcat5/bin/startup.sh
/sbin/service httpd start
and finaly go to
http://localhost/java/hello.jsp
and you should see date
bye and enjoy

P.s And sory for my crappy english

And by the way it's my first post in this forum