944,191 Members | Top Members by Rank

Aug 10th, 2005
0

Apache Tomcat and IIS 6 with JK2

Expand Post »
Apache Tomcat and IIS 6 with JK2

Dear Community,

please help me to solve this though problem by installing and cofigure Apache Tomcat with IIS 6. Firstly Ive tried to use Apache Connector 1.2 but after day try it still didnt work. So I took another tutorial http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html and made every step as described. And O what a bliss the jsp-examples were successful!!! After that I changed IP Adress in workers2.properties to DNS Name, restarted and - it doesnt work anymore. Everything Ive done - changed name. Ping this DNS Name goes clean. Whats wrong?

Notes:
jk2.properties exists, Tomcat default
isapi_redirector2.dll is tied to IIS, virtual directory, registry, isolation mode to IIS 5, ISAPI Filter, extensions - everything is done.
as you can see below - there is two uri's to work with - IP 192.168.120.5 (local network) IT WORKS!!! and 'intranet' DNS for the same computer (with IP 192.168.120.5) wich doesnt work..... It's annoying!

much obliged for every kind of help.

boris

My properties:

workers2.properties:
[logger]
# log levels specified here are ERROR, INFO, DEBUG
level=ERROR

[shm:]
info=Shared memory file. Required for multiprocess servers
file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\jk2.shm
size=1000000

[channel.socket:192.168.120.5:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:192.168.120.5/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:192.168.120.5/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

[uri:192.168.120.5/*.faces]
info=JSFaces
context=/

[uri:192.168.120.5/*.jsp]
info=JSPages
context=/

[uri:192.168.120.5/servlets/*]
info=Servlets
context=/servlets/

# working
[uri:192.168.120.5/wt/*]
info=MyJSPApplication over IP
context=/wt

# doesn't
[uri:intranet/wt/*]
info=MyJSPApplication over Name
context=/wt

# doesn't
[uri:intranet/*.jsp]
info=JSPages
context=/

# doesn't
[uri:intranet/servlets/*]
info=Servlets
context=/servlets/

# doesn't
[uri:intranet/*.faces]
info=JSFaces
context=/

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
# View the status of the ISAPI connector via http://domain.org/jkstatus/
info=The Tomcat /jkstatus
handlergroup=status:

server.xml
a part of:
<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" />
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bsa82 is offline Offline
1 posts
since Aug 2005
Aug 15th, 2005
0

Re: Apache Tomcat and IIS 6 with JK2

this sounds like a dns issue.

the ip needs to be defined in /etc/hosts for the local machine as well
ensure that /etc/hosts is setup correctly and there are seperate entries
for localhost and your system like so:

127.0.0.1 localhost localhost.localdomain
192.168.0.x proxyserver proxyserver.yourdomain.com wwx.youretcdomain.com
192.168.0.z proxyserver proxyserver.yourdomain.com wwx.youretcdomain.com

double check /etc/resolv.conf and ensure it is pointing at the dns server

double check /etc/nsswitch.conf and see if the order on the hosts line
is " hosts: files dns"

ensure dns resolves correct by using the dig or nslookup commands.

restart the domain and apache.
Reputation Points: 18
Solved Threads: 2
Posting Whiz in Training
Cain is offline Offline
298 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Windows Servers Forum Timeline: setting homepage
Next Thread in Windows Servers Forum Timeline: giving a virtual directory an alias





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC