
Originally Posted by
bennyn
I use version 3.2. With your configuration the Login works now!
I had to change the form action url in my
login.jsp from:
To:
The only things which are not working yet is the "Logout" and my JavaScripts and CSS from my JSPs.
Before using REST I always did the logout with the following url:
http://localhost:8080/ksw/j_spring_security_logout
But this is not possible anymore. I always get the warning:
Things which I have linked in my JSPs with:
Do also give a warning, e.g.:
My
urlrewrite.xml is now:
P.S. If we get the things work, then I will write an entry in my blog so that nobody else pulls his/her hair out.

Because you use version 3.2, you need to add attribute last="true" to those rules for Spring security.
Js folder in your webconent cannot be accessed, because you need to add rule for that in your urlrewrite.xml, just like you need to add every other static folder (for example css files folder) in your webcontent folder.
This is what your urlrewrite.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
"http://tuckey.org/res/dtds/urlrewrite3.2.dtd">
<urlrewrite default-match-type="wildcard">
<!-- Access to js folder in webcontent -->
<rule>
<from>/js**</from>
<to last="true">/js$1</to>
</rule>
<!-- End Access to js folder in webcontent -->
<!-- Spring Security Servelts -->
<rule>
<from>/j_spring_security_check**</from>
<to last="true">/j_spring_security_check$1</to>
</rule>
<rule>
<from>/j_spring_security_logout**</from>
<to last="true">/j_spring_security_logout$1</to>
</rule>
<!-- End Spring Security Servelts -->
<!-- Spring Framework -->
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
<outbound-rule>
<from>/app/**</from>
<to>/$1</to>
</outbound-rule>
<!-- End Spring Framework -->
</urlrewrite>