Results 1 to 2 of 2

Thread: [Invalid URL Pattern] Error in intercept-url?

  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Default [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?

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    From the description it sounds like it is a problem with the mapping of springSecurityFilterChain. What does your web.xml look like?
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •