You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tommy Pham <to...@gmail.com> on 2012/05/15 07:58:23 UTC

HTTP 500.0 on IIS7.5 + JK1.2.36 + TC7.0.26

Hi,

I'm trying to get the connector (JK 1.2.36) to work for IIS7.5
(Windows 7 Enterprise) but keep on running into HTTP 500.0 Error
following the documentation [1]:

Error Summary

HTTP Error 500.0 - Internal Server Error
Calling GetFilterVersion on ISAPI filter
"D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll" failed

Detailed Error Information

Module	IIS Web Core
Notification	Unknown
Handler	ExtensionlessUrlHandler-Integrated-4.0
Error Code	0x8007047e
Requested URL	http://localhost:80/
Physical Path	E:\wwwroot
Logon Method	Not yet determined
Logon User	Not yet determined



Here are my configurations:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="D:\\apache-tomcat-7.0.26\\logs\\isapi.log"
"log_level"="info"
"worker_file"="D:\\apache-tomcat-7.0.26\\conf\\workers.properties"
"woker_mount_file"="D:\\apache-tomcat-7.0.26\\conf\\uriworkermap.properties"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W3SVC\Parameters\Filter
DLLS]
@="D:\\apache-tomcat-7.0.26\\bin\\connector"

# workers.properties
# An entry that lists all the workers defined
worker.list=localworker
# Entries that define the host and port associated with each of these workers
worker.localworker.host=localhost
worker.localworker.port=8009
worker.localworker.type=ajp13
#worker.worker2.host=otherhost
#worker.worker2.port=8009
#worker.worker2.type=ajp13

# uriworkermap.properties
/examples = localworker

D:\apache-tomcat-7.0.26\bin\connector is mapped as an application
virtual directory /jakarta using ASP.NET v4 integrated application
pool (I've tried the 3 other pools - v4 classic, v2 integrated, and v2
classic - and also failed).  The application pool is configured to run
under Network Service account.  The Network Service account has read &
execute permissions on the folder D:\apache-tomcat-7.0.26 recursively
and write permissions on the D:\apache-tomcat-7.0.26\logs folder.

ISAPI-dll handler mapping, with feature permissions of Read, Script &
Execute, has:
1) *.dll for Request path
2) Executable of D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll
3) Request Restrictions
   a) Mapping > Invoke handler only if request is mapped to:
         File or folder
   b) Verbs > All verbs
   c) Access > Execute

ISAPI and CGI Restrictions allows the said
D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll.

ISAPI Filters has an entry for the
D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll.


My Google-fu isn't very helpful ATM.  Am I missing something?  BTW, I
also have URLScan filter loaded.  Would that interfere with JK
connector?


Thanks,
Tommy


[1] http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

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


Re: HTTP 500.0 on IIS7.5 + JK1.2.36 + TC7.0.26

Posted by Tommy Pham <to...@gmail.com>.
On Mon, May 14, 2012 at 11:17 PM, Mladen Turk <mt...@apache.org> wrote:
> On 05/15/2012 07:58 AM, Tommy Pham wrote:
>>
>> Hi,
>>
>> I'm trying to get the connector (JK 1.2.36) to work for IIS7.5
>> (Windows 7 Enterprise) but keep on running into HTTP 500.0 Error
>> following the documentation [1]:
>>
>> Error Summary
>>
>> HTTP Error 500.0 - Internal Server Error
>> Calling GetFilterVersion on ISAPI filter
>
>
>> "D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll" failed
>>
>> "log_file"="D:\\apache-tomcat-7.0.26\\logs\\isapi.log"
>> "log_level"="info"
>
>
> Is there anything written to that log file?

No, the log file isapi.log never got created.  Only logs I see are
Tomcat's:  catalina*.log, commons-daemon*.log, host-manager*.log,
localhost*.log, localhost_access_log*.txt, manager*.log,
tomcat7-stderr*.log.

> If not, I'd suggest fixing security for D:\apache-tomcat-7.0.26 logs
> and bin folders. IIS runs under special account and it might
> not have read/write permissions to that folder.

By default, IIS 7.5's' application pools are configured to run as
ApplicationPoolIdentity.  I've changed it to the NetworkService
account, which has read, list, and execute permissions on Tomcat's
home directory and recursively, in addition to write/modify
permissions on Tomcat's logs directory.

> Also, why Win7? That's workstation, so unless you are experimenting
> make no sense to use that for anything except serving few clients.
> There is a hard limit on number of connections you can use on any
> workstation-kind of windows.

It's a laptop and used as a portable development/testing system.  Yes,
I'm aware of the limitations of Windows workstations (max 10
connections, etc...).

>
>
> Regards
> --
> ^TM
>

Thanks for the reply,
Tommy

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


Re: HTTP 500.0 on IIS7.5 + JK1.2.36 + TC7.0.26

Posted by Mladen Turk <mt...@apache.org>.
On 05/15/2012 07:58 AM, Tommy Pham wrote:
> Hi,
>
> I'm trying to get the connector (JK 1.2.36) to work for IIS7.5
> (Windows 7 Enterprise) but keep on running into HTTP 500.0 Error
> following the documentation [1]:
>
> Error Summary
>
> HTTP Error 500.0 - Internal Server Error
> Calling GetFilterVersion on ISAPI filter

> "D:\apache-tomcat-7.0.26\bin\connector\isapi_redirect.dll" failed
>
> "log_file"="D:\\apache-tomcat-7.0.26\\logs\\isapi.log"
> "log_level"="info"

Is there anything written to that log file?
If not, I'd suggest fixing security for D:\apache-tomcat-7.0.26 logs
and bin folders. IIS runs under special account and it might
not have read/write permissions to that folder.

Also, why Win7? That's workstation, so unless you are experimenting
make no sense to use that for anything except serving few clients.
There is a hard limit on number of connections you can use on any
workstation-kind of windows.


Regards
-- 
^TM

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