【发布时间】: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 进行配置。
我正在关注以下链接,但无法彻底理解:
因为我已经安装了 IBM WAS Liberty Core,所以它确实注意到了任何 IBM JAVA SDK。是必需的吗?如何为 IBM WAS Liberty 安装 IBM Java SDK?
我真的不知道第一步应该是什么。
2015 年 9 月 24 日编辑:
- 我下载并安装了 IBM Java SDK for Liberty Core。
- 我生成了plugin-cfg.xml
- 我使用此链接配置了带有 plugin-cfg.xml 的 IIS:https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/tins_manualWebIIS.html
现在所有应用程序请求都重定向到 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