Adding Handler httpPlatformHandler causes Internal Server Error 500

-1

I'm running a Windows 2019 server, and have tried adding the following handler in web.config

<system.webServer>
      <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="C:\Program Files\Java\jdk1.8.0_261\bin\java.exe" arguments="-Djava.net.preferIPv4Stack=true -Djetty.port=%HTTP_PLATFORM_PORT% -Djetty.base=&quot;c:\tools\jetty&quot; -jar &quot;c:\tools\jetty\start.jar&quot;" startupTimeLimit="20" startupRetryCount="10" stdoutLogEnabled="true">
    </httpPlatform>
</system.webServer>

However, when I try and load a page I'm getting Internal Server Error 500

Module          IIS Web Core
Notification    BeginRequest
Handler         Not yet determined
Error Code      0x80070021
Config Error    This configuration section cannot be used at this path. This happens when the 
                section is locked at a parent level. Locking is either by default 
                (overrideModeDefault="Deny"), or set explicitly by a location tag with 
                overrideMode="Deny" or the legacy allowOverride="false".

Config Source:
3:     <system.webServer>
4:       <handlers>
5:       <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" 
           resourceType="Unspecified" />

I'm not sure what to try next as I followed the instructions as per HttpPlatformHandler and Java web applications

Also, if I try and view my Handler Mappings in IIS I get

Handler Mappings Error

windows
iis
web-config
iis-10
httpplatformhandler
asked on Stack Overflow Oct 2, 2020 by neildt

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0