<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "shiro+ehcache+terracotta, web project,can not redirect"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/13.page</link>
		<description><![CDATA[Latest messages posted in the topic "shiro+ehcache+terracotta, web project,can not redirect"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>shiro+ehcache+terracotta, web project,can not redirect</title>
				<description><![CDATA[ My web project use spring mvc and shiro, and config the ehcache+terracotta as the session manager. it can work. The web application can startup, and user can login it. But when i edit a form then submit is(inside controller, saving the model data first, then return a redirect to client. ), the problem occur: explorer is always wating status, and the console of server doesn't print any thing.  
   If i move the cluster settings form ehcache.xml, the problem will not occur。

the spring configuration:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">	
&lt;bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager"
		depends-on="userDao"&gt;
		&lt;property name="realm" ref="shiroDbRealm" /&gt;
		&lt;property name="sessionManager" ref="sessionManager" /&gt;
		&lt;property name="cacheManager" ref="cacheManager" /&gt;
	&lt;/bean&gt;
	&lt;bean id="sessionDAO"
		class="org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO"&gt;
		&lt;property name="activeSessionsCacheName" value="shiro-activeSessionsCache" /&gt;
	&lt;/bean&gt;
	&lt;bean id="sessionManager"
		class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager"&gt;
		&lt;property name="sessionDAO" ref="sessionDAO" /&gt;
	&lt;/bean&gt;
	&lt;bean id="cacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager"&gt;        
		&lt;property name="cacheManagerConfigFile" value="classpath:ehcache-terracotta.xml" /&gt; 
	&lt;/bean&gt;
</pre>
		</div>

the ehcache configuration:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;ehcache name="clusterCache"&gt;
	&lt;terracottaConfig url="192.168.1.210:9510,192.168.1.211:9510" /&gt;
	&lt;diskStore path="java.io.tmpdir/shiro-ehcache" /&gt;
	&lt;defaultCache maxElementsInMemory="100000"
		maxElementsOnDisk="1000000" eternal="false" timeToIdleSeconds="120"
		timeToLiveSeconds="120" overflowToDisk="false" diskPersistent="false"
		diskExpiryThreadIntervalSeconds="120"&gt;
		&lt;terracotta /&gt;
	&lt;/defaultCache&gt;
	&lt;cache name="shiro-activeSessionsCache" maxElementsInMemory="100000"
		maxElementsOnDisk="1000000" eternal="true" timeToLiveSeconds="0"
		timeToIdleSeconds="0" diskPersistent="false" overflowToDisk="false"
		diskExpiryThreadIntervalSeconds="120"&gt;
		&lt;terracotta /&gt;
	&lt;/cache&gt;
	&lt;!-- Add more cache entries as desired, for example, Realm authc/authz caching: --&gt;
&lt;/ehcache&gt;
</pre>
		</div>

the java coce:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
return "redirect:/base/menu/?pid=" + pid;
</pre>
		</div>
<b>please attation:</b> if change to <span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">return "redirect:/base/menu/";</pre>
		</div> ,it will be work, no pedding or watting.

Can anyone can help me? thanks
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6974.page#34862</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6974.page#34862</link>
				<pubDate><![CDATA[Tue, 1 May 2012 20:47:54]]> GMT</pubDate>
				<author><![CDATA[ maxsheng]]></author>
			</item>
			<item>
				<title>Re:shiro+ehcache+terracotta, web project,can not redirect</title>
				<description><![CDATA[ It seems to be some issue with your application source , Can you please share more of your application source code and how you are implementing your use case.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6974.page#35261</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6974.page#35261</link>
				<pubDate><![CDATA[Mon, 4 Jun 2012 03:01:56]]> GMT</pubDate>
				<author><![CDATA[ rajoshi]]></author>
			</item>
			<item>
				<title>Re:shiro+ehcache+terracotta, web project,can not redirect</title>
				<description><![CDATA[ There's nothing obviously wrong with the configuration provided but it is hard to tell at which level this problem occurs. 

I don't know that this information will tell me anything, but it would be good to know what terracotta  and ehcache versions you are running, as well as if you're running multiple web server nodes in this test. 

If you can provide a test case I am certain we can debug it. Other than that I think you're going to need to dig a little deeper to find out where the wrong path is]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6974.page#35271</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6974.page#35271</link>
				<pubDate><![CDATA[Mon, 4 Jun 2012 14:18:08]]> GMT</pubDate>
				<author><![CDATA[ teck]]></author>
			</item>
	</channel>
</rss>