如何使用IBM WebSphere Application Server Liberty Profile配置IIS? [英] How to configure IIS with IBM WebSphere Application Server Liberty Profile?
问题描述
我正在尝试在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(Verison 7.1)
- 已安装的IBM WAS WebServer插件
- 已安装的IBM WebSphere Customization Toolbox(V8.5)
我还部署了一个MobileFirst Runtime,它的工作完全正常。现在剩下的唯一步骤是使用IIS进行配置。
我正在关注以下链接,但无法彻底理解:
我的plugin-cfg.xml如下所示:
<? xml version =1.0encoding =UTF-8?>
< Config ASDisableNagle =falseAcceptAllContent =falseAppServerPortPreference =HostHeaderChunkedResponse =falseFIPSEnable =falseIISDisableNagle =falseIISPluginPriority =HighIgnoreDNSFailures =falseRefreshInterval = 60ResponseChunkSize =64SSLConsolidate =falseTrustedProxyEnable =falseVHostMatchingCompat =false>
< Log LogLevel =ErrorName =。\ logs\defaultServer\http_plugin.log/>
< Property Name =ESIEnableValue =true/>
< Property Name =ESIMaxCacheSizeValue =1024/>
< Property Name =ESIInvalidationMonitorValue =false/>
< Property Name =ESIEnableToPassCookiesValue =false/>
< Property Name =PluginInstallRootValue =。/>
< VirtualHostGroup Name =default_host>
< VirtualHost Name =*:443/>
< VirtualHost Name =*:9443/>
< VirtualHost Name =*:80/>
< VirtualHost Name =*:9080/>
< / VirtualHostGroup>
< ServerCluster CloneSeparatorChange =falseGetDWLMTable =falseIgnoreAffinityRequests =trueLoadBalance =Round RobinName =defaultServer_default_node_ClusterPostBufferSize =0PostSizeLimit = - 1RemoveSpecialHeaders =trueRetryInterval = 60 >
< Server CloneID =89f03a0d-7c05-4c33-a82c-12da20477cddConnectTimeout =5ExtendedHandshake =falseMaxConnections = - 1Name =default_node_defaultServer0ServerIOTimeout =900WaitForContinue =false >
< Transport Hostname =localhostPort =9080Protocol =http/>
< Transport Hostname =localhostPort =9443Protocol =https>
< Property Name =keyringValue =keyring.kdb/>
< Property Name =stashfileValue =keyring.sth/>
< Property Name =certLabelValue =LibertyCert/>
< / Transport>
< / Server>
< PrimaryServers>
< Server Name =default_node_defaultServer0/>
< / PrimaryServers>
< / ServerCluster>
< UriGroup Name =default_host_defaultServer_default_node_Cluster_URIs>
< Uri AffinityCookie =JSESSIONIDAffinityURLIdentifier =jsessionidName =/ RestProject / */>
< Uri AffinityCookie =JSESSIONIDAffinityURLIdentifier =jsessionidName =/ wladmin / */>
< Uri AffinityCookie =JSESSIONIDAffinityURLIdentifier =jsessionidName =/ HelloWorld / */>
< Uri AffinityCookie =JSESSIONIDAffinityURLIdentifier =jsessionidName =/ IBMJMXConnectorREST / */>
< Uri AffinityCookie =JSESSIONIDAffinityURLIdentifier =jsessionidName =/ worklightconsole / */>
< / UriGroup>
< Route ServerCluster =defaultServer_default_node_ClusterUriGroup =default_host_defaultServer_default_node_Cluster_URIsVirtualHostGroup =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 - 按照配置Web服务器插件Liberty配置文件和安装和使用WebSphere Customization Toolbox
- 您应该能够通过Toolbox自动配置IIS,如果由于某些原因无法解决,请参考手动步骤配置Microsoft Internet信息服务(IIS)
- 在Liberty Core机器上,如果MobileFirst运行时工作正常,您可能已经配置了Java,如果不是,您还必须通过Installation Manager下载WebSphere Java SDK以获取详细信息,请参阅安装和卸载SDK Java Technology Edition V7.0或7.1 for Liberty
- 如果您的申请是w直接orking,但不是通过IIS,你必须通过
jconsole
在Liberty中生成新的插件配置文件(按照第一个链接中的步骤)并将其复制到指向的路径IIS WebSphere插件配置。
I am trying to setup IIS (version 8.x, windows 2008) in front of IBM WAS(Liberty Profile) server so that it can route all specific requests to IBM WebSphere application server(Liberty Profile).
I have already installed & configured following items :
- Installed IBM WebSphere Application Server Liberty Core (Version 8.5.5)
- Installed IBM MobileFirst Platform Server (Verison 7.1)
- Installed WebServer Plugins for IBM WAS
- Installed IBM WebSphere Customization Toolbox (Version 8.5)
I have also deployed one MobileFirst Runtime and it's working totally fine. Now the only step remaining is configuration with IIS.
I am following below link, But could not understand it thoroughly :
As I have installed IBM WAS Liberty Core, It did note come up with any IBM JAVA SDK. Is It required? How can I install IBM Java SDK for IBM WAS Liberty?
I am really lost about what should be the first step.
Edit on 24/09/2015 :
- I downloaded & installed IBM Java SDK for Liberty Core.
- I generated plugin-cfg.xml
- I configured IIS with plugin-cfg.xml using this link : https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/tins_manualWebIIS.html
Now all application requests are redirecting to IBM WAS. When I hit, localhost/HelloWorld/apps/services/www/HelloWorld/desktopbrowser/default/index.html, HelloWorld app is working totally fine.
Now the only problem is when I hit /worklightconsole, It is not able to get deployed application and adapters.
My plugin-cfg.xml looks like this :
<?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>
I am getting following errors :
Failed request: /worklightconsole/services/management-apis/1.0/runtimes/HelloWorld/applications
Failed request: /worklightconsole/services/management-apis/1.0/runtimes/HelloWorld
Failed request: /worklightconsole/services/management-apis/1.0/runtimes/HelloWorld/adapters?offset=0&pageSize=15
Any help would be highly appreciated.
Just to summarize all the links and steps:
- On the machine that you have IIS you have to install WebSphere plugin and WebSphere Customization Toolbox - follow steps provided in Configuring a web server plug-in for the Liberty profile and in Installing and using the WebSphere Customization Toolbox
- You should be able to configure IIS automatically via Toolbox, if you cant for some reason, here are manual stepsConfiguring Microsoft Internet Information Services (IIS)
- On your Liberty Core machine, you probably already have Java configured if the MobileFirst runtime is working fine, if not you have to download WebSphere Java SDK also via Installation Manager for details see Installing and uninstalling SDK Java Technology Edition Version 7.0 or 7.1 for Liberty
- If your applications are working directly, but not via IIS, you have to generate new plugin configuration file in Liberty via
jconsole
(follow the steps in the first link) and copy it to the path pointed in the IIS WebSphere plugin configuration.
这篇关于如何使用IBM WebSphere Application Server Liberty Profile配置IIS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!