Note that there are some explanatory texts on larger screens.

plurals
  1. POMigrate to Spring Security 3.0.5.RELEASE
    text
    copied!<p>Hi I have a problem when I try to migrate from Spring Security 2.0.4 to Spring Security 3.0.5.RELEASE. I got following error:</p> <pre><code> SEVERE: Exception sending context initialized event to listener instance of class pl.casses.fw.client.info.app.OfficeContextLoader org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/office-mgt-security.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String; </code></pre> <p>My security.xml file is here: </p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"&gt; &lt;http auto-config='true'&gt; &lt;intercept-url pattern="/**/*.ico" filters="none" /&gt; &lt;intercept-url pattern="/**/*.gif" filters="none" /&gt; &lt;intercept-url pattern="/**/*.jpg" filters="none" /&gt; &lt;intercept-url pattern="/**/*.css" filters="none" /&gt; &lt;intercept-url pattern="/**/*.js" filters="none" /&gt; &lt;intercept-url pattern="/**/*.png" filters="none" /&gt; &lt;intercept-url pattern="/logout.jsp*" filters="none" /&gt; &lt;intercept-url pattern="/index.jsp*" filters="none" /&gt; &lt;intercept-url pattern="/**" access="ROLE_USER,ROLE_ADMIN" /&gt; &lt;form-login login-page="/index.jsp" authentication-failure-url="/index.jsp?login_error=1" default-target-url="/main.jsp" always-use-default-target="true" /&gt; &lt;remember-me key="CassesOMRMKey" user-service-ref="userFactory"/&gt; &lt;/http&gt; &lt;authentication-manager&gt; &lt;authentication-provider user-service-ref="userFactory"&gt; &lt;password-encoder hash="md5" /&gt; &lt;/authentication-provider&gt; &lt;/authentication-manager&gt; </code></pre> <p></p> <p>And in pom.xml I have:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring&lt;/artifactId&gt; &lt;version&gt;2.5.4&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework.security&lt;/groupId&gt; &lt;artifactId&gt;spring-security-core&lt;/artifactId&gt; &lt;version&gt;3.0.5.RELEASE&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>What I'm doing wrong? How to migrate to Security 3.0. Thanks in advance for answers.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload