本文介绍了无法从Web应用程序连接一致性集群的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Websphere应用程序服务器8.5上运行的Web应用程序.我在WebLogic上运行了一致性群集服务器.我想连接此Web应用程序以加入一致性集群.我得到错误提示:

I have a web application which is running on Websphere application server 8.5. I have coherence cluster server running on the WebLogic. I want to connect this web application to join the coherence cluster. I get the error shown blow:

[4/22/14 14:29:40:119 CDT] 00000074 SystemErr     R 2014-04-22 14:29:40.119/94.607 Oracle Coherence GE 12.1.2.0.0 <Info> (thread=WebContainer : 0, member=n/a): Loaded cache configuration from "file:/C:/IBM/WebSphere/AppServer/profiles/AppSrvJDK7/installedApps/Machine01Node02Cell/single-sign-on-coherence-ear.ear/single-sign-on-coherence-WAR1.0.war/WEB-INF/classes/coherence-cache-config.xml"
    [4/22/14 14:29:40:503 CDT] 00000074 SystemErr     R 2014-04-22 14:29:40.503/94.991 Oracle Coherence GE 12.1.2.0.0 <Info> (thread=WebContainer : 0, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory
    [4/22/14 14:29:41:114 CDT] 00000074 SystemErr     R 2014-04-22 14:29:41.114/95.602 Oracle Coherence GE 12.1.2.0.0 <D4> (thread=WebContainer : 0, member=n/a): TCMP bound to /172.17.108.156:8088 using SystemDatagramSocketProvider
[4/22/14 14:30:11:661 CDT] 00000074 SystemErr     R 2014-04-22 14:30:11.660/126.148 Oracle Coherence GE 12.1.2.0.0 <Warning> (thread=Cluster, member=n/a): Delaying formation of a new cluster; waiting for well-known nodes to respond

以下是我的替代xml文件:

Below is my override xml file:

<?xml version="1.0" encoding="UTF-8"?>
<coherence
    xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config http://xmlns.oracle.com/coherence/coherence-operational-config/1.2/coherence-operational-config.xsd">

    <cluster-config>
        <member-identity>
            <cluster-name system-property="tangosol.coherence.cluster">defaultCoherenceCluster</cluster-name>
            <member-name system-property="tangosol.coherence.member">wls_cluster_1</member-name>
            <role-name system-property="tangosol.coherence.role">CacheClient</role-name>
        </member-identity>
        <unicast-listener>

            <well-known-addresses>
                <socket-address id="1">
                    <address>127.0.0.1</address>
                    <port>7003</port>
                </socket-address>
                <socket-address id="2">
                    <address>127.0.0.1</address>
                    <port>7006</port>
                </socket-address>
            </well-known-addresses>
            <!--    
            <address system-property="tangosol.coherence.localhost">localhost</address>
            <port system-property="tangosol.coherence.localport">8088</port>
            <port-auto-adjust system-property="tangosol.coherence.localport.adjust">
                true
            </port-auto-adjust>
            -->

        </unicast-listener>
        <multicast-listener>
            <time-to-live system-property="tangosol.coherence.ttl">0</time-to-live>
        </multicast-listener>
    </cluster-config>
    <configurable-cache-factory-config>
        <init-params>
            <init-param>
                <param-type>java.lang.String</param-type>
                <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml
                </param-value>
            </init-param>
        </init-params>
    </configurable-cache-factory-config>
</coherence>

从该错误中,我可以看到该Web应用程序无法连接到WKA.有人可以帮我解决我无法连接的问题吗?我已验证群集已启动& ;;运行中.

From the error, I can see that the web application is not able to connect to the WKA. Can some one help me on what could be cause that I am not able to connect? I have verified that the cluster is up & running.

推荐答案

您必须在Weblogic和Websphere服务器的启动脚本中将主机和端口作为JVM参数传递,前提是必须同时存在所有JVM的计算机.彼此之间有适当的联系. JVM参数应同时包含weblogic和webshpere主机和端口.这样,两个服务器都可以从JVM识别其他成员.参数示例:

You need to pass the hosts and ports as JVM arguments in the startup script of both Weblogic and websphere server provided both the machines where all the JVM are present, must have proper connection each other. JVM arguments should contain both weblogic and webshpere hosts and ports. So that, both servers can identify the other members from JVMs. Example arguments:

COHERENCE_L_HOST="-Dtangosol.coherence.localhost=localhost"
COHERENCE_L_PORT="-Dtangosol.coherence.localport=8080"
COHERENCE_W_HOST1="-Dtangosol.coherence.wka.host.1=localhost"
COHERENCE_W_PORT1="-Dtangosol.coherence.wka.port.1=8085"
COHERENCE_W_HOST2="-Dtangosol.coherence.wka.host.2=localhost"
COHERENCE_W_PORT2="-Dtangosol.coherence.wka.port.2=8089"
COHERENCE_W_HOST3="-Dtangosol.coherence.wka.host.3=localhost"
COHERENCE_W_PORT3="-Dtangosol.coherence.wka.port.3=8090"

这篇关于无法从Web应用程序连接一致性集群的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 07:28