Running java webapp on iis

丶灬走出姿态 提交于 2021-01-29 22:30:49

问题


this is my first question i am posting

PROBLEM:: i am using helicon zoo for running java webapp on iis server(using this as reference ::run java servlet on IIS), but i am facing some problems

i put my app directory in c:/inetpub/wwwroot/myapp(it includes web-inf) then web.config inside it My web.config looks like::

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="jetty.project" >
        <environmentVariables>
          <add name="CONTEXT_PATH" value="%APPL_VIRTUAL_PATH%" />
          <add name="WAR_EXTRACT_PATH" value="%APPL_PHYSICAL_PATH%" />
          <add name="WAR_FILE" value="%APPL_PHYSICAL_PATH%" />
        </environmentVariables>
      </application>
    </heliconZoo>
    <handlers>
      <add name="jetty.project#x86" scriptProcessor="java.jetty"  path="*" verb="*" modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" />
      <add name="jetty.project#x64" scriptProcessor="java.jetty"  path="*" verb="*" modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
  </system.webServer>
</configuration>

and iis showing following error::

HTTP Error 500.21 - Internal Server Error
Handler "jetty.project#x64" has a bad module "HeliconZoo_x64" in its module list

can anyone help me..

oh one more thing i have visual studio installed.


回答1:


try changing requiredAccess field to execute and make sure that .war file is present there..




回答2:


the problem was in web.config file. giving proper path for war file solved the issue.

and for HTTP Error 500.21 - Internal Server Error Handler "jetty.project#x64" has a bad module "HeliconZoo_x64" in its module list

this error reinstalled web installer



来源:https://stackoverflow.com/questions/16009583/running-java-webapp-on-iis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!