Hi,

I need to use org.apache.servicemix.bundles.ehcache as shiro's cacheManager,
but when i login my account,

it always occurs[net.sf.ehcache.CacheException:
java.lang.ClassNotFoundException: org.apache.shiro.session.mgt.SimpleSession
not found by org.apache.servicemix.bundles.ehcache [172]]

it seems that org.apache.servicemix.bundles.ehcache bundle can not load
shiro's SimpleSession class.

In my bundle, my shiro configuration is like below:

   <bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
      <property name="realm" ref="simpleRealm" />
      <property name="sessionManager" ref="defaultWebSessionManager"/>
      <property name="cacheManager" ref="cacheManager" />
   </bean>

   <bean id="cacheManager"
class="org.apache.shiro.cache.ehcache.EhCacheManager">
       <property name="cacheManager" ref="ehCacheManager"/>
       <property name="cacheManagerConfigFile" value="classpath:ehcache.xml"
/>
   </bean>
   <bean id="ehCacheManager" class="net.sf.ehcache.CacheManager" />

How should i do to solve this issue? Does it need me to export shiro's
related package.

your reply is very appreciated.

Thanks and Best regards.

Joseph.




--
View this message in context: 
http://servicemix.396122.n5.nabble.com/About-using-shiro-s-cacheManager-with-ehcache-in-servicemix-tp5720893.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to