Hi,
I am a beginner to spring security. I am working with a demo application and i got below problem.
This is my web.xml
Code:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/dispatcher-servlet.xml
/WEB-INF/security-app-context.xml
</param-value>
</context-param>
<!-- - Provides core MVC application controller. See bank-servlet.xml. -->
<servlet>
<servlet-name>bank</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>bank</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
This is my security-app-context.xml
Code:
<http auto-config="true">
<intercept-url pattern="/**" access="permitAll" />
<form-login />
</http>
<authentication-manager>
<authentication-provider>
<user-service>
<user name="peter" password="peter" authorities="user" />
</user-service>
</authentication-provider>
</authentication-manager>
This is list of jars, those are in /WEB-INF/lib/ directory.
- antlr-2.7.6
- antlr-runtime-3.0
- commons-collections-3.1
- commons-logging-1.1-dev
- jstl
- jta-1.1
- org.springframework.aop-3.1.0.RELEASE
- org.springframework.asm-3.1.0.RELEASE
- org.springframework.beans-3.1.0.RELEASE
- org.springframework.context.support-3.1.0.RELEASE
- org.springframework.context-3.1.0.RELEASE
- org.springframework.core-3.1.0.RELEASE
- org.springframework.expression-3.1.0.RELEASE
- org.springframework.security.config-3.0.0.RELEASE
- org.springframework.transaction-3.1.0.RELEASE
- org.springframework.web.servlet-3.1.0.RELEASE
- org.springframework.web-3.1.0.RELEASE
- spring-security-aspects-3.0.7.RELEASE
- spring-security-core-3.0.7.RELEASE
- spring-security-web-3.0.7.RELEASE
- standard
When i run this application i got following error message.
Code:
Caused by: java.lang.NoSuchMethodError: org.springframework.security.core.userdetails.memory.UserMap.addUser(Lorg/springframework/security/core/userdetails/UserDetails;)V
Please help.