All
This is my first post to the mailing list! Hope you guys can help!
I am installing an app on Tomcat 5 + IIS 6.0 + Windows 2003 Server... I am
having issues with the IIS --> Tomcat connectivity. I have followed the
steps as per the instructions on
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html... including the
missing steps. Here is what I have done
1. Installed:
- jsdk1.4.2_04 for windows
- tomcat 5.0.19 for windows
- IIS 6.0 (this came with the Windows 2003 server)
2. Configured tomcat to work on port 8080 and it works perfectly!
3. Added the isapi_redirector2.dll to a virtual directory on the IIS default
site. (the green arrow shows up in ISAPI Filters tab for the Default
Website properties)
4. Allowed the Jakarta-Tomcat Web Service in the Web Service Extensions.
5. Added the necessary Registry entries for Apache.
I am unable to figure out why am I not able to get the IIS-Tomcat
connectivity to work!!
Can someone guide me?
I noticed that when I change the port parameter to 80 (instead of the
default 8080) non-SSL Coyote HTTP/1.1 Connector in the server.xml, I am able
to access the site without specifying the port. But in that case I guess I
am simply running Tomcat on port 80 - this is not the solution, I guess.
Here are my config files:
kj2.properties:
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
channelSocket.port=8009
shm.file=d:/tomcat5/work/jk2.shm
server.xml
=========
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
during installation -->
<Connector
port="8080" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties
:
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
workers2.properties
===============
[shm:]
info=Shared memory file. Required for multiprocess servers
file=D:\Tomcat5\work\jk2.shm
size=1000000
[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009
[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples
[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)