jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Forbes" <forbes...@googlemail.com>
Subject Re: Yet an other problem in starting Remote JCS !
Date Thu, 06 Sep 2007 15:54:30 GMT
It looks pretty correct - I use something very similar. I'm not a
windows user,  but maybe the forward slash on remote.cache.ccf needs
to be a backslash. On unix the forward slash is correct.

Also try setting a system property
-Djava.security.policy=conf/security.policy

and add a logger - set to INFO
-Dlog4j.configuration=file:conf/log4j.xml

Regards
Al


On 06/09/07, TMUser <mtadlaoui@hotmail.com> wrote:
>
> Hello,
> I need your help to start the remote cache.
> When I try to load it I have the following message:
>
> ---------------------------------------------------------------------------------
> Exception in thread "main" java.lang.IllegalStateException: Failed to load
> properties for name [/remote.cache.ccf]
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:242)
>         at
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.createCacheManager(RemoteCacheServer.java:152)
>         at
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.java:123)
>         at
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.<init>(RemoteCacheServer.java:113)
>         at
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCacheServerFactory.java:17
>         at
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.main(RemoteCacheServerFactory.java:342)
> ---------------------------------------------------------------------------------
>
> That is my directory tree:
> +JCS:
>      StartRemote.bat
>      +jars:
>           commons-logging-1.1.jar
>           concurent.jar
>           jcs-1.3.jar
>           log4j-1.2.8.jar
>      +conf:
>           log4j.properties
>           concurrent.jar
>           jcs-1.3.jar
>           log4j-1.2.8.jar
>
> The files "commons-logging-1.1.jar", "concurrent.jar", "jcs-1.3.jar" and
> "log4j-1.2.8.jar" are in the directory named "jars".
>
> The files log4j.properties, cache.policy, remote.cache.ccf are in the
> directory named "conf"
>
>
> The Start Remote script (StartRemote.bat) is the following :
> ---------------------------------------------------------------------------------
> @rem echo off
> set CURDIR=%CD%
> echo %CURDIR%
> %JAVA_HOME%\bin\java -verbosegc -XX:+PrintTenuringDistribution -ms10m
> -mx200m -classpath
> ".\;.\jars\jcs-1.3.jar;.\jars\log4j-1.2.8.jar;.\jars\commons-logging-1.1.jar;.\jars\concurrent.jar;.\conf"
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
> /remote.cache.ccf
> ---------------------------------------------------------------------------------
>
> The cache.policy file contain :
> ---------------------------------------------------------------------------------
> grant {
>     permission java.security.AllPermission;
> };
> ---------------------------------------------------------------------------------
>
> The remote.cache.ccf file contain :
> ---------------------------------------------------------------------------------
> # Registry used to register and provide the
> # IRemoteCacheService service.
> registry.host=localhost
> registry.port=1102
> # call back port to local caches.
> remote.cache.service.port=1102
> # cluster setting
> remote.cluster.LocalClusterConsistency=false
> remote.cluster.AllowClusterGet=false
> ---------------------------------------------------------------------------------
>
> Thanks for your help.
> Mohammed.
>
>
> --
> View this message in context: http://www.nabble.com/Yet-an-other-problem-in-starting-Remote-JCS-%21-tf4392739.html#a12524516
> Sent from the JCS - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message