Coherence:weblogic.application.ModuleException:服务DistributedSessions

时间:2017-10-09 15:05:42

标签: weblogic oracle-coherence

我正在尝试使用Coherence服务器(与我的客户端分开存储会话数据)用于我的weblogic服务器(客户端)。我收到了像

这样的错误
weblogic.application.ModuleException: No storage-enabled nodes exist for service DistributedSessions:com.tangosol.net.RequestPolicyException:No storage-enabled nodes exist for service DistributedSessions

过去在论坛中提出了类似问题,我已经验证了所有主题,但未能找到正确的解决方案。

有人可以帮忙吗?

1)Coherence Server上的配置:Keep tangosol-coherence-override on the Coherence server class path.

2)xml文件样本:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE coherence SYSTEM "coherence.dtd">
<coherence>
    <cluster-config>
        <member-identity>
            <cluster-name>ClusterName</cluster-name>
        </member-identity>
        <unicast-listener>
            <address system-property='tangosol.coherence.localhost' />
            <port system-property='tangosol.coherence.localport'>18088</port>
            <well-known-addresses>
                <socket-address id='1'>
                    <address>830.8.119.55</address>
                    <port>18088</port>
                </socket-address>               
            </well-known-addresses>
        </unicast-listener>
        <shutdown-listener>
            <enabled system-property='tangosol.coherence.shutdownhook'>none</enabled>
        </shutdown-listener>
        <logging-config>
            <destination system-property='tangosol.coherence.log'>log4j</destination>
        </logging-config>
    </cluster-config>
</coherence>

3)使用命令启动coherence Server java -server -Xms1024m -Xmx1024m -cp ${COHERENCE_HOME}/../lib/coherence.jar:${COHERENCE_HOME}/../lib/coherence-web.jar:${COHERENCE_HOME}/../config/ -Dtangosol.coherence.session.localstorage=true com.tangosol.net.DefaultCacheServer 1> ${COHERENCE_HOME}/../logs/stdlog.log 2>&1 &

4)连贯服务器启动时的输出

2017-10-09 10:20:00.561/1.034 Oracle Coherence GE 3.7.1.16 <Info> **(thread=main, member=n/a): Loaded cache configuration from "jar:file:/home/xy6122/coherence/coherence/lib/coherence.jar!/coherence-cache-config.xml"**
2017-10-09 10:20:01.041/1.514 Oracle Coherence GE 3.7.1.16 <D4> (thread=main, member=n/a): TCMP bound to /830.8.119.55:18088 using SystemSocketProvider
2017-10-09 10:20:04.363/4.836 Oracle Coherence GE 3.7.1.16 <Info> (thread=Cluster, member=n/a): **Created a new cluster "<<ClusterName>>"** with Member(**Id=1, Timestamp=2017-10-09 10:20:01.093, Address=830.8.119.55:18088,** MachineId=65067, Location=site:,machine:zldv6413,process:23334, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=12, SocketCount=6) UID=0x820877370000015F0181BEC5FE2B46A8
2017-10-09 10:20:04.370/4.843 Oracle Coherence GE 3.7.1.16 <Info> (thread=main, member=n/a): Started cluster Name=<<ClusterName>>



MasterMemberSet(
  ThisMember=Member(Id=1, Timestamp=2017-10-09 10:20:01.093, Address=830.8.119.55:18088, MachineId=65067, Location=site:,machine:abcdv6413,process:23334, Role=CoherenceServer)
  OldestMember=Member(Id=1, Timestamp=2017-10-09 10:20:01.093, Address=130.8.119.55:18088, MachineId=65067, Location=site:,machine:zldv6413,process:23334, Role=CoherenceServer)
  ActualMemberSet=MemberSet(Size=1
    Member(Id=1, Timestamp=2017-10-09 10:20:01.093, Address=130.8.119.55:18088, MachineId=65067, Location=site:,machine:zldv6413,process:23334, Role=CoherenceServer)
    )
  MemberId|ServiceVersion|ServiceJoined|MemberState
    **1|3.7.1|2017-10-09 10:20:04.363|JOINED**
  RecycleMillis=1200000
  RecycleSet=MemberSet(Size=0
    )
  )

TcpRing{Connections=[]}
IpMonitor{Addresses=0, Timeout=15s}

2017-10-09 10:20:04.412/4.885 Oracle Coherence GE 3.7.1.16 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
2017-10-09 10:20:04.681/5.154 Oracle Coherence GE 3.7.1.16 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
2017-10-09 10:20:04.780/5.253 Oracle Coherence GE 3.7.1.16 <D5> (thread=ReplicatedCache, member=1): Service ReplicatedCache joined the cluster with senior service member 1
2017-10-09 10:20:04.795/5.268 Oracle Coherence GE 3.7.1.16 <D5> (thread=OptimisticCache, member=1): Service OptimisticCache joined the cluster with senior service member 1
2017-10-09 10:20:04.803/5.276 Oracle Coherence GE 3.7.1.16 <D5> (thread=Invocation:InvocationService, member=1): Service InvocationService joined the cluster with senior service member 1
2017-10-09 10:20:04.806/5.280 Oracle Coherence GE 3.7.1.16 <Info> (thread=main, member=1): 
Services
  (
  ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.7.1, OldestMemberId=1}
  InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
  PartitionedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
  ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STARTED), Id=3, Version=3.0, OldestMemberId=1}
  Optimistic{Name=OptimisticCache, State=(SERVICE_STARTED), Id=4, Version=3.0, OldestMemberId=1}
  InvocationService{Name=InvocationService, State=(SERVICE_STARTED), Id=5, Version=3.1, OldestMemberId=1}
  )

**Started DefaultCacheServer...**

5)启动Weblogic服务器 与其他命令行参数一起提供以下内容 -Dtangosol.coherence.session.localstorage=false 所以weblogic会将会话数据存储在coherence服务器而不是本地weblogic堆上。

6)在weblogic类路径上保留相同的tangosol-coherence-override.xml文件

7)能够启动weblogic服务器

8)部署Web应用程序时,我可以看到weblogic客户端已加入群集,但部署失败 2017-10-09 10:30:48.321/648.794 Oracle Coherence GE 3.7.1.16 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2017-10-09 10:30:48.149, Address=830.8.119.55:18090, MachineId=65067, Location=site:,machine:abcdv6413,process:28222, Role=WeblogicServer) joined Cluster with senior member 1 2017-10-09 10:30:48.655/649.128 Oracle Coherence GE 3.7.1.16 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior member 1 2017-10-09 10:30:49.077/649.550 Oracle Coherence GE 3.7.1.16 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedSessions with senior member 2

但部署失败,

weblogic.application.ModuleException: No storage-enabled nodes exist for service DistributedSessions:com.tangosol.net.RequestPolicyException:No storage-enabled nodes exist for service DistributedSessions

在weblogic服务器上我已经安装了coherence-web-spi.war作为库,并且在weblogic.xml中也特定了lib-ref

我不确定我错过了什么。

1 个答案:

答案 0 :(得分:0)

您必须在配置文件中插入架构的所有地址:weblogic服务器(datastorage = false)和一致性服务器:

py_DT['crossing'].str.replace("ABC", "A")