我正在尝试在两台IBM WAS(Liberty Profile V8.5.5)服务器前安装IIS(版本8.x,Windows 2008)。
我还在WAS服务器上部署了我的Runtime,并且他们两个都完全正常工作。
当我尝试在IIS中配置两者时,我遇到以下问题: 当我点击/时,它打开控制台,但在提供用户名和密码并点击回车后,它再次显示登录页面。
在完成日志跟踪后,我认为设置cookie JSESSIONID存在一些问题,但我找不到解决问题的方法。
我的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="Trace" Name="C:\AppServer\Logs\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="*:9443"/>
<VirtualHost Name="*:443"/>
<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="server1111" ConnectTimeout="5" LoadBalanceWeight="2" ExtendedHandshake="false" MaxConnections="-1" Name="default_node_defaultServer0" ServerIOTimeout="900" WaitForContinue="false">
<Transport Hostname="<IP1>" Port="9080" Protocol="http"/>
<Transport Hostname="<IP1>" Port="9443" Protocol="https">
<Property Name="keyring" Value="keyring.kdb"/>
<Property Name="stashfile" Value="keyring.sth"/>
<Property Name="certLabel" Value="LibertyCert"/>
</Transport>
</Server>
<Server CloneID="server2222" ConnectTimeout="5" LoadBalanceWeight="2" ExtendedHandshake="false" MaxConnections="-1" Name="default_node_defaultServer1" ServerIOTimeout="900" WaitForContinue="false">
<Transport Hostname="<IP2>" Port="9080" Protocol="http"/>
<Transport Hostname="<IP2>" 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"/>
<Server Name="default_node_defaultServer1"/>
</PrimaryServers>
</ServerCluster>
<UriGroup Name="default_host_defaultServer_default_node_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/worklightconsole/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/wladmin/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/appcenterconsole/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/HelloWorld/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/applicationcenter/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBMJMXConnectorREST/*"/>
</UriGroup>
<Route ServerCluster="defaultServer_default_node_Cluster" UriGroup="default_host_defaultServer_default_node_Cluster_URIs" VirtualHostGroup="default_host"/>
</Config>
以下是IIS的跟踪日志:
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereHandleSessionAffinity:检查会话亲和力
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereHandleSessionAffinity:检查SSL cookie亲和性:SSLJSESSION
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:lib_htrequest:htrequestGetCookieValue:寻找cookie:&#39; SSLJSESSION&#39;
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:lib_htrequest:htrequestGetCookieValue:找不到cookie:&#39; SSLJSESSION&#39;
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereHandleSessionAffinity:检查cookie亲和性:JSESSIONID
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:lib_htrequest:htrequestGetCookieValue:寻找cookie:&#39; JSESSIONID&#39;
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:lib_htrequest:htrequestGetCookieValue:找不到cookie:&#39; JSESSIONID&#39;
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereHandleSessionAffinity:检查网址重写关联:jsessionid
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereParseSessionID:从&#39; /worklightconsole/login.html'解析会话ID;
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereParseSessionID:找不到jsessionid的会话
[Tue Sep 29 09:40:46 2015] 00000f10 00001430 - DEBUG:ws_common:websphereHandleSessionAffinity:绕过检查partitionID cookie affinity。没有存储的分区表。
任何帮助都将受到高度赞赏。