Soubhratra:
First: To add an additional context (aka web application), it does not
require you to add an additional worker. Workers are additional tomcats
running on different ports. This allows one to have different contexts (web
apps) running on separate tomcat/jvms.
Second: To help you with your context problem then you will have to include
the changes you made to the server.xml file so we can verify your syntax.
These customizations should look something like this (assuming you want to
leave the examples context alone):
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/myapp"
docBase="webapps/myapp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
Third: To help you with your workers problem then you will have to include
the changes you made to the workers.properties and to uriworkers.properties
so again we can verify your syntax. You should know that you additional
workers should all have different port numbers (if on same host) and each
port number must correspond to the port number defined for apj in the server
xml. For example:
# workers.properties
# append new worker to list separated by comma
worker.list=ajp12, ajp13, ajp12_myapp
# define worker with port and host and decide if type is apj12/apj13
worker.ajp12_myapp.port=9007
worker.ajp12_myapp.host=myapp.merck.com
worker.ajp12_myapp.type=ajp12
# uriworkers.properties
# The following line mounts all JSP file and the /servlet/ uri to
tomcat
/myapp/servlet/*=ajp12_myapp
/myapp/*.jsp=ajp12_myapp
<! server.xml -->
<!-- Apache AJP12 support. This is also used to shut down tomcat.
-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="9007"/>
</Connector>
It is important to realize that each worker is a separate copy of tomcat
running on either different hosts (machine name/dns host name) and or port
numbers. Each worker/tomcat would have it's own server.xml file defining
which ajp12 port number to listen to.
Hope this help, if not, send the above customizations from your files and
more information on how you've configured IIS and Tomcat.
Respectfully,
George Knaggs
-----Original Message-----
From: Soubhratra Das [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 6:52 AM
To: [EMAIL PROTECTED]
Subject: Tomcat +IIS
Hi all,
I have successful to integrate tomcat and IIS.
I followed instruction(tomcat-IIS howto) from tomcat website. According to
the instruction first i set only example context(after setting registry
entry, virtual directory, filter etc). Restart IIS and start tomcat and
example context is now accessed through IIS. For adding a new context,
according to the instruction i add a new line in uriworkermap.properties
file. But after restarting IIS and tomcat the change is not reflected. Then
i commented out the
example context in uriworkermap file. again after restarting both servers
the example context is still accessable through IIS. But after restarting
the computer the changes are reflected. Im i doing some mistake or i have to
restart computer every time after adding or deleting some context.
secondly it is not very clear to me about workers. It is described as "A
worker is defined to be a tomcat process that accepts work from the IIS
server."
i want to know how this process performs its job, what is actually isapi.dll
and what ajp.
Thirdly we can specify more than one worker in worker.properties filelike
shown below --
#
# Two workers definition
#
# worker.list=ajp12, ajp12second
#
# worker.ajp12second.host=localhost
# worker.ajp12second.port=8007
#
# worker.ajp12.host=otherhost
# worker.ajp12.port=8009
What does this otherhost means.
Can any body explain these to me or points to some web docs that explain
these things.
Thanks in advance.
soubhratra
____________________________________________________________
Sent via ocsemail from IASRI Intranet System intranet
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html