Announcement Announcement Module
No announcement yet.
[Invalid URL Pattern] Error in intercept-url? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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"/>

    Is there anything wrong with this configuration?

  • #2
    From the description it sounds like it is a problem with the mapping of springSecurityFilterChain. What does your web.xml look like?