Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'

 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement Spring Security 3.0 with remember-me feature.

But i am getting the below exception on starting the tomcat server:

The matching wildcard is strict, but no declaration can be found for element 'remember-me'.



please find below my security config file:



following jars are included in the lib directory:


please tell me, where i am going wrong.
 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i moved <remember-me> tag inside <http use-expressions="true"> and the above error disappers as follows:



but, now i am getting a new error:



I am following this site http://www.jeviathon.com/2009/09/spring-security-30-with-active.html to implement remember-me feature in Spring Securtiy. But they have not given any implementation of 'inMemDataSource' bean.

please help me in resolving the error.
 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After going through http://static.springsource.org/spring-security/site/docs/3.0.x/reference/remember-me.html site. i understand that there are 2 implementations available for enabling remember-me feature. they are TokenBasedRememberMeServices and PersistentTokenBasedRememberMeServices respectively. can anybody please provide me a link or an example of these implementations.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic