[thelist] Integrate IIS with Tomcat - redirect problems.

cynthia_link at iol.pt cynthia_link at iol.pt
Fri Apr 5 11:31:01 CST 2002


Hi there!

We are running out of ideas/time...and also searched in various mailing
list for a similar problem, that could give some light to our own
problem. Unfortunately, nothing was found.
So, here are we, writing this post...
We followed these links: http://jakarta.apache.org/tomcat/tomcat-3.3-
doc/tomcat-iis-howto.html

	http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index
.html


We want to integrat IIS 5.0 with Tomcat 4.0.3. IIS and Tomcat by
themselves are working fine. Yet, the redirection of our requests
(received by IIS) are not reaching Tomcat.
Our log file looks like this:

/***********************************************************************
******/
		RESTART OF IIS
/***********************************************************************
******/
[Fri Apr 05 17:35:54 2002]  [jk_uri_worker_map.c (177)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Fri Apr 05 17:35:54 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_close
[Fri Apr 05 17:35:54 2002]  [jk_worker.c (109)]: Into wc_close
[Fri Apr 05 17:35:54 2002]  [jk_worker.c (111)]: wc_close, done
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (806)]: Using registry.
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (808)]: Using log file
C:\Inetpub\wwwroot\tomcat\jakarta-tomcat-4.0.3\logs\iis_redirect.log.
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (809)]: Using log level
0.
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (810)]: Using extension
uri C:\Inetpub\wwwroot\tomcat\jakarta-tomcat-4.0.3
\bin\native\isapi_redirect.dll.
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (811)]: Using worker
file C:\Inetpub\wwwroot\tomcat\jakarta-tomcat-4.0.3
\conf\ntiis\workers.properties.
[Fri Apr 05 17:36:13 2002]  [jk_isapi_plugin.c (812)]: Using worker
mount file C:\Inetpub\wwwroot\tomcat\jakarta-tomcat-4.0.3
\conf\ntiis\uriworkermap.properties.
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (159)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (199)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (217)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix
rule /examples/.jsp=ajp13 was added
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match
rule /examples/servlet/=ajp13 was added
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp13 was
added
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13
was added
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (302)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 4 rules
[Fri Apr 05 17:36:13 2002]  [jk_uri_worker_map.c (324)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (82)]: Into wc_open
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (207)]: Into build_worker_map,
creating 2 workers
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp12
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (152)]: wc_create_worker,
about to create instance ajp12 of ajp12
[Fri Apr 05 17:36:13 2002]  [jk_ajp12_worker.c (264)]: Into
ajp12_worker_factory
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (161)]: wc_create_worker,
about to validate and init ajp12
[Fri Apr 05 17:36:13 2002]  [jk_ajp12_worker.c (182)]: Into
jk_worker_t::validate
[Fri Apr 05 17:36:13 2002]  [jk_ajp12_worker.c (194)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp12 worker
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp13
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (152)]: wc_create_worker,
about to create instance ajp13 of ajp13
[Fri Apr 05 17:36:13 2002]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (161)]: wc_create_worker,
about to validate and init ajp13
[Fri Apr 05 17:36:13 2002]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Fri Apr 05 17:36:13 2002]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Fri Apr 05 17:36:13 2002]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp13 worker
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (235)]: build_worker_map, done
[Fri Apr 05 17:36:13 2002]  [jk_worker.c (102)]: wc_open, done

/***********************************************************************
******/
       REQUEST http://localhost/examples/jsp/num/numguess.jsp
/***********************************************************************
******/
[Fri Apr 05 17:36:26 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Fri Apr 05 17:36:26 2002]  [jk_isapi_plugin.c (600)]: In
HttpFilterProc Virtual Host redirection
of /localhost/examples/jsp/num/numguess.jsp
[Fri Apr 05 17:36:26 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Apr 05 17:36:26 2002]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/localhost/examples/jsp/num/numguess.jsp'
[Fri Apr 05 17:36:26 2002]  [jk_uri_worker_map.c (416)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
[Fri Apr 05 17:36:26 2002]  [jk_isapi_plugin.c (617)]: HttpFilterProc
[/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to
ajp13
[Fri Apr 05 17:36:26 2002]  [jk_isapi_plugin.c (639)]: HttpFilterProc
check if [/examples/jsp/num/numguess.jsp] is points to the web-inf
directory


We followed some sites with instructions to install Tomcat, SDK:

- J2EE SDK 1.3: http://java.sun.com/j2ee/download.html#sdk

- Java 2 Platform, Standard Edition (J2SE) SDK 1.3.1:
http://java.sun.com/j2se/1.3/

- Tomcat: http://jakarta.apache.org/builds/jakarta-tomcat-
4.0/release/v4.0.3/bin/

- We created JAVA_HOME, J2EE_HOME, CATALINA_HOME and updated PATH.

- Files needed to redirect requests from IIS to Tomcat:
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/tc4ntiis.zip

- We edited some configuration files: worker.properties,
uriworkermap.properties and iis_redirect.reg. Of course, this last one
was executed, in the end.

- A virtual directory named jakarta was created.

- The ISAPI filter (isapi_redirect.dll) was added to IIS.

- We didn't had to change server.xml. It filled our needs (AJP
connector was activated).

>From the mailing lists we read, we are aware that the problem is in the
next call: HttpExtensionProc (that follows HttpFilterProc)...'cause we
can't get to it. So, we think that the problem may be:
incorrect/missing configuration of isapi_redirect.dll or the file is
corrupted. But, if this last (corruption of the file) is the reason, we
can't solve it.

We hope someone can help us.

Thanks a lot!

Cintia, Rute.

__________
http://www.IOL.pt
Todo o mundo passa por aqui!





More information about the thelist mailing list