2011年7月29日金曜日

Error when starting manage-sever using Coherence*Web

log:
2011-07-25 12:01:39.819/13.122 Oracle Coherence GE 3.6.0.4 <Error>
(thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)', member=n/a): Error while starting cluster:
java.lang.RuntimeException: Failed to start Service "Cluster"
(ServiceState=SERVICE_STOPPED, STATE_JOINING)
at
com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
at
com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at
com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:637)
at
com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at
com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at
com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
at
com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at
com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at
com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
solve:
the coherence configuration has mismatch between coherence cache
server and weblogic application coherence.
see
http://download.oracle.com/docs/cd/E18686_01/coh.37/e18690/cweb_wls.htm#CHDEEJCE
coherence.cmd sample that works
@echo off
@
@rem This will start a console application
@rem demonstrating the functionality of the Coherence(tm) API
@
setlocal
:config
@rem specify the Coherence installation directory
set coherence_home=%~dp0\..
@rem specify if the console will also act as a server
set storage_enabled=false
@rem specify the JVM heap size
set memory=128m

:start
if not exist "%coherence_home%\lib\coherence.jar" goto instructions
if "%java_home%"=="" (set java_exec=java) else (set
java_exec=%java_home%\bin\java)

:launch
if "%1"=="-jmx" (
set jmxproperties=-Dcom.sun.management.jmxremote
-Dtangosol.coherence.management=all
-Dtangosol.coherence.management.remote=true
shift
)
@rem java_opts for Coherence*Web reference page:
http://download.oracle.com/docs/cd/E18686_01/coh.37/e18690/cweb_wls.htm#CHDEEJCE
set java_opts=-Xms%memory% -Xmx%memory% -cp
%coherence_home%/lib/coherence.jar;%coherence_home%/lib/coherence-web-spi.war
^
-Dtangosol.coherence.management.remote=true
-Dtangosol.coherence.cacheconfig=WEB-INF/classes/session-cache-config.xml ^
-Dtangosol.coherence.distributed.localstorage=true %jmxproperties%

%java_exec% -server -showversion %java_opts%
com.tangosol.net.CacheFactory %1
goto exit
:instructions
echo Usage:
echo ^<coherence_home^>\bin\coherence.cmd
goto exit
:exit
endlocal
@echo on

0 件のコメント:

コメントを投稿