<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "ehcache distributed cache setup issue"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "ehcache distributed cache setup issue"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>ehcache distributed cache setup issue</title>
				<description><![CDATA[ Hi , I am trying to setup distributed caching using ehcache.
I am using open source terracotta-3.6.1 tar.

ehcache-core-2.5.1.jar
ehcache-terracotta-2.5.1.jar
slf4j-api-1.6.1.jar
slf4j-jdk14-1.6.1.jar
terracotta-toolkit-1.4-runtime-4.1.0.jar

My terracotta server array (Ative-Passive) starts properly.
But when I deploy my application on node and try to access it I get error : 

 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
 at com.komli.cache.CacheFactory.getCacheInstance(CacheFactory.java:31)
 at com.komli.cache.AspectCache.ajc$around$com_komli_cache_AspectCache$1$a361d0c8(AspectCache.aj:72)
 at com.komli.mgmt.adaptor.PublisherSettingsAdapter.getPublisherBasicSetting(PublisherSettingsAdapter.java:779)
 at com.komli.mgmt.adaptor.PublisherSettingsAdapter.populatePublisherBasicSetting(PublisherSettingsAdapter.java:890)
 at com.komli.mgmt.AdminServlet.searchPublisherAndSite(AdminServlet.java:862)
 at com.komli.mgmt.AdminServlet.handleSearchPublisherAndSite(AdminServlet.java:846)
 at com.komli.mgmt.AdminServlet.doPost(AdminServlet.java:201)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at com.komli.mgmt.filter.Activ ityLogFilter.doFilter(ActivityLogFilter.java:115)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:185)
 at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:159)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.ExceptionInInitializerError
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:414)
 ... 42 more
Caused by: net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was null
 at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:109)
 at net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:178)
 at net.sf.ehcache.terracotta.TerracottaClient.createNewClusteredInstanceFactory(TerracottaClient.java:198)
 at net.sf.ehcache.terracotta.TerracottaClient.createClusteredInstanceFactory(TerracottaClient.java:150)
 at net.sf.ehcache.CacheManager.doInit(CacheManager.java:397)
 at net.sf.ehcache.CacheManager.init(CacheManager.java:357)
 at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242)
 at net.sf.ehcache.CacheManager.create(CacheManager.java:853)
 at net.sf.ehcache.CacheManager.create(CacheManager.java:797)
 at com.komli.cache.ehcache.AbstractCache.<clinit>(AbstractCache.java:30)
 ... 48 more
Caused by: java.lang.ExceptionInInitializerError
 at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.<init>(StandaloneTerracottaClusteredInstanceFactory.java:35)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
 at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
 ... 57 more
Caused by: java.lang.RuntimeException: java.io.IOException: No such file or directory
 at com.terracotta.express.ClientFactoryImpl.<init>(ClientFactoryImpl.java:88)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
 at java.lang.Class.newInstance0(Class.java:372)
 at java.lang.Class.newInstance(Class.java:325)
 at org.terracotta.express.Util.getImplInstance(Util.java:11)
 at org.terracotta.express.ClientFactoryExtras.<clinit>(ClientFactoryExtras.java:17)
 ... 63 more
Caused by: java.io.IOException: No such file or directory
 at java.io.UnixFileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1716)
 at java.io.File.createTempFile(File.java:1804)
 at java.io.File.createTempFile(File.java:1840)
 at com.terracotta.express.ClientFactoryImpl.createTempDir(ClientFactoryImpl.java:303)
 at com.terracotta.express.ClientFactoryImpl.<init>(ClientFactoryImpl.java:64)

I am trying to debug this issue. 
Please help. thanks in advance 

]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6843.page#34347</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6843.page#34347</link>
				<pubDate><![CDATA[Wed, 28 Mar 2012 04:41:46]]> GMT</pubDate>
				<author><![CDATA[ unmeshdk]]></author>
			</item>
			<item>
				<title>Re:ehcache distributed cache setup issue</title>
				<description><![CDATA[ thanks. 
the setup configuration problem is resolved.

But now when the cache configurations are loaded on client node it logs some error and my application just stops working .

Below is the snapshot of the client  log 

        <autolock>
            <method-expression>* org.terracotta.modules.ehcache.transaction.ReadCommittedClusteredSoftLock.isExpired*(..)
            </method-expression>
            <lock-level>write</lock-level>
        </autolock>
        <autolock>
            <method-expression>* org.terracotta.modules.ehcache.transaction.ReadCommittedClusteredSoftLockFactory.collectExpiredTransactionIDs*(..)
            </method-expression>
            <lock-level>write</lock-level>
        </autolock>
    </locks>

    <distributed-methods>
        <method-expression run-on-all-nodes="false">
            void org.terracotta.modules.ehcache.event.ClusteredEventReplicator.dmiNotify*(..)
        </method-expression>
        <method-expression run-on-all-nodes="false">
            void org.terracotta.modules.ehcache.store.ClusteredStore.fireClusterCoherent*(..)
        </method-expression>
        <method-expression run-on-all-nodes="false">
            void org.terracotta.modules.ehcache.store.ClusteredStore.configChanged*(..)
        </method-expression>
    </distributed-methods>

</xml-fragment>
2012-03-28 19:21:52,374 [http-8080-Processor24] INFO com.terracottatech.dso - Trying to get Groupname ID Map from http://172.16.4.35:9510/groupidmap
2012-03-28 19:21:52,388 [http-8080-Processor24] INFO com.terracottatech.dso - Trying to get Cluster topology from http://172.16.4.35:9510/groupinfo
2012-03-28 19:21:52,392 [http-8080-Processor24] INFO com.terracottatech.dso - Trying to get Cluster topology from http://172.16.4.35:9510/groupinfo
2012-03-28 19:21:52,539 [http-8080-Processor24] ERROR com.terracottatech.console - 
******
Test35]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6843.page#34352</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6843.page#34352</link>
				<pubDate><![CDATA[Wed, 28 Mar 2012 07:05:17]]> GMT</pubDate>
				<author><![CDATA[ unmeshdk]]></author>
			</item>
			<item>
				<title>Re:ehcache distributed cache setup issue</title>
				<description><![CDATA[ Hi,

It seems your configuration is not correct , can you please share your tc-config.xml and your system set up details.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6843.page#34390</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6843.page#34390</link>
				<pubDate><![CDATA[Fri, 30 Mar 2012 02:50:37]]> GMT</pubDate>
				<author><![CDATA[ rajoshi]]></author>
			</item>
			<item>
				<title>Re:ehcache distributed cache setup issue</title>
				<description><![CDATA[ hi rajoshi,

thanks for reply.

I fixed the problem. 
The Cache Server(s) IP and host name should be in /etc/hosts file on each terracotta client. 

thanks again.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6843.page#34391</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6843.page#34391</link>
				<pubDate><![CDATA[Fri, 30 Mar 2012 02:58:17]]> GMT</pubDate>
				<author><![CDATA[ unmeshdk]]></author>
			</item>
	</channel>
</rss>