DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10789>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10789 Setting DirectoryIndex of index.jsp does not get served by jk2 ------- Additional Comments From [EMAIL PROTECTED] 2002-07-23 15:06 ------- Bojan, I rebuilt mod_jk2 using your latest additions. It does not seem to work for mod_jk2. What happens is, my index.jsp gets displayed in the browser window, but without the "jsp" part. I.e., the index.jsp for the tomcat examples has this markup in it: <%= application.getServerInfo() %> that puts "Apache Tomcat/4.1" in the center of the page just to the right of the tomcat logo. When I go to the directory, this is left blank. When I go directory to index.jsp it is served correctly. The log shows that the page does not go through mod_jk2, when I go to the directory. Here is some output from the quick test I did. Listing 1 is from the mod_jk2 log: going to httpd://204.210.44.99/ and then httpd://204.210.44.99/tomcat/examples/ Listing 2 is from the log and then going to: httpd://204.210.44.99/index.jsp and then : httpd://204.210.44.99/tomcat/examples/index.jsp Listing 3 is some parts of my httpd.conf Listing 4 is what I think is relevant from workers2.properties Listing 1: - - - - - - - - - - [Tue Jul 23 07:35:27 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:35:29 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:35:29 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:35:29 2002] (debug ) [jk_workerEnv.c (381)] workerEnv.init() create default worker lb:lb [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (339)] uriMap.init() set default host [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (353)] uriMap.init() loaded host (null) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (147)] uriMap.addUriEnv() / (null) / [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (404)] uriMap.init() Create default context / ( for default host ) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /taza.net 678658 642858 63e740 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /tomcat/examples 678658 642858 63e740 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /admin 678658 642858 63e740 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) / 678658 642858 63e740 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriMap.c (445)] uriMap.init() processing mappings [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /jkstatus=status: [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/jkstatus/* host=(null) uri=/jkstatus/* type=1 ctx=(null) prefix=/jkstatus suffix=(null) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (314)] uriEnv.init() suffix mapping / .jsp=ajp13:204.210.44.99:8009 was added [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/*.jsp host=(null) uri=/*.jsp type=2 ctx=(null) prefix=/ suffix=jsp [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /servlet=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/servlet/* host=(null) uri=/servlet/* type=1 ctx=(null) prefix=/servlet suffix=(null) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /pages=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/pages/* host=(null) uri=/pages/* type=1 ctx=(null) prefix=/pages suffix= (null) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /taza.net=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /tomcat/examples=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /admin=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /admin=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/admin/* host=(null) uri=/admin/* type=1 ctx=(null) prefix=/admin suffix= (null) [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /manager=ajp13:204.210.44.99:8009 [Tue Jul 23 07:35:29 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/manager/* host=(null) uri=/manager/* type=1 ctx=/manager prefix=/manager suffix=(null) [Tue Jul 23 07:35:29 2002] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok G:/Apache32/Apache2/conf/workers2.properties [Tue Jul 23 07:35:29 2002] ( info ) [mod_jk2.c (506)] mod_jk child init 1 -1 [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) / [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx / [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (683)] uriMap.mapUri() no match found [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /index.html [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx / [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (683)] uriMap.mapUri() no match found [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /index.jsp [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx / [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (214)] uriMap.mapUri() suffix match jsp [Tue Jul 23 07:36:58 2002] (debug ) [jk_uriMap.c (639)] uriMap.mapUri() extension match /index.jsp ajp13:204.210.44.99:8009 [Tue Jul 23 07:36:58 2002] (debug ) [mod_jk2.c (711)] mod_jk.translate(): uriMap /index.jsp ajp13:204.210.44.99:8009 654680 [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /tomcat/examples/ [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx /tomcat/examples [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (683)] uriMap.mapUri() no match found [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /tomcat/examples/index.html [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx /tomcat/examples [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (683)] uriMap.mapUri() no match found [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /tomcat/examples/index.jsp [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx /tomcat/examples [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (214)] uriMap.mapUri() suffix match jsp [Tue Jul 23 07:37:13 2002] (debug ) [jk_uriMap.c (639)] uriMap.mapUri() extension match /tomcat/examples/index.jsp ajp13:204.210.44.99:8009 [Tue Jul 23 07:37:32 2002] (debug ) [jk_workerEnv.c (140)] destroy worker ajp13:204.210.44.99:8009 [Tue Jul 23 07:37:32 2002] (debug ) [jk_worker_ajp13.c (794)] ajp13.destroy() closed 0 cached endpoints [Tue Jul 23 07:37:32 2002] (debug ) [jk_workerEnv.c (140)] destroy worker status: [Tue Jul 23 07:37:32 2002] (debug ) [jk_workerEnv.c (140)] destroy worker lb:lb [Tue Jul 23 07:37:32 2002] (debug ) [jk_workerEnv.c (147)] workerEnv.close() done 3 Listing 2: - - - - - - - - - [Tue Jul 23 07:42:18 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:42:21 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:42:21 2002] (error ) [jk_logger_file.c (171)] Initializing log file G:/Apache32/Apache2/logs/jk2.log [Tue Jul 23 07:42:21 2002] (debug ) [jk_workerEnv.c (381)] workerEnv.init() create default worker lb:lb [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (339)] uriMap.init() set default host [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (353)] uriMap.init() loaded host (null) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (147)] uriMap.addUriEnv() / (null) / [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (404)] uriMap.init() Create default context / ( for default host ) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /taza.net 678658 642858 63e740 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /tomcat/examples 678658 642858 63e740 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) /admin 678658 642858 63e740 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (427)] uriMap.init() loaded context (null) / 678658 642858 63e740 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriMap.c (445)] uriMap.init() processing mappings [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /jkstatus=status: [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/jkstatus/* host=(null) uri=/jkstatus/* type=1 ctx=(null) prefix=/jkstatus suffix=(null) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (314)] uriEnv.init() suffix mapping / .jsp=ajp13:204.210.44.99:8009 was added [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/*.jsp host=(null) uri=/*.jsp type=2 ctx=(null) prefix=/ suffix=jsp [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /servlet=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/servlet/* host=(null) uri=/servlet/* type=1 ctx=(null) prefix=/servlet suffix=(null) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /pages=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/pages/* host=(null) uri=/pages/* type=1 ctx=(null) prefix=/pages suffix= (null) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /taza.net=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /tomcat/examples=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (263)] uriEnv.init() context mapping /admin=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /admin=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/admin/* host=(null) uri=/admin/* type=1 ctx=(null) prefix=/admin suffix= (null) [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (339)] uriEnv.init() prefix mapping /manager=ajp13:204.210.44.99:8009 [Tue Jul 23 07:42:22 2002] (debug ) [jk_uriEnv.c (358)] uriEnv.init() uri:/manager/* host=(null) uri=/manager/* type=1 ctx=/manager prefix=/manager suffix=(null) [Tue Jul 23 07:42:22 2002] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok G:/Apache32/Apache2/conf/workers2.properties [Tue Jul 23 07:42:22 2002] ( info ) [mod_jk2.c (506)] mod_jk child init 1 -1 [Tue Jul 23 07:43:39 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /index.jsp [Tue Jul 23 07:43:39 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:43:39 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx / [Tue Jul 23 07:43:39 2002] (debug ) [jk_uriMap.c (214)] uriMap.mapUri() suffix match jsp [Tue Jul 23 07:43:39 2002] (debug ) [jk_uriMap.c (639)] uriMap.mapUri() extension match /index.jsp ajp13:204.210.44.99:8009 [Tue Jul 23 07:43:39 2002] (debug ) [mod_jk2.c (711)] mod_jk.translate(): uriMap /index.jsp ajp13:204.210.44.99:8009 654680 [Tue Jul 23 07:43:39 2002] (debug ) [mod_jk2.c (599)] mod_jk.handler() serving /*.jsp with 654680 6545e8 204.210.44.99:8009 [Tue Jul 23 07:43:39 2002] (debug ) [mod_jk2.c (609)] mod_jk.handler(): new rpool 659708 [Tue Jul 23 07:43:39 2002] ( info ) [jk_service_apache2.c (367)] service.init () Can't find child in scoreboard 2624 [Tue Jul 23 07:43:39 2002] (debug ) [jk_requtil.c (703)] serialize.request() serialized /index.jsp [Tue Jul 23 07:43:40 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 4 sendHeaders [Tue Jul 23 07:43:40 2002] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Type] = [text/html;ISO-8859-1] [Tue Jul 23 07:43:40 2002] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Set-Cookie] = [JSESSIONID=EEFA3E265DCE1EFAF5A690B67170EFD8; Path=/] [Tue Jul 23 07:43:40 2002] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=2 [Tue Jul 23 07:43:40 2002] (debug ) [jk_service_apache2.c (129)] service.head () 200 2 0x668618 [Tue Jul 23 07:43:40 2002] (debug ) [jk_service_apache2.c (140)] service.head () Content-Type: text/html;ISO-8859-1 0 2 [Tue Jul 23 07:43:40 2002] (debug ) [jk_service_apache2.c (140)] service.head () Set-Cookie: JSESSIONID=EEFA3E265DCE1EFAF5A690B67170EFD8; Path=/ 1 2 [Tue Jul 23 07:43:40 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 3 sendChunk [Tue Jul 23 07:43:40 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 5 endResponse [Tue Jul 23 07:44:04 2002] (debug ) [jk_uriMap.c (565)] uriMap.mapUri() (null) /tomcat/examples/index.jsp [Tue Jul 23 07:44:04 2002] (debug ) [jk_uriMap.c (577)] uriMap.mapUri() found host (null) [Tue Jul 23 07:44:04 2002] (debug ) [jk_uriMap.c (602)] uriMap.mapUri() found ctx /tomcat/examples [Tue Jul 23 07:44:04 2002] (debug ) [jk_uriMap.c (214)] uriMap.mapUri() suffix match jsp [Tue Jul 23 07:44:04 2002] (debug ) [jk_uriMap.c (639)] uriMap.mapUri() extension match /tomcat/examples/index.jsp ajp13:204.210.44.99:8009 [Tue Jul 23 07:44:04 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 4 sendHeaders [Tue Jul 23 07:44:04 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 3 sendChunk [Tue Jul 23 07:44:04 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 3 sendChunk [Tue Jul 23 07:44:04 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 3 sendChunk [Tue Jul 23 07:44:04 2002] (debug ) [jk_workerEnv.c (430)] workerEnv.dispatch () Calling 5 endResponse [Tue Jul 23 07:44:19 2002] (debug ) [jk_workerEnv.c (140)] destroy worker ajp13:204.210.44.99:8009 [Tue Jul 23 07:44:19 2002] (debug ) [jk_worker_ajp13.c (794)] ajp13.destroy() closed 1 cached endpoints [Tue Jul 23 07:44:19 2002] (debug ) [jk_workerEnv.c (140)] destroy worker status: [Tue Jul 23 07:44:19 2002] (debug ) [jk_workerEnv.c (140)] destroy worker lb:lb [Tue Jul 23 07:44:19 2002] (debug ) [jk_workerEnv.c (147)] workerEnv.close() done 3 Listing 3: - - - - - - - - - - - - # This should be changed to whatever you set DocumentRoot to. # <Directory "E:/InetPub/dfxsys.com"> Options None AllowOverride None Order allow,deny Allow from all </Directory> ... <IfModule mod_dir.c> DirectoryIndex index.html index.jsp </IfModule> ... Alias /tomcat "G:/Apache32/src/jakarta-tomcat-4.1.7.base/webapps" Listing 4: - - - - - - - - - - # Uri mappings: [uri:/jkstatus/*] info=Display status information and checks the config file for changes. contex=/jkstatus group=status: debug=9 # dfxsys.com [uri:/*.jsp] info=Extension mapping worker=ajp13:204.210.44.99:8009 debug=9 [uri:/servlet/*] info=Extension mapping worker=ajp13:204.210.44.99:8009 debug=9 # Tomcat standard examples [uri:/tomcat/examples] info= ??? context=/tomcat/examples worker=ajp13:204.210.44.99:8009 debug=9 [uri:/tomcat/examples/*.jsp] info=Extension mapping worker=ajp13:204.210.44.99:8009 debug=0 [uri:/tomcat/examples/servlet/*] info=Prefix mapping worker=ajp13:204.210.44.99:8009 debug=0 [uri:/tomcat/examples/SendMailServlet] info=Need this mapping for the send mail example to work worker=ajp13:204.210.44.99:8009 debug=0 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>