我正在尝试连接 Bluemix Liberty 容器并使用 Bluemix Session 缓存服务。
到目前为止我做了什么:
- 创建桥应用并添加 Session 缓存服务
- 创建 Liberty 容器并与桥应用程序连接
- 按照此链接:http ://www.ibm.com/developerworks/cloud/library/cl-sessioncache-app/index.html获取使用会话缓存的示例应用程序并能够在服务概览仪表板中查看进度
- 在 liberty 容器内安装了 Websphere Extreme scale,并验证该功能已被 liberty 服务器激活并且可以使用。
现在,如果我尝试使用该应用程序并使用浏览器导航到 contextRoot,我将收到以下异常:
com.ibm.ws.xsspi.xio.exception.InvalidXIORefException <br />
Source = com.ibm.ws.xsspi.xio.actor.XIORegistry <br />
probeid = 659<br />
Stack Dump = com.ibm.ws.xsspi.xio.exception.InvalidXIORefException [originating=127.0.0.1:0;exid=79]: unable to find actor at index=17 <br />
com.ibm.ws.xsspi.xio.exception.InvalidXIORefException<br />
Source = com.ibm.ws.xsspi.xio.actor.XIORegistry<br />
probeid = 651<br />
Stack Dump = com.ibm.ws.xsspi.xio.exception.InvalidXIORefException [originating=127.0.0.1:0;exid=64]: XIORef at 17 does not have the same id as target xioref
java.lang.RuntimeException<br />
Source = com.ibm.ws.xs.sessionmanager.GridAvailability.run<br />
probeid = 164<br />
Stack Dump = java.lang.RuntimeException: org.omg.CORBA.TRANSIENT: java.net.SocketTimeoutException: connect timed out
我在 server.xml 中提供了所有必需的值,例如 objectGridName、catalogHostPort 硬编码,因为用于获取记录的服务信息的环境变量也不起作用。
对此有任何提示或解决方案吗?我在哪里错过了关键的联系,以至于它神奇地起作用了?
更新:server.xml
<featureManager>
<feature>webProfile-6.0</feature>
<feature>eXtremeScale.webapp-1.1</feature>
<feature>icap:appstate-1.0</feature>
</featureManager>
<httpEndpoint id="defaultHttpEndpoint"
host="*"
httpPort="9080"
httpsPort="443" />
<keyStore id="defaultKeyStore"
password="Liberty" />
<xsWebApp id="mysession"
objectGridName="value of session credential gridName"
objectGridType="REMOTE"
catalogHostPort="value of session credential catalogEndPoint"
securityEnabled="true"
credentialGeneratorClass="com.ibm.websphere.objectgrid.security.plugins.builtins.UserPasswordCredentialGenerator"
credentialGeneratorProps="value of session credential username and password"
/>
<httpSession idReuse="true" />
<application name="sessionCacheSample" context-root="/" location="sessionCacheSample.war" type="war"/>