Based on this article https://azure.microsoft.com/en-us/blog/announcing-the-release-of-the-httpplatformhandler-module-for-iis-8/ I followed the instructions step by step, but with no success. I already have a ISS 10.0 server and I tried:
Web.config:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers accessPolicy="Read, Write, Execute, Script"> <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> </handlers> <httpPlatform processPath="C:\\dev\\javasites\\bin\\apache-tomcat-8.0.39\\bin\\startup.bat" arguments="" stdoutLogEnabled="true" stdoutLogFile="\\\\?c:\\dev\\javasites\\log.txt"> <environmentVariables> <environmentVariable name="JRE_HOME" value="C:\\Program Files\\Java\\jdk1.8.0_111" /> <environmentVariable name="CATALINA_HOME" value="c:\\dev\\javasites\\bin\\apache-tomcat-8.0.39" /> </environmentVariables> </httpPlatform> </system.webServer> </configuration>
I already tried:
Without any error code from request, I can't see where I'm doing wrong.
According to your description, based on my understanding, it sounds like that you want to use IIS HttpPlatform handler to start up a Tomcat instance, but I don't know the environment whether host on Azure App Service or just host on Windows.
If your needs is to manually configure & use a Tomcat within control on Azure App Service, I think the document Upload a custom Java web app to Azure
is very helpful for you to upload a Tomcat instance & Java WebApp to wwwroot
path and configure web.config
to make it start up with IIS.
But if you just want to configure Tomcat with IIS for starting up & working, you need to refer to the document The Apache Tomcat Connectors - Web Server HowTo
for IIS to try to do it.
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.