tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Sharma" <>
Subject Re: Multiple websites in tomcat
Date Sat, 19 Jul 2008 18:03:51 GMT
Hi Rainer,
    Thanks, i checked in included files and found that it was already
declared in one of included conf file. Thanks for pointing me that.Now i
have corrected  it and server is starting properly with following warnings
which i am skipping as of now.
[Sat Jul 19 10:59:41 2008] [warn] module jk_module is already loaded,
[Sat Jul 19 10:59:41 2008] [warn] Useless use of AllowOverride in line 1000.

The only propblem is that servlet is not being called.

*So now my worker's file looks like this, i  added testWorker*


*My Server.xml of Tomcat looks like this*

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>

*and httpd.conf looks like this

*LoadModule jk_module libexec/
#AddModule mod_jk.c
#JkWorkersFile /usr/java/tomcat-5.5/conf/
JkLogFile libexec/mod_jk.log
JkLogLevel debug
Alias /ex /usr/java/tomcat-5.5/webapps/servlets-examples
JkMount /ex/servlet/* testWorker
JkMount /temp/*.jsp testWorker
<Location "/examples/WEB-INF/">
AllowOverride None
deny from all

*Now Problem*

When i access this link please), it shows me the
index page of my application(servlet-example) which is a html page.So this
step work fine. That means it usage the Alias thing(Alias /ex
Now from this page there are links to invoke some servlet examples, this link doesn't
work. As per my understanding it should have worked because of this
line - *JkMount
/ex/servlet/* testWorker*
When i access above link i got follwoing in apache log files
*usr/java/tomcat-5.5/webapps/servlets-examples/servlet, referer:

also in my web.xml servlet is defined like this


Thanks in adavance. I am almost on the edge of starting my first web
application, please help.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message