3 Replies Latest reply: Sep 6, 2013 5:33 PM by user7436361 RSS

    DefaultCacheServer not loading tangosol-coherence-override.xml file in eclipse

    user7436361

      I am unable to start the DefaultCacheServer on eclipse. It doesnot start/join the cluster.I get the following :-

       

       

      ava version "1.6.0_45"

       

      Java(TM) SE Runtime Environment (build 1.6.0_45-b06)

       

      Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

       

      2013-08-28 13:21:09.258/0.328 Oracle Coherence 3.6.1.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"

       

      2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/C:/Cache/bin/tangosol-coherence-override.xml"

       

      2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/cluster-config.xml" is not specified

       

      2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

       

      2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D6> (thread=main, member=n/a): Loaded edition data from "jar:file:/C:/coherence/lib/coherence.jar!/coherence-grid.xml"

         

      Oracle Coherence Version 3.6.1.0 Build 19636

       

      Grid Edition: Development mode

       

      Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

       

       

      2013-08-28 13:21:09.507/0.577 Oracle Coherence GE 3.6.1.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/Cache/src/config/product-config-coherence-cache-config.xml"

       

      2013-08-28 13:21:09.507/0.577 Oracle Coherence GE 3.6.1.0 <Info> (thread=main, member=n/a):

       

      Services

       

      (

       

      )

       

      Started DefaultCacheServer...

       

      I am using coherence - 3.6. Eclipse - Juno Release. JDK - 1.6 . The classpath setting in order is Project,JRE libraries, coherence.jar. Project has folder 'config' which has the XML files.

       

      I am able to start the client using the same tangosol-coherence-override.xml. Below is the XML file,

        • 1. Re: DefaultCacheServer not loading tangosol-coherence-override.xml file in eclipse
          user7436361

          <?xml version='1.0'?>

          <coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
             xsi:schemaLocation="http://xmlns.oracle.com/coherence/
             coherence-operational-config coherence-operational-config.xsd">
             <cluster-config xml-override="/cluster-config.xml">
             <member-identity> 
             <cluster-name>ProductConfig</cluster-name>
             <role-name>PC1</role-name> 
              </member-identity>   
          <!--  Enable Single Server mode, as we have only one JVM. -->
                <unicast-listener>
                 <address system-property="tangosol.coherence.localhost">127.0.0.1
                </address>
                </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"> 
                         config/product-config-coherence-cache-config.xml
              </param-value> 
                    </init-param> 
                 </init-params> 
             </configurable-cache-factory-config>
          </coherence>

           

          This is the VM arguments I am passing.

           

          -showversion -Dtangosol.coherence.override=tangosol-coherence-override.xml

          • 2. Re: DefaultCacheServer not loading tangosol-coherence-override.xml file in eclipse
            user639604

            It's your classpath setting caused the problem.

             

            Coherence will use the 1st tangosol-coherence-override.xml file it found in the classpath and this is the one it found.

             

            2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/C:/Cache/bin/tangosol-coherence-override.xml"

            • 3. Re: DefaultCacheServer not loading tangosol-coherence-override.xml file in eclipse
              user7436361

              Yes, whatever tangosol-coherence-override.xml has found,is the right one. Coherence(DefaultCacheServer.java) is not reading the configuration from this XML. If I run my own client program passing this XML, cluster is started.

               

              Is there any other configuration, that is needed to run DefaultCacheServer.java ?