bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / xdocs / webserver_howto / iis.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE document [
3   <!ENTITY project SYSTEM "project.xml">
4 ]>
5 <document url="iis.html">
6
7   &project;
8 <copyright>
9    Licensed to the Apache Software Foundation (ASF) under one or more
10    contributor license agreements.  See the NOTICE file distributed with
11    this work for additional information regarding copyright ownership.
12    The ASF licenses this file to You under the Apache License, Version 2.0
13    (the "License"); you may not use this file except in compliance with
14    the License.  You may obtain a copy of the License at
15  
16        http://www.apache.org/licenses/LICENSE-2.0
17  
18    Unless required by applicable law or agreed to in writing, software
19    distributed under the License is distributed on an "AS IS" BASIS,
20    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21    See the License for the specific language governing permissions and
22    limitations under the License.
23 </copyright>
24 <properties>
25 <title>IIS HowTo</title>
26 <author email="hgomez@apache.org">Henri Gomez</author>
27 <author email="shachor@il.ibm.com">Gal Shachor</author>
28 <author email="yoavs@apache.org">Yoav Shapira</author>
29 <date>$Date: 2010-03-15 16:40:37 +0100 (Mon, 15 Mar 2010) $</date>
30 </properties>
31 <body>
32 <section name="Introduction">
33 <p>
34 This document explains how to set up IIS to cooperate with Tomcat. 
35 </p>
36
37 <p>
38 Normally IIS can not execute Servlets and Java Server Pages (JSPs), 
39 configuring IIS to use the JK ISAPI redirector plugin will let IIS send servlet and 
40 JSP requests to Tomcat (and this way, serve them to clients).
41 </p>
42
43 <p>
44 It is recommended that you also read the
45 <a href="../generic_howto/workers.html">Workers HowTo</a> document
46 to learn how to setup the working entities between your web server and Tomcat Engines.
47 For more detailed configuration information consult the Reference Guide for
48 <a href="../reference/workers.html">workers.properties</a>,
49 <a href="../reference/uriworkermap.html">uriworkermap</a>
50 and <a href="../reference/iis.html">IIS</a>.
51 </p>
52
53
54 <subsection name="Document Conventions and Assumptions">
55 <p>
56 ${tomcat_home} is the root directory of tomcat. 
57 Your Tomcat installation should have the following subdirectories:
58
59 <ul>
60 <li>
61 ${tomcat_home}\conf - Where you can place various configuration files
62 </li>
63 <li>
64 ${tomcat_home}\webapps - Containing example applications
65 </li>
66 <li>
67 ${tomcat_home}\bin - Where you place web server plugins
68 </li>
69 </ul>
70 </p>
71 <p>
72 In all the examples in this document ${tomcat_home} will be <b>c:\tomcat</b>.
73 A worker is defined to be a tomcat process that accepts work from the IIS server.
74 </p>
75 </subsection>
76
77
78 <subsection name="Supported Configuration">
79 <p>
80 The IIS-Tomcat redirector was developed and tested on:
81 <ul>
82 <li>
83 WinNT4.0-i386 SP4/SP5/SP6a (should be able to work with other service packs), Win2K and WinXP and Win98
84 </li>
85 <li>
86 IIS4.0 and PWS4.0 (numerous people have working IIS 5 and IIS 6 configurations)
87 </li>
88 <li>
89 Tomcat 3.2 and later, Tomcat 4.x, Tomcat 5 and 5.5 and Tomcat 6
90 </li>
91 </ul>
92 </p>
93
94 <p>
95 The redirector uses <b>ajp12</b> and <b>ajp13</b> to send requests to the Tomcat containers. There is also an option to use Tomcat in process, 
96 more about the in-process mode can be found in the in process howto.
97 </p>
98 </subsection>
99
100 <subsection name="IIS 5 and 6 Notes">
101 <p>
102 There are extra steps you need to take for configuring Tomcat with IIS 5 and 6.  Please see the appropriate links from 
103 <a href="http://wiki.apache.org/tomcat/Tomcat/Links">Tomcat Useful Links</a>.
104 </p>
105 </subsection>
106
107 <subsection name="IIS 7 notes">
108 <p>
109 There is a known bug in IIS that may result in incomplete log messages. See <a
110 href="https://issues.apache.org/bugzilla/show_bug.cgi?id=45769">bug 45769</a>
111 for further details.
112 </p>
113 </subsection>
114
115 <subsection name="Who support ajp protocols ?">
116 <p>
117 The ajp12 protocol is only available in Tomcat 3.2.x and 3.3.x.
118 </p>
119
120 <p>
121 The <b>ajp12</b> has been <b>deprecated</b> with Tomcat 3.3.x and you should use instead 
122 <b>ajp13</b> which is the only ajp protocol known by Tomcat 4.x, 5 and 5.5 and Tomcat 6.
123 </p>
124
125 <p>
126 Of course Tomcat 3.2.x and 3.3.x also support ajp13 protocol.
127 </p>
128
129 <p>
130 Others servlet engines such as <b>jetty</b> have support for ajp13 protocol
131 </p>
132
133 </subsection>
134
135 <subsection name="How does it work ?">
136 <p>
137 <ol>
138 <li>
139 The IIS-Tomcat redirector is an IIS plugin (filter + extension), IIS load the redirector plugin and calls its 
140 filter function for each in-coming request.
141 </li>
142 <li>
143 The filter then tests the request URL against a list of URI-paths held inside uriworkermap.properties, 
144 If the current request matches one of the entries in the list of URI-paths, 
145 the filter transfers the request to the extension.
146 </li>
147 <li>
148 The extension collects the request parameters and forwards them to the appropriate worker using the defined
149 protocol like <b>ajp13</b>.
150 </li>
151 <li>
152 The extension collects the response from the worker and returns it to the browser.
153 </li>
154 </ol>
155 </p>
156 </subsection>
157
158 </section>
159
160 <section name="Installation">
161 <p>
162 A pre-built version of the ISAPI redirector server plugin, isapi_redirect.dll, is available under 
163 the win32/i386 directory of tomcat-connectors distribution. 
164 For those using Netscape as your browser, try downloading a zip version of the file, if available. 
165 There can be problems using Netscape to download DLL files.
166
167 You can also build a copy locally from the source present in tomcat-connectors distribution.
168
169 The Tomcat redirector requires three entities:
170
171 <ul>
172 <li>
173 <b>isapi_redirect.dll</b> - The IIS server plugin, either obtain a pre-built DLL or build it yourself (see the build section).
174 </li>
175 <li>
176 <b><a href="../reference/workers.html">workers.properties</a></b> - A file that describes the host(s) and port(s) used by the workers (Tomcat processes). 
177 A sample workers.properties can be found under the conf directory.
178 </li>
179 <li>
180 <b><a href="../reference/uriworkermap.html">uriworkermap.properties</a></b> - A file that maps URL-Path patterns to workers. 
181 A sample uriworkermap.properties can be found under the conf directory as well.
182 </li>
183 </ul>
184 </p>
185
186 <p>
187 The installation includes the following parts:
188
189 <ul>
190 <li>
191 Configuring the ISAPI redirector with a default /examples context and checking that you can serve servlets with IIS.
192 </li>
193 <li>
194 Adding more contexts to the configuration.
195 </li>
196 </ul>
197 </p>
198
199 </section>
200
201 <section name="Configuring the ISAPI Redirector">
202 <p>
203 In this document I will assume that isapi_redirect.dll is placed in 
204 <b>c:\tomcat\bin\win32\i386\isapi_redirect.dll</b> and 
205 that the properties files which you created are in <b>c:\tomcat\conf</b>.
206 </p>
207 <p>
208 <ol>
209 <li>
210 In the registry, create a new registry key named
211 <b>"HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0"</b>
212 </li>
213 <li>
214 Add a string value with the name <b>extension_uri</b> and a value of <b>/jakarta/isapi_redirect.dll</b>
215 </li>
216 <li>
217 Add a string value with the name <b>log_file</b> and a value pointing to where you want your 
218 log file to be (for example <b>c:\tomcat\logs\isapi.log</b>).
219 </li>
220 <li>
221 Add a string value with the name <b>log_level</b> and a value for your log level 
222 (can be debug, info, error or emerg).
223 </li>
224 <li>
225 Add a string value with the name <b>worker_file</b> and a value which is the full path 
226 to your workers.properties file (for example <b>c:\tomcat\conf\workers.properties</b>)
227 </li>
228 <li>
229 Add a string value with the name <b>worker_mount_file</b> and a value which is the full path 
230 to your uriworkermap.properties file (for example <b>c:\tomcat\conf\uriworkermap.properties</b>)
231 </li>
232 <li>
233 Using the IIS management console, add a new virtual directory to your IIS/PWS web site.
234 The name of the virtual directory must be jakarta. 
235 Its physical path should be the directory where you placed isapi_redirect.dll 
236 (in our example it is c:\tomcat\bin\win32\i386). 
237 While creating this new virtual directory assign it with execute access.
238 </li>
239 <li>
240 Using the IIS management console, add isapi_redirect.dll as a filter in your IIS/PWS web site. 
241 The name of the filter should reflect its task (I use the name tomcat), 
242 its executable must be our c:\tomcat\bin\win32\i386\isapi_redirect.dll. 
243 For PWS, you'll need to use regedit and add/edit the <b>"Filter DLLs"</b> key under 
244 <b>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters</b>. 
245 This key contains a "," separated list of dlls (full paths) - 
246 you need to insert the full path to isapi_redirect.dll.
247 </li>
248 <li>
249 If you're using IIS 6.0 you must also do the following:
250 <br />
251 Using the IIS management console, add the Jakarta Isapi Redirector to the Web
252 Service Extensions. 
253 <ol>
254 <li>Right-click on Web Service Extensions and choose Add a new Web Service
255 Extension.</li> 
256 <li>Enter tomcat for the Extension Name.</li>
257 <li>Add the isapi_redirect.dll to the required files.</li> 
258 <li>Check the Set extension status to Allowed.</li>
259 <li>Click on OK.</li>
260 </ol>
261 </li>
262 <li>
263 Restart IIS (stop + start the IIS service), make sure that the tomcat filter is marked with a green up-pointing arrow.
264 Under Win98 you may need to <b>cd WINDOWS\SYSTEM\inetsrv</b> and type PWS /stop 
265 ( the DLL and log files are locked - even if you click the stop button, 
266 PWS will still keep the DLLs in memory. ). Type pws to start it again.
267 </li>
268 </ol>
269 </p>
270 <p>
271 That's all, you should now start Tomcat and ask IIS to serve you the /examples context. 
272 Try <a href="http://localhost/examples/jsp/index.html">http://localhost/examples/jsp/index.html</a> for example and 
273 execute some of the JSP examples. 
274 </p>
275 <p>
276 If this does not work successfully, refer to the Troubleshooting section below for help on correcting the problem.
277 </p>
278
279 <subsection name="Adding additional Contexts">
280 <p>
281 The examples context is useful for verifying your installation, 
282 but you will also need to add your own contexts. Adding a new context requires two operations:
283 </p>
284 <p>
285 <ol>
286 <li>
287 Adding the context to Tomcat (I am not going to talk about this).
288 </li>
289 <li>
290 Adding the context to the ISAPI redirector.
291 </li>
292 </ol>
293 </p>
294 <p>
295 Adding a context to the ISAPI redirector is simple, all you need to do is to edit 
296 your uriworkermap.properties and to add a line that looks like:
297 </p>
298
299 <source>
300   /context/*=worker_name
301 </source>
302
303 <p>
304 Workers and their name are defined in workers.properties, by default workers.properties comes 
305 with a single pre-configured worker named <b>"defworker"</b> so you can use it. 
306 As an example, if you want to add a context named "shop", the line that you should add to 
307 uriworkermap.properties will be:
308 </p>
309
310 <source>
311   /shop/*=defworker
312 </source>
313
314 After saving uriworkermap.properties restart IIS and it will serve the new context.
315 <p>
316 The above should be all you need for IIS to pass through to Tomcat any request for any URI which corresponds
317 to a Tomcat context (webapp).
318 </p>
319 </subsection>
320
321 <subsection name="Advanced Context Configuration">
322 <p>
323 If your webiste is very busy (more than 100 requests/second, or more than 100 simultaneous client connections),
324 it might sometimes be desirable to have IIS serve static content (html, gif, jpeg etc.) directly, 
325 even if these files are part of a context served by Tomcat.  Allowing IIS to serve such files directly may
326  avoid the small overhead consisting of passing the request to Tomcat via the redirector, and may free up
327  Tomcat somewhat, by using it only to process requests that only Tomcat can handle (e.g. requests to JSP pages and java servlets).
328 </p>
329 <p>
330 For example, consider the html and gif files in the examples context : you could serve these files directly
331 with IIS; there is no need to serve them from the Tomcat process.
332 </p>
333 <warn>However, you should be very careful when you implement the following configuration style, because by doing so you are
334 in fact providing a "back-door" to IIS, and allowing it to serve files out of a Tomcat context without Tomcat's knowledge,
335 thus bypassing any security
336 restrictions which Tomcat itself and the Tomcat context (webapp) may place on those files.</warn>
337 <p>
338 Making IIS serve static files that are part of the Tomcat contexts requires the following:
339 <ol>
340 <li>
341 Configuring IIS to know about the Tomcat contexts
342 </li>
343 <li>
344 Configuring the redirector to leave the static files for IIS
345 </li>
346 </ol>
347 </p>
348
349 <p>
350 Adding a Tomcat context to IIS requires the addition of a new IIS virtual directory that covers the Tomcat context. 
351 For example adding a /example IIS virtual directory that covers the c:\tomcat\webapps\examples directory.
352 </p>
353
354 <p>
355 Configuring the redirector is somewhat harder, you will need to specify the exact 
356 URL-Path pattern(s) which you want Tomcat to handle (usually only JSP files and servlets). 
357 This requires a change to the uriworkermap.properties : 
358
359 <source>
360   For the examples context it requires to replace the following line
361   /examples/*=defworker
362   with the following two lines
363   /examples/*.jsp=defworker
364   /examples/servlet/*=defworker
365 </source>
366 </p>
367
368 <p>
369 As you can see the second configuration is more explicit, it actually instruct the redirector 
370 to redirect only requests to resources under /examples/servlet/ and resources under /examples/ 
371 whose name ends with .jsp. 
372 </p>
373
374 <p>
375 You can even be more explicit and provide lines such as:
376
377 <source>
378   /example/servletname=defworker
379 </source>
380 </p>
381
382 <p>
383 that instructs the redirector to redirect all requests whose URL-path matches the leading string "/example/servletname" 
384 to the worker named defworker.
385 </p>
386
387 </subsection>
388
389 <subsection name="Protecting the content of your Tomcat contexts">
390 <p>Once again, be aware that by allowing IIS to access the content of your Tomcat context directly, you are
391 potentially bypassing Tomcat's protection of that content.  You should thus make sure to protect this content
392 at the IIS level if needed, by using the corresponding IIS management console functions. 
393 </p>
394 <p>
395 In particular, each servlet application (context) has a special directory named WEB-INF, 
396 which contains sensitive configuration data and Java classes, and which should always be kept hidden from web users. 
397 Using the IIS management console it is possible to protect the WEB-INF directory from user access, but considering that
398 this is a general requirement, and considering that it is easy to forget to implement this protection
399 at the IIS level, the redirector plugin does it automatically for you, and it will reject any request
400 which contains WEB-INF in its URL-path. 
401 </p>
402 </subsection>
403
404 <subsection name="Advanced Worker Configuration">
405 <p>
406 Sometimes you may want to serve different contexts with different Tomcat processes 
407 (for example to spread the load among different machines). 
408 To achieve such a goal you will need to define several workers and assign each context to its own worker.
409 </p>
410 <p>
411 Defining additional workers is done in the workers.properties file. This file includes two types of entries:
412 </p>
413
414 <p>
415 <source>
416   # An entry that lists all the workers defined
417   worker.list=worker1, worker2
418   # Entries that define the host and port associated with each of these workers
419   worker.worker1.host=localhost
420   worker.worker1.port=8009
421   worker.worker1.type=ajp13
422   worker.worker2.host=otherhost
423   worker.worker2.port=8009
424   worker.worker2.type=ajp13
425 </source>
426 </p>
427
428 <p>
429 The above example defined two workers, now we can use these workers to serve two different contexts 
430 each with its own worker: 
431 <source>
432   example uriworkermap.properties fragment
433   /examples/*=worker1
434   /webpages/*=worker2
435 </source>
436 </p>
437
438 <p>
439 As you can see the <b>examples</b> context is served by <b>worker1</b> while the 
440 <b>webpages</b> context is served by <b>worker2</b>.
441 </p>
442
443 <p>
444 More information on using and configuring workers in the <a href="../generic_howto/workers.html">Workers HowTo</a>
445 and in the <a href="../reference/workers.html">worker.properties configuration reference</a>.
446 </p>
447
448 </subsection>
449
450 </section>
451
452 <section name="Building ISAPI redirector">
453 <p>
454 The redirector was developed using Visual C++ Ver.6.0, so having this environment is a prerequisite if you want 
455 to perform a custom build. You should also have the IIS developer SDK.
456
457 The steps that you need to take are:
458 <ul>
459 <li>
460 Change directory to the isapi plugins source directory.
461 </li>
462 <li>
463 Make the source with MSDEV
464 </li>
465 </ul>
466 <screen>
467 <note>Change directory to the isapi plugins source directory</note>
468 <typedos>cd c:\home\apache\jk\iis</typedos>
469 <note>Build the sources using MSDEV</note>
470 <typedos>MSDEV isapi.dsp /MAKE ALL</typedos>
471 </screen>
472 </p>
473 <p>
474 If msdev is not in your path, enter the full path to msdev.exe. 
475 This will build both release and debug versions of the redirector plugin.
476 An alternative will be to open the isapi workspace file (isapi.dsw) in msdev and 
477 build it using the build menu.
478 </p>
479 </section>
480
481 <section name="Troubleshooting">
482 <p>
483 It is easy to have the ISAPI redirector not work the first time you try to install it.
484 </p>
485 <p>
486 If this happens to you, here are some steps to follow to try to correct the problem.
487 </p>
488 <p>
489 These steps aren't guaranteed to cover all possible problems, 
490 but they should help find the typical mistakes.
491 </p>
492 <p>
493 If you make any corrections during these steps, restart the IIS service as described above in the last step 
494 of the installation, then retry the step.
495 </p>
496
497 <p>To enable error tracking, make sure web site activity is being logged. 
498 For PWS 4.0 make sure "Save Web Site Activity Log" is checked in the Advanced Options of the Personal Web Manager.
499 </p>
500    
501 <p>
502 Note: These steps assume your <b>worker_mount_file</b> setting points to an unmodified copy of the 
503 <b>uriworkermap.properties</b> file.<br/>
504 Results may be misleading if <b>worker_mount_file</b> points to a modified <b>uriworkermap.properties</b>
505 or the <b>uriworkermap.properties-auto</b> file.<br/>
506 It is also assumed that the <b>"/examples" context</b> works correctly if you access Tomcat directly.
507 </p>
508
509 <subsection name="Win98">
510 <p>
511 Start the IIS service and Tomcat.
512 </p>
513 <p>
514 Check for the presence of the ISAPI redirector log file you specified in the log_file setting. 
515 If not found, verify the following:
516 </p>
517 <ul>
518 <li>
519 Check the "Filter DLLs" setting in the "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters" 
520 key and make sure the path is correct.
521 </li>
522 <li>
523 Check the spelling of the "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0" key. 
524 Case isn't important, but an incorrect letter will prevent the isapi_redirect.dll from finding its registry settings.
525 </li>
526 <li>
527 Check the log_file setting for typos, name and data. Also insure the directory in which the log file will appear already exists.
528 </li>
529 If the above are set correctly, the ISAPI redirector should be able to create the log file.
530 </ul>
531 <p>
532 Invoke the URL <a href="http://localhost/examples/jsp/index.html">http://localhost/examples/jsp/index.html</a>
533 in your browser. 
534 Case is important in Tomcat. The characters following "localhost" in the URL must be lower case. 
535 If the page fails to appear, stop the IIS service (required to view the IIS log file). 
536 Then examine the last line in the IIS log file in found in SYSTEM/LogFiles/W3SVC1 :
537 </p>
538 <p>
539 If the last line contains: 
540 </p>
541 <source>
542   GET "/examples/jsp/index.html HTTP/1.1" 404
543 </source>
544 <p> 
545 then the ISAPI redirector is not recognising that it should be handling requests for the "/examples" context. 
546 Check the following:
547 </p>
548 <ul>
549 <li>
550 Check the extension_uri name for typos.
551 </li>
552 <li>
553 Check the worker_file setting for typos, name and data.
554 </li>
555 <li>
556 Check the worker_mount_file setting typos, name and data.
557 </li>
558 If these are set correctly, the ISAPI redirector should recognise that it should handle requests for the "/examples" context.
559 </ul>
560
561 <p>If the last line contains something like:
562 </p>
563
564 <source>
565   GET "/jakarta/isapi_redirect.dll HTTP1.1"
566 </source>
567
568 <p>
569 then the ISAPI redirector is recognising that it should handle the request, 
570 but is not successful at getting Tomcat to service the request.
571 </p>
572
573 <p>
574 You should check the HTTP error code following GET "/..." :
575 </p>
576
577 <source>
578   Error 404
579   GET "/..." 404
580 </source>
581
582 <ul>
583 <li>
584 Make sure you entered the URL correctly.
585 </li>
586 <li>
587 Make sure the virtual directory created was called "jakarta". 
588 It should display in Personal Web Manager as "/jakarta" (without the quotes).
589 </li>
590 <li>
591 Make sure the extension_uri data begins with "/jakarta/" (without the quotes).
592 </li>
593 </ul>
594
595 <source>
596   Error 500
597   GET "/..." 500
598 </source>
599
600 <ul>
601 <li>
602 Make sure that "isapi_redirect.dll" follows "/jakarta/" in the extension_uri setting.
603 </li>
604 <li>
605 Check the workers.properties file and make sure the port setting for worker.ajp12.port is the same as the port specified in the server.xml for the "Apache AJP12 support".
606 </li>
607 </ul>
608
609 <source>
610   Error 200 or 403
611   GET "/..." 200
612   GET "/..." 403
613 </source>
614
615 <ul>
616 <li>
617 Make sure you have checked Execute Access 
618 for the jakarta virtual directory in the Advanced Options of the Personal Web Manager.
619 </li>
620 </ul>
621
622 <p>
623 If the above settings are correct, the index.html page should appear in your browser. 
624 You should also be able to click the Execute links to execute the JSP examples.
625 </p>
626
627 </subsection>
628
629 <subsection name="WinNT/Win2K/WinXP">
630 <p>
631 Start the World Wide Web Publishing Service and Tomcat.
632 </p>
633 <p>
634 Check for the presence of the ISAPI redirector log file you specified in the log_file setting. 
635 If not found, check the following:
636 </p>
637 <ul>
638 <li>
639 Check the "executable" you set for the filter in the IIS Management Console and make sure the path is correct.
640 </li>
641 <li>Check the spelling of the "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0" key.
642 Case isn't important, but an incorrect letter will prevent the isapi_redirect.dll from finding its registry settings.
643 </li>
644 <li>
645 Check the log_file setting for typos, name and data. Also insure the directory in which the log file will appear already exists.
646 </li>
647 If the above are set correctly, the ISAPI redirector should be able to create the log file.
648 </ul>
649
650 <p>
651 Check the tomcat filter you added and make sure its status shows a green upward-pointing arrow. 
652 If not, check the following:
653 </p>
654 <ul>
655 <li>
656 Check the worker_file setting for typos, name and data.
657 </li>
658 <li>
659 Check the worker_mount_file setting typos, name and data.
660 </li>
661 If the above are set correctly, the green upward-pointing arrow should appear, even if the other settings are wrong.
662 </ul>
663
664 <p>
665 Invoke the URL <a href="http://localhost/examples/jsp/index.html">http://localhost/examples/jsp/index.html</a> 
666 in your browser. Case is important in Tomcat. The characters following "localhost" in the URL must be lower case. 
667 If the page fails to appear, examine the last line in the IIS server log file in found in SYSTEM32/LogFiles/W3SVC1.
668 </p>
669
670 <p>
671 The last line should contain something like: GET "/jakarta/isapi_redirect.dll HTTP1.1", 
672 which indicates the ISAPI redirector is recognising that it should handle the request.
673 </p>
674
675 <p>
676 You should check the HTTP error code following GET "/..." :
677 </p>
678
679 <source>
680   Error 404
681   GET "/..." 404
682 </source>
683
684 <ul>
685 <li>
686 Make sure you entered the URL correctly.
687 </li>
688 </ul>
689
690 <source>
691   Error 500
692   GET "/..." 500
693 </source>
694
695 <ul>
696 <li>
697 Make sure the virtual directory created was called "jakarta".
698 </li>
699 <li>
700 Make sure that the extension_uri setting is correct.
701 </li>
702 <li>
703 Check the workers.properties file and make sure the port setting for worker.ajp12.port is the same as the port specified in the server.xml for the "Apache AJP12 support".
704 </li>
705 </ul>
706
707 <source>
708   Error 200 or 403
709   GET "/..." 200
710   GET "/..." 403
711 </source>
712
713 <ul>
714 <li>
715 Make sure you have checked Execute Access for the jakarta virtual directory in the 
716 Advanced Options of the Personal Web Manager.
717 </li>
718 </ul>
719
720 <p>
721 If the above settings are correct, the index.html page should appear in your browser. 
722 You should also be able to click the Execute links to execute the JSP examples.
723 </p>
724 </subsection>
725
726
727 </section>
728 </body>
729 </document>