xml - java.lang.IllegalArgumentException: A universal match pattern ('/**') is defined before other patterns in the filter chain -


i'm getting error while running project eclipse. it's maven project. runs while running outside of eclipse(from command line). don't know what's wrong it.

aug 18, 2014 4:30:42 pm org.apache.catalina.core.standardcontext listenerstart severe: exception sending context initialized event listener instance of class org.springframework.web.context.contextloaderlistener org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.security.filterchainproxy': invocation of init method failed; nested exception java.lang.illegalargumentexception: universal match pattern ('/**') defined  before other patterns in filter chain, causing them ignored. please check ordering in <security:http> namespace or filterchainproxy bean configuration     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1486)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:524)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:461)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:295)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:223)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:292)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:607)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:932)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:479)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:383)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:283)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:112)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4723)     @ org.apache.catalina.core.standardcontext$1.call(standardcontext.java:5226)     @ org.apache.catalina.core.standardcontext$1.call(standardcontext.java:5221)     @ java.util.concurrent.futuretask$sync.innerrun(unknown source)     @ java.util.concurrent.futuretask.run(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)     @ java.lang.thread.run(unknown source) caused by: java.lang.illegalargumentexception: universal match pattern ('/**') defined  before other patterns in filter chain, causing them ignored. please check ordering in <security:http> namespace or filterchainproxy bean configuration     @ org.springframework.security.config.http.defaultfilterchainvalidator.checkpathorder(defaultfilterchainvalidator.java:49)     @ org.springframework.security.config.http.defaultfilterchainvalidator.validate(defaultfilterchainvalidator.java:39)     @ org.springframework.security.web.filterchainproxy.afterpropertiesset(filterchainproxy.java:148)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1545)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1483)     ... 20 more aug 18, 2014 4:30:42 pm org.apache.catalina.core.standardcontext startinternal severe: error listenerstart aug 18, 2014 4:30:42 pm org.apache.catalina.core.standardcontext startinternal severe: context [] startup failed due previous errors 2014-08-18 16:30:42,657 [thread-1] error org.springframework.web.context.contextloader - context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.security.filterchainproxy': invocation of init method failed; nested exception java.lang.illegalargumentexception: universal match pattern ('/**') defined  before other patterns in filter chain, causing them ignored. please check ordering in <security:http> namespace or filterchainproxy bean configuration     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1486)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:524)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:461)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:295)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:223)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:292)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:607)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:932)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:479)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:383)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:283)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:112)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4723)     @ org.apache.catalina.core.standardcontext$1.call(standardcontext.java:5226)     @ org.apache.catalina.core.standardcontext$1.call(standardcontext.java:5221)     @ java.util.concurrent.futuretask$sync.innerrun(unknown source)     @ java.util.concurrent.futuretask.run(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)     @ java.lang.thread.run(unknown source) caused by: java.lang.illegalargumentexception: universal match pattern ('/**') defined  before other patterns in filter chain, causing them ignored. please check ordering in <security:http> namespace or filterchainproxy bean configuration     @ org.springframework.security.config.http.defaultfilterchainvalidator.checkpathorder(defaultfilterchainvalidator.java:49)     @ org.springframework.security.config.http.defaultfilterchainvalidator.validate(defaultfilterchainvalidator.java:39)     @ org.springframework.security.web.filterchainproxy.afterpropertiesset(filterchainproxy.java:148)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1545)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1483)     ... 20 more aug 18, 2014 4:30:42 pm org.apache.catalina.core.applicationcontext log info: closing spring root webapplicationcontext aug 18, 2014 4:30:42 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-bio-8080"] 

here web.xml file.

<?xml version="1.0" encoding="iso-8859-1"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">   <display-name>weeels-ride-batcher</display-name>   <description>ride batcher application</description>   <context-param>     <param-name>defaulthtmlescape</param-name>     <param-value>true</param-value>   </context-param>   <context-param>     <param-name>contextconfiglocation</param-name>     <param-value>classpath*:meta-inf/spring/applicationcontext**.xml</param-value>   </context-param>   <filter>     <filter-name>characterencodingfilter</filter-name>     <filter-class>org.springframework.web.filter.characterencodingfilter</filter-class>     <init-param>       <param-name>encoding</param-name>       <param-value>utf-8</param-value>     </init-param>     <init-param>       <param-name>forceencoding</param-name>       <param-value>true</param-value>     </init-param>   </filter>   <filter>     <filter-name>httpmethodfilter</filter-name>     <filter-class>org.springframework.web.filter.hiddenhttpmethodfilter</filter-class>   </filter>   <filter-mapping>     <filter-name>characterencodingfilter</filter-name>     <url-pattern>/*</url-pattern>   </filter-mapping>   <filter-mapping>     <filter-name>httpmethodfilter</filter-name>     <url-pattern>/*</url-pattern>   </filter-mapping>   <listener>     <listener-class>org.springframework.web.context.contextloaderlistener</listener-class>   </listener>   <servlet>     <servlet-name>myservlet</servlet-name>     <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>     <init-param>       <param-name>contextconfiglocation</param-name>       <param-value>web-inf/spring/webmvc-config.xml</param-value>     </init-param>     <load-on-startup>1</load-on-startup>   </servlet>   <servlet-mapping>     <servlet-name>myservlet</servlet-name>     <url-pattern>/</url-pattern>   </servlet-mapping>   <session-config>     <session-timeout>10</session-timeout>   </session-config>   <error-page>     <exception-type>java.lang.exception</exception-type>     <location>/uncaughtexception</location>   </error-page>   <error-page>     <error-code>404</error-code>     <location>/resourcenotfound</location>   </error-page>   <filter>     <filter-name>springsecurityfilterchain</filter-name>     <filter-class>org.springframework.web.filter.delegatingfilterproxy</filter-class>   </filter>   <filter-mapping>     <filter-name>springsecurityfilterchain</filter-name>     <url-pattern>/*</url-pattern>   </filter-mapping> </web-app> 

please let me know if wants view other config file. think per error, file causing error. tried many ways none of them worked. don't know change where. i'm using spring 3.1.0.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -