iis - 如何使用 IBM WebSphere Application Server Liberty Profile 配置 IIS?

标签 iis websphere-8 websphere-liberty

我正在尝试在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 进行配置。

我正在点击以下链接,但无法彻底理解它:

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 时,它​​无法获取已部署的应用程序和适配器。

Worklight Console Screenshot

我的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 - 如何使用 IBM WebSphere Application Server Liberty Profile 配置 IIS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32715719/

相关文章:

asp.net - 配置 IIS 7 和 ASP.NET 应用程序进行 URL 路由

c# - 为什么 sqlbulkcopy 在 iis 下运行的 asp.net 网站中有这种奇怪的行为?

websphere 应用程序服务器 - java.lang.IllegalArgumentException : Property reuse-instanceis not supported

crash - 我应该如何调查导致 Bluemix 崩溃的原因?

java - 使用 maven 依赖项从 maven 嵌入运行 Liberty 服务器

MicroProfile 的 WebSphere Application Server 支持

windows - 为什么使用IIS7.5的Microsoft.Web.Management.dll只能在64位进程中使用?

php - IIS 陷入无限加载循环

ssl - 在 Maximo/Jython 中下载 SetupTools 失败并出现 HTTP 错误 403 SSL is required

java - 由于 SRVE0303E,WAS 8.5.5.9 无法启动 Web 应用程序