Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Websphere对象cahce实现不工作_Java_Websphere_Websphere Liberty - Fatal编程技术网

Java Websphere对象cahce实现不工作

Java Websphere对象cahce实现不工作,java,websphere,websphere-liberty,Java,Websphere,Websphere Liberty,尝试使用DistributedObjectCache在WAS liberty server中的群集之间共享数据。 我已经根据 我在链接中使用了方法5,我的服务器版本是7,web.xml版本是2.4 在我的“server.xml”和ibm-web-bnd.xmi上进行配置之后,我使用下面的代码在应用程序启动时获取map实例 DistributedObjectCache dm1a =(DistributedObjectCache)ic.lookup("java:comp/env/dmap/Layou

尝试使用DistributedObjectCache在WAS liberty server中的群集之间共享数据。 我已经根据

我在链接中使用了方法5,我的服务器版本是7,web.xml版本是2.4 在我的“server.xml”和ibm-web-bnd.xmi上进行配置之后,我使用下面的代码在应用程序启动时获取map实例

DistributedObjectCache dm1a =(DistributedObjectCache)ic.lookup("java:comp/env/dmap/LayoutCache");
dm1a始终为空

因为servlet缓存用于缓存JSP页面。等等,我需要缓存java对象,所以我使用了DistributedObjectCache 我不确定服务器是否正在读取.xmi文件,因为我已经通过更改其中的webapp引用进行了测试,该引用与web.xml不同,但在服务器启动时没有引发错误


我有什么遗漏吗?

Version7或Liberty?并非所有的HWLP-javaee7-16.0.0.4都是我们正在使用的版本