java - Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/ -


i trying run program link : https://github.com/gigsterous/gigy-example/releases/tag/v4 without customization yet. when trying run application, i'm getting below error. please guide.

although increase version of spring boot, still issue exists.

org.springframework.beans.factory.beancreationexception: error creating bean name 'springsecurityfilterchain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/websecurityconfiguration.class]: bean instantiation via factory method failed; nested exception org.springframework.beans.beaninstantiationexception: failed instantiate [javax.servlet.filter]: factory method 'springsecurityfilterchain' threw exception; nested exception java.lang.illegalstateexception: cannot apply org.springframework.security.config.annotation.web.configurers.expressionurlauthorizationconfigurer@261a66b8 built object     @ org.springframework.beans.factory.support.constructorresolver.instantiateusingfactorymethod(constructorresolver.java:599) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiateusingfactorymethod(abstractautowirecapablebeanfactory.java:1123) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1018) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:510) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:296) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:776) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:861) ~[spring-context-4.3.2.release.jar:4.3.2.release]     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:541) ~[spring-context-4.3.2.release.jar:4.3.2.release]     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:122) ~[spring-boot-1.4.0.release.jar:1.4.0.release]     @ org.springframework.boot.springapplication.refresh(springapplication.java:759) [spring-boot-1.4.0.release.jar:1.4.0.release]     @ org.springframework.boot.springapplication.refreshcontext(springapplication.java:369) [spring-boot-1.4.0.release.jar:1.4.0.release]     @ org.springframework.boot.springapplication.run(springapplication.java:313) [spring-boot-1.4.0.release.jar:1.4.0.release]     @ org.springframework.boot.springapplication.run(springapplication.java:1185) [spring-boot-1.4.0.release.jar:1.4.0.release]     @ org.springframework.boot.springapplication.run(springapplication.java:1174) [spring-boot-1.4.0.release.jar:1.4.0.release]     @ com.gigy.app.main(app.java:11) [classes/:na] caused by: org.springframework.beans.beaninstantiationexception: failed instantiate [javax.servlet.filter]: factory method 'springsecurityfilterchain' threw exception; nested exception java.lang.illegalstateexception: cannot apply org.springframework.security.config.annotation.web.configurers.expressionurlauthorizationconfigurer@261a66b8 built object     @ org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:189) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     @ org.springframework.beans.factory.support.constructorresolver.instantiateusingfactorymethod(constructorresolver.java:588) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     ... 20 common frames omitted caused by: java.lang.illegalstateexception: cannot apply org.springframework.security.config.annotation.web.configurers.expressionurlauthorizationconfigurer@261a66b8 built object     @ org.springframework.security.config.annotation.abstractconfiguredsecuritybuilder.add(abstractconfiguredsecuritybuilder.java:196) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.abstractconfiguredsecuritybuilder.apply(abstractconfiguredsecuritybuilder.java:133) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.builders.httpsecurity.getorapply(httpsecurity.java:1303) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.builders.httpsecurity.authorizerequests(httpsecurity.java:649) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.oauth2.config.annotation.web.configurers.resourceserversecurityconfigurer.configure(resourceserversecurityconfigurer.java:199) ~[spring-security-oauth2-2.0.10.release.jar:na]     @ org.springframework.security.oauth2.config.annotation.web.configurers.resourceserversecurityconfigurer.configure(resourceserversecurityconfigurer.java:55) ~[spring-security-oauth2-2.0.10.release.jar:na]     @ org.springframework.security.config.annotation.abstractconfiguredsecuritybuilder.configure(abstractconfiguredsecuritybuilder.java:384) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.abstractconfiguredsecuritybuilder.dobuild(abstractconfiguredsecuritybuilder.java:330) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.abstractsecuritybuilder.build(abstractsecuritybuilder.java:41) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.builders.websecurity.performbuild(websecurity.java:288) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.builders.websecurity.performbuild(websecurity.java:75) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.abstractconfiguredsecuritybuilder.dobuild(abstractconfiguredsecuritybuilder.java:334) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.abstractsecuritybuilder.build(abstractsecuritybuilder.java:41) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.configuration.websecurityconfiguration.springsecurityfilterchain(websecurityconfiguration.java:104) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.configuration.websecurityconfiguration$$enhancerbyspringcglib$$2768fdc1.cglib$springsecurityfilterchain$4(<generated>) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.security.config.annotation.web.configuration.websecurityconfiguration$$enhancerbyspringcglib$$2768fdc1$$fastclassbyspringcglib$$d583fdde.invoke(<generated>) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ org.springframework.cglib.proxy.methodproxy.invokesuper(methodproxy.java:228) ~[spring-core-4.3.2.release.jar:4.3.2.release]     @ org.springframework.context.annotation.configurationclassenhancer$beanmethodinterceptor.intercept(configurationclassenhancer.java:356) ~[spring-context-4.3.2.release.jar:4.3.2.release]     @ org.springframework.security.config.annotation.web.configuration.websecurityconfiguration$$enhancerbyspringcglib$$2768fdc1.springsecurityfilterchain(<generated>) ~[spring-security-config-4.1.1.release.jar:4.1.1.release]     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_144]     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) ~[na:1.8.0_144]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) ~[na:1.8.0_144]     @ java.lang.reflect.method.invoke(unknown source) ~[na:1.8.0_144]     @ org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:162) ~[spring-beans-4.3.2.release.jar:4.3.2.release]     ... 21 common frames omitted 

and pom.xml

<parent>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-parent</artifactid>         <version>1.4.0.release</version>         <relativepath /> <!-- lookup parent repository -->     </parent>      <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>         <project.reporting.outputencoding>utf-8</project.reporting.outputencoding>         <java.version>1.8</java.version>     </properties>      <dependencies>         <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-actuator</artifactid>         </dependency>          <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-data-jpa</artifactid>         </dependency>          <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-web</artifactid>         </dependency>          <dependency>             <groupid>com.h2database</groupid>             <artifactid>h2</artifactid>             <scope>runtime</scope>         </dependency>          <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-test</artifactid>             <scope>test</scope>         </dependency>          <!-- security -->         <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-security</artifactid>         </dependency>          <dependency>             <groupid>org.springframework.security.oauth</groupid>             <artifactid>spring-security-oauth2</artifactid>         </dependency>     </dependencies>      <build>         <plugins>             <plugin>                 <groupid>org.springframework.boot</groupid>                 <artifactid>spring-boot-maven-plugin</artifactid>             </plugin>         </plugins>     </build> 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -