shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yockii <xuy...@gmail.com>
Subject Re: missing subject after request a not mapping url
Date Tue, 22 Nov 2011 05:20:14 GMT
Hi All,
   I've found that if I made a mistake here, i set the cacheManager to
ehcache with:

<bean id="shiroCacheManager"
class="org.apache.shiro.cache.ehcache.EhCacheManager">
  <property name="cacheManager" ref="cacheManager"></property>
</bean>

and also set the sessionDAO as following:
<bean id="sessionManager"
class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager">
  <property name="sessionDAO" ref="sessionDAO"/>
</bean>
<bean id="sessionDAO"
class="org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO"/>

(these are all in securityManager bean properties), the main configuration
is here:


        <bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
		<property name="realm" ref="myRealm"/>
		<property name="cacheManager" ref="shiroCacheManager"/>
		<property name="sessionMode" value="native" />
		<property name="sessionManager" ref="sessionManager"/>
	</bean>
	<bean id="lifecycleBeanPostProcessor"
class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/>
	<bean id="shiroCacheManager"
class="org.apache.shiro.cache.ehcache.EhCacheManager">
		<property name="cacheManager" ref="cacheManager"></property>
	</bean>
	
	<bean id="sessionManager"
class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager">
		<property name="sessionDAO" ref="sessionDAO"/>
	</bean>
	
	<bean id="sessionDAO"
class="org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO">
		
	</bean>
	<bean id="myRealm" class="com.****.service.security.ShiroDbRealm">
		<property name="credentialsMatcher" ref="credentialsMatcher"/>
	</bean>
	
	<bean id="credentialsMatcher"
class="org.apache.shiro.authc.credential.HashedCredentialsMatcher">
	  
	  <property name="storedCredentialsHexEncoded" value="false" />
	  <property name="hashAlgorithmName" value="SHA-256" />
	  
	  
	</bean>

--
View this message in context: http://shiro-user.582556.n2.nabble.com/missing-subject-after-request-a-not-mapping-url-tp7015626p7019336.html
Sent from the Shiro User mailing list archive at Nabble.com.

Mime
View raw message