Announcement Announcement Module
Collapse
No announcement yet.
SS 2.0M2 - form-login & login-processing-url Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SS 2.0M2 - form-login & login-processing-url

    Hi!

    I'm using Spring Security 2 in order to secure my application. The configuration was really easy but I'm stuck with the following error:

    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 22 in XML document from file [D:\workspace\.metadata\.plugins\org.eclipse.wst.se rver.core\tmp0\wtpwebapps\peps-front-web\WEB-INF\classes\META-INF\applicationSecurityContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'login-processing-url' is not allowed to appear in element 'form-login'.

    Here is my configuration file:

    <http>
    <intercept-url pattern="/*" access="ROLE_AUTH" />
    <intercept-url pattern="/login" filters="none" />
    <intercept-url pattern="/login.form" filters="none" />
    <form-login login-page="/login" default-target-url="/home"
    login-processing-url="/login.form" authentication-failure-url="/login?login_error" />
    </http>

    I'm using Tapestry. So, what I want to do is to avoid a redirection from login.form to j_spring_security_check by forcing the processing url to be login.form.

    Where is the mistake?

    Thanks for your help!

  • #2
    It's possible your editor is using the xsd from:

    http://www.springframework.org/schem...curity-2.0.xsd

    which is a bit of a moving target until the release.

    The M2 version doesn't have this attribute:

    http://acegisecurity.svn.sourceforge...curity-2.0.xsd

    I would try downloading the latest snapshot. In any case it's probably best to make sure the xsd you are using in your editor corresponds to the download you are using. The best option is to install it into the catalogue in your IDE, or you can use a schemaLocation declaration in your xml file and point to a local copy.

    Comment


    • #3
      How to specify the processing URL for M2?

      I am also using spring security M2. I need to be able to specify the processing URL because it needs to be an .action to be properly routed to the servlet container. What is the recommended way to do this in M2?

      Thanks,

      Marius

      Comment


      • #4
        The attribute was called login-url in M2, but you should upgrade to RC1.

        Comment


        • #5
          Works

          The attribute login-processing-url works in RC1.

          Thanks,

          Marius

          Comment

          Working...
          X