[Centos] Centos 3.3 ( Apache WebServer integration with Tomcat 5.5.7)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello all,

I am new to CentosOS. 

I am trying to connect Apache Webserver with Tomcat 5.5.7 using mod_jk.

Well, if you go there: http://www.export4u.co.uk  ( Apacher webserver is
running but it is not integrated with Tomcat. )

Java , Tomcat are already installed on the my machine

1) I have installed mod_jk.so   ( I put into modules directory in
etc/httpd/modules/ ?    Am I putting mod_jk.so in right directory ?

2) I have changed httpd.conf. ( I read httpd.conf many times. ( its
cool) , I included virtual host settings in the end )

Below is: configuration for httpd.conf

NameVirtualHost 213.217.226.168:80

<VirtualHost 213.217.226.168:80>
    #ServerAdmin vaneet@xxxxxxxxxxxxxx
    DocumentRoot /usr/local/jakarta-tomcat-5.5.7/webapps/XXX
    ServerName www.export4u.co.uk
    JkMount /servlet/* ajp13Worker
    JkMount /therestaurant/* ajp13Worker
    #ServerAlias export4u.co.uk
    #	ErrorLog /usr/local/jakarta-tomcat-5.5.7/logs
    #CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


3) I also included this code in httpd.conf

<IfModule mod_jk.c>
 JkWorkersFile /usr/local/jakarta-tomcat-5.5.7/conf/workers.properties
 JkLogFile /etc/httpd/logs/mod_jk.log
 JkLogLevel info
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
 JkMount /servlet/* ajp13Worker
 JkMount /restaurant/* ajp13Worker
</IfModule>

4)  added this code to httpd.conf as well :

DocumentRoot "/usr/local/jakarta-tomcat-5.5.7/webapps/MicsExport"

5) Also included this line
LoadModule jk_module modules/mod_jk.so

6) Also added :)
Listen 213.217.226.168:80


Now after doing all this:

I also changed workers.properties file in TOMCAT/conf

worker.ajp13Worker.port=8009
worker.ajp13Worker.host=www.export4u.co.uk
worker.ajp13Worker.type=ajp13
worker.ajp13Worker.lbfactor=50
worker.ajp13Worker.cachesize=10
worker.ajp13Worker.cache_timeout=600
worker.ajp13Worker.socket_keepalive=1
worker.ajp13Worker.socket_timeout=300 


Still, I cannot connect Apache Webserver with Tomcat 5.5.7.

Also, I cannot configure Context in 5.5.7. According to documentation,
it says, put context in META-INF. Where is META-INF directory ?> Shall I
create it? 

Also, I need to know how shall I remove symbolic link. I installed java.
When I type java on linux command prompt, I get the following

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages

How shall I remove this symbolic link ?

Any help will be appreciated.

And Thank you very much in advance.

Looking forward.

Vaneet





Vaneet Sharma
executive manager	
iDeasTank Limited	
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:	 +356 9943 8263
skype:	 CALLVANEET
fax:	 +356 9952 8888
phone:	 +356 9942 8888

vaneet@xxxxxxxx
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses.  iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.caosity.org/pipermail/centos/attachments/20050322/7d90d464/attachment.htm

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux