【问题标题】:Error configuring Coherence Cache on Oracle Weblogic server 10.3.4在 Oracle Weblogic server 10.3.4 上配置 Coherence Cache 时出错
【发布时间】:2012-05-17 22:31:06
【问题描述】:

我正在尝试在 Oracle Web Logic Server 10.3.4 上配置 Coherence 3.7,但是当我尝试使用 eclipse 在服务器上运行应用程序时,出现以下错误。

,任务“14”的 ID 为“1336561103127”。错误是:“weblogic.application.ModuleException:不存在支持存储的节点>用于服务分布式会话” weblogic.application.ModuleException:服务分布式会话不存在启用存储的节点 在 weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1497) 在 weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:438) 在 weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375) 在 weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) 在 weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:95) 截断。查看日志文件以获取完整的堆栈跟踪 原因:com.tangosol.net.RequestPolicyException:服务 DistributedSessions 不存在启用存储的节点 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.o>nMissingStorage(PartitionedCache.CDB:32) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.s>endStorageRequest(PartitionedCache.CDB:11) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.a>ddIndex(PartitionedCache.CDB:11) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.add>Index(PartitionedCache.CDB:1) 在 com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1) 截断。查看完整堆栈跟踪的日志文件

应用程序“_auto_generated_ear_”。> nMissingStorage(PartitionedCache.CDB:32) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.s>endStorageRequest(PartitionedCache.CDB:11) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.a>ddIndex(PartitionedCache.CDB:11) 在 com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.add>Index(PartitionedCache.CDB:1) 在 com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1) 截断。查看完整堆栈跟踪的日志文件

我检查了缓存启动脚本并在其中启用了本地存储,但它仍然不起作用。 有人可以为我提供在 Weblogic Server(在 Web 控制台和应用程序中)上配置一致性缓存的正确步骤,或者建议我收到此错误的可能原因。

【问题讨论】:

    标签: caching weblogic portal oracle-coherence


    【解决方案1】:

    这可能在几种不同的情况下发生。启用存储的节点未连接到禁用存储的节点(在您的情况下为 WebLogic),或者启用存储的节点未启用 SESSION 本地存储。确认集群在运行时包含启用存储的节点,并确认缓存服务器已使用以下选项启动:

    -Dtangosol.coherence.session.localstorage=true

    【讨论】:

    • @Jeff 感谢您的回复。我已经在缓存服务器运行脚本中添加了这个参数,但没有成功。如果您能提供我在 Weblogic Server 上配置 Coherence 缓存的快速步骤,包括需要在服务器控制台和项目中进行的更改,那就太好了
    • 如果将此参数添加到 WebLogic 启动脚本,那么它应该可以正常工作。这会将 Coherence 数据存储在与 WebLogic 相同的堆中。
    • @Jeff 你是说 tangosol.coherence.distributed.localstorage 属性吗?
    • 不 - coherence.oracle.com/display/COH35UG/Coherence*Web+Cache+Configuration
    • 谢谢 .. 这行得通 - 我的场景 - 一个带有 glassfish+(类路径中的一致性 jar)+外部一致性服务器的简单模型。
    【解决方案2】:

    您必须在 Weblogic Server 安装中指定一些 JVM 参数。转到环境-> 服务器并选择您的服务器。在选项卡配置中选择选项卡启动服务器并使用以下 JVM 参数填写参数字段

    -Dtangosol.coherence.cacheconfig=session-cache-config.xml -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.session.localstorage=true 
    -Dtangosol.coherence.cluster=CoherenceCluster 
    -Dtangosol.coherence.clusteraddress=231.1.3.4 
    -Dtangosol.coherence.clusterport=7744
    

    这对我有用,我遇到了完全相同的错误。

    【讨论】:

      【解决方案3】:

      我遇到了这个问题。两个本地存储系统参数都设置为 true。问题是我的缓存配置没有加载,所以请求的缓存服务根本不知道那个“服务器”节点。

      所以如果你遇到这个问题,请检查你的缓存配置是否正在加载(“Loaded cache configuration from ...”)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-03-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-22
        • 1970-01-01
        • 2012-06-17
        相关资源
        最近更新 更多