This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I tried to create a simple as possible application with spring security.
I have 3 html pages (secured.html,unsecured.html,and accessdenied.html - which I all put outside and same level of WEB-INF), and an xml to specify the security (springSecurity.xml at WEB-INF folder).
Functionality: I have one secured page (secured.html), which requires the specified role mentioned in springSecurity.xml. All implementations used are from spring (voters, authentication manager, etc.). In-memory dao authentication is used.
I am getting the error:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '' is defined
The entire error dump, and my spring and web.xml are below (the hmtls i made are simple htmls with one liners only).
(I am deploying on jboss 4.2.3. Some chunks of codes I used are from Spring in Action book.)
But looking like you are starting to learn it, I recommend using the latest versions of Spring and Spring Security. It is so way much easier than what you had to do there. A lot less xml and typing and makes things, well again way much more easier
But in general all you need is the ProxyChainFilter. In the xml you use the security namespace so that you just have something like (I don't have it memorized, so this is missing the correct tags and attributes, but the basic concept is the same and easy)
OK, I cheated and went to the docs and copied that stuff from that url I posted above.