【问题标题】:How to configure IIS with IBM WebSphere Application Server Liberty Profile?如何使用 IBM WebSphere Application Server Liberty Profile 配置 IIS?
【发布时间】:2025-11-22 20:55:01
【问题描述】:

我正在尝试在 IBM WAS(Liberty Profile)服务器前设置 IIS(8.x 版,Windows 2008),以便它可以将所有特定请求路由到 IBM WebSphere 应用程序服务器(Liberty Profile)。

我已经安装并配置了以下项目:

  • 已安装 IBM WebSphere Application Server Liberty Core(版本 8.5.5)
  • 已安装 IBM MobileFirst Platform Server(7.1 版)
  • 为 IBM WAS 安装了 WebServer 插件
  • 已安装 IBM WebSphere Customization Toolbox(8.5 版)

我还部署了一个 MobileFirst 运行时,它运行良好。现在剩下的唯一步骤是使用 IIS 进行配置。

我正在关注以下链接,但无法彻底理解:

https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/tins_manualWebIIS.html

因为我已经安装了 IBM WAS Liberty Core,所以它确实注意到了任何 IBM JAVA SDK。是必需的吗?如何为 IBM WAS Liberty 安装 IBM Java SDK?

我真的不知道第一步应该是什么。

2015 年 9 月 24 日编辑:

现在所有应用程序请求都重定向到 IBM WAS。 当我点击 localhost/HelloWorld/apps/services/www/HelloWorld/desktopbrowser/default/index.html 时,HelloWorld 应用程序运行良好。

现在唯一的问题是当我点击 /worklightconsole 时,它​​无法获取已部署的应用程序和适配器。

我的 plugin-cfg.xml 看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64" SSLConsolidate="false" TrustedProxyEnable="false" VHostMatchingCompat="false">
   <Log LogLevel="Error" Name=".\logs\defaultServer\http_plugin.log"/>
   <Property Name="ESIEnable" Value="true"/>
   <Property Name="ESIMaxCacheSize" Value="1024"/>
   <Property Name="ESIInvalidationMonitor" Value="false"/>
   <Property Name="ESIEnableToPassCookies" Value="false"/>
   <Property Name="PluginInstallRoot" Value="."/>
   <VirtualHostGroup Name="default_host">
      <VirtualHost Name="*:443"/>
      <VirtualHost Name="*:9443"/>
      <VirtualHost Name="*:80"/>
      <VirtualHost Name="*:9080"/>
   </VirtualHostGroup>
   <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="defaultServer_default_node_Cluster" PostBufferSize="0" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server CloneID="89f03a0d-7c05-4c33-a82c-12da20477cdd" ConnectTimeout="5" ExtendedHandshake="false" MaxConnections="-1" Name="default_node_defaultServer0" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="localhost" Port="9080" Protocol="http"/>
         <Transport Hostname="localhost" Port="9443" Protocol="https">
            <Property Name="keyring" Value="keyring.kdb"/>
            <Property Name="stashfile" Value="keyring.sth"/>
            <Property Name="certLabel" Value="LibertyCert"/>
         </Transport>
      </Server>
      <PrimaryServers>
         <Server Name="default_node_defaultServer0"/>
      </PrimaryServers>
   </ServerCluster>
   <UriGroup Name="default_host_defaultServer_default_node_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/RestProject/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/wladmin/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/HelloWorld/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBMJMXConnectorREST/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/worklightconsole/*"/>
   </UriGroup>
   <Route ServerCluster="defaultServer_default_node_Cluster" UriGroup="default_host_defaultServer_default_node_Cluster_URIs" VirtualHostGroup="default_host"/>
</Config>

我收到以下错误:

请求失败:/worklightconsole/services/management-apis/1.0/runtimes/HelloWorld/applications

请求失败:/worklightconsole/services/management-apis/1.0/runtimes/HelloWorld

请求失败:/worklightconsole/services/management-apis/1.0/runtimes/HelloWorld/adapters?offset=0&pageSize=15

任何帮助将不胜感激。

【问题讨论】:

  • 你应该问一个关于从哪里获得 Java 的单独问题。
  • 那些链接的手动步骤不是必需的,WebSphere 配置工具设置 IIS 以加载 WAS 插件。这些步骤是手动替代。
  • 感谢@covener 的投入。我尝试使用 WebSphere 配置工具加载 WAS 插件。但是在可用的配置文件选项卡中,我没有看到任何配置文件。我选择了 - WebSphere Application Server 的本地安装:C:\Program Files (x86)\IBM\WebSphere\Liberty 我正在关注www-01.ibm.com/support/docview.wss?uid=swg27036087&aid=1 链接。你能帮我解决这个问题吗?
  • 试试这个链接,它特定于 Liberty Profile www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/…
  • 我通过 jconsole 在 Liberty 中生成了新的插件配置文件,并遵循 www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/… 链接,但是当我点击 localhost/worklightconsole 时,IIS 向我抛出一个错误 HTTP 错误 502.4 - Bad Gateway 没有合适的服务器可能找到路由请求。

标签: iis websphere-8 websphere-liberty


【解决方案1】:

只是总结一下所有的链接和步骤:

【讨论】:

  • 我通过 jconsole 在 Liberty 中生成了新的插件配置文件,并遵循了www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/… 链接,但是当我点击 localhost/worklightconsole 时,IIS 向我抛出了一个错误 HTTP 错误 502.4 - Bad Gateway 没有合适的服务器可能找到路由请求。
  • @yogesh 是不是所有应用程序都不能通过 IIS 运行,还是只能通过 worklight 控制台运行?从描述中很难看出,您必须将 server.xml 和 plugin-cfg.xml 添加到您的问题中。您也可以尝试创建简单的 helloworld servlet 应用程序并将其部署到 Liberty,以查看在插件重新生成后它是否正确可见。
  • 我已经编辑了我的问题。请帮我提出宝贵的建议。
  • @yogesh,如果您可以看到工作灯控制台的至少一部分,则 IIS 和插件正在工作。休息可能是工作灯设置,但我不知道,我无法帮助你。检查this也许它会与你的配置有关。
最近更新 更多