The default in Tomcat 3.3 is to *not* try to take over the
root context from an external web server, such as IIS.
Thus, http://localhost/servlet/SnoopServlet getting a 404
is the expected default behavior. If you want to have
this URL work, you can set the noRoot attribute of the
IISConfig element in server.xml to false. Following this
change, re-run jkconf and restart IIS.
However, here is a little more info about what you are
getting into, which should give you a clue as why its
disable by default.
1) With IISConfig's default forwardAll=true, setting
noRoot=false means all root requests go to
Tomcat. This includes requests for *all* resources
in virtual directories defined in IIS, not just
InetPub\wwwroot.
2) To avoid #1 above, you can define forwardAll=false
in addition to noRoot=false. Now servlets and
JSPs will be handled by Tomcat and static content
handled by IIS. (Note: This setting gives you
behavior closest to what Tomcat 3.2.x implements.)
The problem is that IIS thinks static content
should come from InetPub\wwwroot, Tomcat thinks
it should come from webapps\ROOT. You will need
to merge InetPub\wwwroot and webapps\ROOT in an
appropriate way to get it to work correctly. It is
necessary to configure IIS to duplicate any web.xml
settings not handled by the generated
uriworkermap.properties file.
Hope this helps.
Cheers,
Larry
-Original Message-
From: Ponian Chu [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 7:01 AM
To: [EMAIL PROTECTED]
Subject: integrate Tomcat/IIS
Hi there, I am new in this list~
I need some help with Tomcat/IIS integration
I tried to integrate Tomcat 3.3 with IIS on my Windows 2000
system with difficulty...
My environment is:
-- all servlet classes are put in
%tomcat_home%\webapps\ROOT\WEB-INF\classes folder
-- web site is put in c:\home\httpd\html folder which is set
in IIS. A PHP redirector handles url redirection..
-- the isapi redirector filter is setup and test ok
-- http://localhost/examples/jsp/num/numguess.jsp is ok
-- http://localhost/servlet/SnoopServlet get 404 error
-- http://localhost:8080/servlet/SnoopServlet ok, but I don't
like to put the port number in url
I tried to modify the
%tomcat_home%\conf\auto\uriworkermap.properties, and add 2 lines:
/=$(default.worker)
/*=$(default.worker)
at line 9, the 404 error is fixed, but the real index.html is
not reachable anymore..
any hints are appreciated.
Thank you in advance..
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]