我正在尝试在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 的 Web 服务器插件
- 已安装 IBM WebSphere Customization Toolbox(版本 8.5)
我还部署了一个 MobileFirst Runtime,它运行得很好。现在剩下的唯一步骤是使用 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
任何帮助将不胜感激。
最佳答案
总结一下所有链接和步骤:
- 在拥有 IIS 的计算机上,您必须安装 WebSphere 插件和 WebSphere Customization Toolbox - 按照Configuring a web server plug-in for the Liberty profile中提供的步骤进行操作。并在 Installing and using the WebSphere Customization Toolbox
- 您应该能够通过 Toolbox 自动配置 IIS,如果由于某种原因无法配置,请执行以下手动步骤 Configuring Microsoft Internet Information Services (IIS)
- 在您的 Liberty Core 计算机上,如果 MobileFirst 运行时工作正常,您可能已经配置了 Java,否则您还必须通过 Installation Manager 下载 WebSphere Java SDK,了解详细信息,请参阅 Installing and uninstalling SDK Java Technology Edition Version 7.0 or 7.1 for Liberty
- 如果您的应用程序直接工作,但不通过 IIS,则必须通过
jconsole
在 Liberty 中生成新的插件配置文件(按照第一个链接中的步骤操作)并将其复制到指向的路径在 IIS WebSphere 插件配置中。
关于iis - 如何使用 IBM WebSphere Application Server Liberty Profile 配置 IIS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32715719/