-
Jun 22nd, 2012, 11:55 AM
#1
[Invalid URL Pattern] Error in intercept-url?
When I was trying to deploy a web mvc application with springSecurityFilterChain I encountered the following error:
cannot Deploy [ProjectName]
Deployment Error for module: [ProjectName]: Error occurred during deployment: Exception while deploying the app [[ProjectName]] : Invalid URL Pattern: [org.springframework.web.filter.DelegatingFilterPro xy]. Please see server.log for more details.
The URL Pattern I'm using is:
<http auto-config="true">
<intercept-url pattern="/rest/**" access="hasRole('ROLE_GET')" method="GET"/>
<intercept-url pattern="/rest/**" access="hasRole('ROLE_PUT')" method="PUT"/>
<intercept-url pattern="/rest/**" access="hasRole('ROLE_POST')" method="POST"/>
<intercept-url pattern="/rest/**" access="hasRole('ROLE_POST')" method="DELETE"/>
<intercept-url pattern="/web/**" access="hasRole('ROLE_GET')" method="GET"/>
<intercept-url pattern="/web/**" access="hasRole('ROLE_PUT')" method="PUT"/>
<intercept-url pattern="/web/**" access="hasRole('ROLE_POST')" method="POST"/>
<intercept-url pattern="/web/**" access="hasRole('ROLE_POST')" method="DELETE"/>
</http>
Is there anything wrong with this configuration?
-
Jun 25th, 2012, 09:22 PM
#2
From the description it sounds like it is a problem with the mapping of springSecurityFilterChain. What does your web.xml look like?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules