You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jess Holle <je...@ptc.com> on 2004/07/21 19:48:28 UTC
IIS-Tomcat connector bugs
I have been pounding my head into the wall trying to get
isapi_redirect.dll working on IIS 6.0.
There are 3 bugs here with isapi_redirect and its docs as they stand
today -- only one directly of Microsoft's making, it appears:
*1) The URI handed to map_uri_to_worker() in jk_isapi_plugin.c always
contains the host and port screwing up virtual host-independent
URI-to-worker mappings.*
I did a little digging and discovered that this has apparently been
broken since revision 1.19 (i.e. 1.18 worked). The apparent fix is as
follows:
--- jk_isapi_plugin.orig.c 2004-02-24 01:45:50.000000000 -0600
+++ jk_isapi_plugin.c 2004-07-21 12:11:50.000000000 -0500
@@ -718,14 +718,13 @@
jk_log(logger, JK_LOG_DEBUG,
"In HttpFilterProc Virtual Host redirection
of %s\n",
snuri);
- } else {
- strncpy(snuri, uri, sizeof(snuri));
- }
+ worker = map_uri_to_worker(uw_map, snuri, logger);
+ }
if (!worker) {
jk_log(logger, JK_LOG_DEBUG,
"In HttpFilterProc test Default redirection
of %s\n",
uri);
- worker = map_uri_to_worker(uw_map, snuri, logger);
+ worker = map_uri_to_worker(uw_map, uri, logger);
}
if (worker) {
I have filed this as bug 30236
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30236>.
Just to add an example:
/examples/*=ajp13
will no longer work with the current code but
/fullhostname/examples/*=ajp13
does.
*2) isapi_install.vbs has hard-wired references throughout to
"isapi_redirector.dll". Unfortunately, the default name of the DLL and
that used throughout all the documentation bundled and otherwise is
"isapi_redirect.dll".*
This leads to *very* confusing failures to load the connector into IIS.
Once this apparent typo is corrected, this script works great.
I have filed this as bug 30238
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30238>.
*3) Connector documentation is not up-to-date for IIS 6 Changes*
The IIS portion of the Tomcat connector documentation makes no mention
of the extra steps required to get the connectors working with IIS 6.
These are clearly documented elsewhere on the web
(http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
<http://www.rit.edu/%7Eack5504/tomcat-iis6-howto/tomcat-iis6-howto.html>
amongst other places), so there is little reason not to incorporate this
information. Not bundling this information leaves most people
attempting this configuration completely lost -- and they just give up.
I have filed this as bug 30239
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30239>.
That's it for the moment....
--
Jess Holle
Re: IIS-Tomcat connector bugs
Posted by Viktor Hevesi <vi...@oddych.sk>.
Dobry den,
nizsie uvedeny mail NEBOL DORUCENY. Dopiste, prosim, k predmetu mailu
"NIE SPAM" a znova ho poslite. V buducich mailoch uz "NIE SPAM" pisat
nemusite.
Antispamovy filter Oddych.sk
Nedoruceny mail:
JH> I have been pounding my head into the wall trying to get
JH> isapi_redirect.dll working on IIS 6.0.
JH> There are 3 bugs here with isapi_redirect and its docs as they stand
JH> today -- only one directly of Microsoft's making, it appears:
JH> *1) The URI handed to map_uri_to_worker() in jk_isapi_plugin.c always
JH> contains the host and port screwing up virtual host-independent
JH> URI-to-worker mappings.*
JH> I did a little digging and discovered that this has apparently been
JH> broken since revision 1.19 (i.e. 1.18 worked). The apparent fix is as
JH> follows:
JH> --- jk_isapi_plugin.orig.c 2004-02-24 01:45:50.000000000 -0600
JH> +++ jk_isapi_plugin.c 2004-07-21 12:11:50.000000000 -0500
JH> @@ -718,14 +718,13 @@
JH> jk_log(logger, JK_LOG_DEBUG,
JH> "In HttpFilterProc Virtual Host redirection
JH> of %s\n",
JH> snuri);
JH> - } else {
JH> - strncpy(snuri, uri, sizeof(snuri));
JH> - }
JH> + worker = map_uri_to_worker(uw_map, snuri, logger);
JH> + }
JH> if (!worker) {
JH> jk_log(logger, JK_LOG_DEBUG,
JH> "In HttpFilterProc test Default redirection
JH> of %s\n",
JH> uri);
JH> - worker = map_uri_to_worker(uw_map, snuri, logger);
JH> + worker = map_uri_to_worker(uw_map, uri, logger);
JH> }
JH> if (worker) {
JH> I have filed this as bug 30236
JH> <http://issues.apache.org/bugzilla/show_bug.cgi?id=30236>.
JH> Just to add an example:
JH> /examples/*=ajp13
JH> will no longer work with the current code but
JH> /fullhostname/examples/*=ajp13
JH> does.
JH> *2) isapi_install.vbs has hard-wired references throughout to
JH> "isapi_redirector.dll". Unfortunately, the default name of the DLL and
JH> that used throughout all the documentation bundled and otherwise is
JH> "isapi_redirect.dll".*
JH> This leads to *very* confusing failures to load the connector into IIS.
JH> Once this apparent typo is corrected, this script works great.
JH> I have filed this as bug 30238
JH> <http://issues.apache.org/bugzilla/show_bug.cgi?id=30238>.
JH> *3) Connector documentation is not up-to-date for IIS 6 Changes*
JH> The IIS portion of the Tomcat connector documentation makes no mention
JH> of the extra steps required to get the connectors working with IIS 6.
JH> These are clearly documented elsewhere on the web
JH> (http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
JH> <http://www.rit.edu/%7Eack5504/tomcat-iis6-howto/tomcat-iis6-howto.html>
JH> amongst other places), so there is little reason not to incorporate this
JH> information. Not bundling this information leaves most people
JH> attempting this configuration completely lost -- and they just give up.
JH> I have filed this as bug 30239
JH> <http://issues.apache.org/bugzilla/show_bug.cgi?id=30239>.
JH> That's it for the moment....
JH> --
JH> Jess Holle
-=x=-
Skontrolovan� antiv�rov�m programom NOD32
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org