java web handler,如何在IIS上使用Http Plataform Handler启动Java Web应用程序?

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:

Updated server.xml file - HTTP connector port=${port.http}

On ISS Manage, I added a new WebSite, informing the name and the physical path where my project is (tomcat, .war, web.config...)

Web.config:

modules="httpPlatformHandler" resourceType="Unspecified" />

arguments="" stdoutLogEnabled="true"

stdoutLogFile="\\?c:\dev\javasites\log.txt">

Finally, when I try to access localhost/ or localhost/pebble, on the tab the message shows "waiting for localhost" and the request never ends.

I already tried:

Turn off the Firewall.

Give full permission to ISS_ISRS and IUSR.

Give full permission to the project folder.

AccessPolicy (system.webServer/handlers) with Read, Write, Execute, Script permissions.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值