Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
The moustache of a titan! The ad of a flea:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic