tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MMcElroy <mmcel...@ccr.ca.gov>
Subject HTTP 500 Error in redirection
Date Tue, 14 Apr 2009 17:52:08 GMT

Hi, I'm having a problem with my IIS redirect to Tomcat.

Whenever I access http://localhost/examples/helloworld.jsp, I get an HTTP
500 error, but if I try http://localhost:8080/examples/helloworld.jsp, I get
the hello world output.

Workers.properties:
workers.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 5.5\

workers.java_home=C:\Program Files\Java\jre6\

ps=\

worker.list=testworker

worker.testworker.port=8009
worker.testworker.host=localhost
worker.testworker.type=ajp13

uriworkermap.properties:
/examples/*=testworker
/examples/*.jsp=testworker

jk_iis.log:  (Cut timestamp)
[info] jk_isapi_plugin.c (2405): Starting
Jakarta/ISAPI/isapi_redirector/1.2.28
[debug] jk_isapi_plugin.c (2423): Detected IIS version 5.1
[debug] jk_isapi_plugin.c (2428): Using registry.
[debug] jk_isapi_plugin.c (2431): Using log file C:\Program Files\Apache
Software Foundation\Tomcat 5.5\logs\jk_iis.log.
[debug] jk_isapi_plugin.c (2432): Using log level 0.
[debug] jk_isapi_plugin.c (2433): Using extension uri
/tomcat/isapi_redirector.dll.
[debug] jk_isapi_plugin.c (2434): Using worker file C:\Program Files\Apache
Software Foundation\Tomcat 5.5\conf\workers.properties.
[debug] jk_isapi_plugin.c (2435): Using worker mount file C:\Program
Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties.
[debug] jk_isapi_plugin.c (2437): Using rewrite rule file .
[debug] jk_isapi_plugin.c (2439): Using uri select 3.
[debug] jk_isapi_plugin.c (2440): Using no chunked encoding.
[debug] jk_isapi_plugin.c (2442): Using notification event
SF_NOTIFY_AUTH_COMPLETE (0x04000000)
[debug] jk_isapi_plugin.c (2452): Using uri header TOMCATURI6A6B0000:.
[debug] jk_isapi_plugin.c (2453): Using query header TOMCATQUERY6A6B0000:.
[debug] jk_isapi_plugin.c (2454): Using worker header TOMCATWORKER6A6B0000:.
[debug] jk_isapi_plugin.c (2455): Using worker index
TOMCATWORKERIDX6A6B0000:.
[debug] jk_isapi_plugin.c (2456): Using translate header
TOMCATTRANSLATE6A6B0000:.
[debug] jk_isapi_plugin.c (2457): Using a default of 250 connections per
pool.
[trace] jk_uri_worker_map.c (204): enter
[trace] jk_uri_worker_map.c (240): exit
[debug] jk_map.c (491): Adding property '/examples/*' with value
'testworker' to map.
[debug] jk_map.c (491): Adding property '/examples/*.jsp' with value
'testworker' to map.
[debug] jk_uri_worker_map.c (1102): Loading urimaps from C:\Program
Files\Apache Software Foundation\Tomcat 5.5\conf\uriworkermap.properties
with reload check interval 60 seconds
[trace] jk_uri_worker_map.c (331): enter
[trace] jk_uri_worker_map.c (358): exit
[trace] jk_uri_worker_map.c (591): enter
[debug] jk_uri_worker_map.c (720): wildchar rule '/examples/*=testworker'
source 'uriworkermap' was added
[trace] jk_uri_worker_map.c (755): exit
[trace] jk_uri_worker_map.c (591): enter
[debug] jk_uri_worker_map.c (720): wildchar rule
'/examples/*.jsp=testworker' source 'uriworkermap' was added
[trace] jk_uri_worker_map.c (755): exit
[trace] jk_uri_worker_map.c (166): enter
[debug] jk_uri_worker_map.c (171): uri map dump after file load: index=0
file='C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\uriworkermap.properties' reject_unsafe=0 reload=60
modified=1239660488 checked=1239730570
[debug] jk_uri_worker_map.c (176): generation 0: size=0 nosize=0 capacity=0
[debug] jk_uri_worker_map.c (176): generation 1: size=2 nosize=0 capacity=4
[debug] jk_uri_worker_map.c (186): NEXT (1) map #0: uri=/examples/*.jsp
worker=testworker context=/examples/*.jsp source=uriworkermap type=Wildchar
len=15
[debug] jk_uri_worker_map.c (186): NEXT (1) map #1: uri=/examples/*
worker=testworker context=/examples/* source=uriworkermap type=Wildchar
len=11
[trace] jk_uri_worker_map.c (195): exit
[debug] jk_map.c (491): Adding property 'workers.tomcat_home' with value
'C:\Program Files\Apache Software Foundation\Tomcat 5.5\' to map.
[debug] jk_map.c (491): Adding property 'workers.java_home' with value
'C:\Program Files\Java\jre6\' to map.
[debug] jk_map.c (491): Adding property 'ps' with value '\' to map.
[debug] jk_map.c (491): Adding property 'worker.list' with value
'testworker' to map.
[debug] jk_map.c (491): Adding property 'worker.testworker.port' with value
'8009' to map.
[debug] jk_map.c (491): Adding property 'worker.testworker.host' with value
'localhost' to map.
[debug] jk_map.c (491): Adding property 'worker.testworker.type' with value
'ajp13' to map.
[trace] jk_map.c (766): enter
[debug] jk_map.c (774): Checking for references with prefix worker. with
wildcard (recursion 1)
[trace] jk_map.c (830): exit
[trace] jk_shm.c (97): enter
[debug] jk_shm.c (132): shared memory will contain 1 ajp workers of size 256
and 0 lb workers of size 320 with 0 members of size 384+256
[trace] jk_shm.c (139): exit
[trace] jk_shm.c (155): enter
[debug] jk_shm.c (254): Initialized shared memory JKISAPISHMEM_LOCALHOST_1
size=384 free=256 addr=0x1720000
[trace] jk_shm.c (260): exit
[trace] jk_worker.c (50): enter
[debug] jk_map.c (589): Dump of map: 'workers.tomcat_home' -> 'C:\Program
Files\Apache Software Foundation\Tomcat 5.5\'
[debug] jk_map.c (589): Dump of map: 'workers.java_home' -> 'C:\Program
Files\Java\jre6\'
[debug] jk_map.c (589): Dump of map: 'ps' -> '\'
[debug] jk_map.c (589): Dump of map: 'worker.list' -> 'testworker'
[debug] jk_map.c (589): Dump of map: 'worker.testworker.port' -> '8009'
[debug] jk_map.c (589): Dump of map: 'worker.testworker.host' -> 'localhost'
[debug] jk_map.c (589): Dump of map: 'worker.testworker.type' -> 'ajp13'
[trace] jk_worker.c (236): enter
[debug] jk_worker.c (242): creating worker testworker
[trace] jk_worker.c (126): enter
[debug] jk_worker.c (146): about to create instance testworker of ajp13
[trace] jk_ajp13_worker.c (80): enter
[trace] jk_ajp_common.c (2791): enter
[trace] jk_ajp_common.c (2833): exit
[trace] jk_ajp13_worker.c (92): exit
[debug] jk_worker.c (159): about to validate and init testworker
[trace] jk_ajp13_worker.c (35): enter
[trace] jk_ajp_common.c (2486): enter
[debug] jk_ajp_common.c (2512): worker testworker contact is
'localhost:8009'
[trace] jk_connect.c (325): enter
[trace] jk_connect.c (402): exit
[trace] jk_ajp_common.c (2523): exit
[trace] jk_ajp13_worker.c (37): exit
[trace] jk_ajp13_worker.c (47): enter
[trace] jk_ajp_common.c (2599): enter
[debug] jk_ajp_common.c (2699): setting endpoint options:
[debug] jk_ajp_common.c (2702): keepalive:              0
[debug] jk_ajp_common.c (2706): socket timeout:         0
[debug] jk_ajp_common.c (2710): socket connect timeout: 0
[debug] jk_ajp_common.c (2714): buffer size:            0
[debug] jk_ajp_common.c (2718): pool timeout:           0
[debug] jk_ajp_common.c (2722): ping timeout:           10000
[debug] jk_ajp_common.c (2726): connect timeout:        0
[debug] jk_ajp_common.c (2730): reply timeout:          0
[debug] jk_ajp_common.c (2734): prepost timeout:        0
[debug] jk_ajp_common.c (2738): recovery options:       0
[debug] jk_ajp_common.c (2742): retries:                2
[debug] jk_ajp_common.c (2746): max packet size:        8192
[debug] jk_ajp_common.c (2750): retry interval:         100
[trace] jk_ajp_common.c (2553): enter
[debug] jk_ajp_common.c (2562): setting connection pool size to 250 with min
125 and acquire timeout 200
[trace] jk_ajp_common.c (2587): exit
[trace] jk_ajp_common.c (2782): exit
[trace] jk_ajp13_worker.c (50): exit
[trace] jk_worker.c (198): exit
[trace] jk_worker.c (270): exit
[trace] jk_worker.c (88): exit
[trace] jk_uri_worker_map.c (497): enter
[trace] jk_worker.c (106): enter
[debug] jk_worker.c (116): found a worker testworker
[trace] jk_worker.c (118): exit
[debug] jk_worker.c (293): Found worker type 'ajp13'
[debug] jk_uri_worker_map.c (512): Checking extension for worker 0:
testworker of type ajp13 (2)
[trace] jk_worker.c (106): enter
[debug] jk_worker.c (116): found a worker testworker
[trace] jk_worker.c (118): exit
[debug] jk_worker.c (293): Found worker type 'ajp13'
[debug] jk_uri_worker_map.c (512): Checking extension for worker 1:
testworker of type ajp13 (2)
[trace] jk_uri_worker_map.c (166): enter
[debug] jk_uri_worker_map.c (171): uri map dump after extension stripping:
index=0 file='C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\uriworkermap.properties' reject_unsafe=0 reload=60
modified=1239660488 checked=1239730570
[debug] jk_uri_worker_map.c (176): generation 0: size=0 nosize=0 capacity=0
[debug] jk_uri_worker_map.c (176): generation 1: size=2 nosize=0 capacity=4
[debug] jk_uri_worker_map.c (186): NEXT (1) map #0: uri=/examples/*.jsp
worker=testworker context=/examples/*.jsp source=uriworkermap type=Wildchar
len=15
[debug] jk_uri_worker_map.c (186): NEXT (1) map #1: uri=/examples/*
worker=testworker context=/examples/* source=uriworkermap type=Wildchar
len=11
[trace] jk_uri_worker_map.c (195): exit
[trace] jk_uri_worker_map.c (576): exit
[trace] jk_uri_worker_map.c (477): enter
[debug] jk_uri_worker_map.c (482): Switching uri worker map from index 0 to
index 1
[trace] jk_uri_worker_map.c (489): exit
[info] jk_isapi_plugin.c (2572): Jakarta/ISAPI/isapi_redirector/1.2.28
initialized
[debug] jk_isapi_plugin.c (1841): Filter started
[trace] jk_uri_worker_map.c (951): enter
[debug] jk_uri_worker_map.c (1036): Attempting to map URI
'/localhost/examples/helloworld.jsp' from 2 maps
[trace] jk_uri_worker_map.c (839): enter
[debug] jk_uri_worker_map.c (850): Attempting to map context URI
'/examples/*.jsp=testworker' source 'uriworkermap'
[debug] jk_uri_worker_map.c (850): Attempting to map context URI
'/examples/*=testworker' source 'uriworkermap'
[trace] jk_uri_worker_map.c (882): exit
[trace] jk_uri_worker_map.c (839): enter
[debug] jk_uri_worker_map.c (850): Attempting to map context URI
'/examples/*.jsp=testworker' source 'uriworkermap'
[debug] jk_uri_worker_map.c (863): Found a wildchar match
'/examples/*.jsp=testworker'
[trace] jk_uri_worker_map.c (866): exit
[trace] jk_uri_worker_map.c (1065): exit
[debug] jk_isapi_plugin.c (1922): check if [/examples/helloworld.jsp] points
to the web-inf directory
[debug] jk_isapi_plugin.c (1938): [/examples/helloworld.jsp] is a servlet
url - should redirect to testworker
[debug] jk_isapi_plugin.c (1978): fowarding escaped URI
[/examples/helloworld.jsp]

I use Tomcat 5.5, IIS 5.1 and isapi_redirect.dll 1.2.28.  My ISAPI Filter in
IIS has the green arrow.  I'm pretty stumped at this point, being very rusty
on my JSP and Tomcat skills.  Thanks in advance!

-- 
View this message in context: http://www.nabble.com/HTTP-500-Error-in-redirection-tp23044445p23044445.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message