-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error creating bean with name 'springSecurityFilterChain' #68
Comments
What version of Java are you using? JAXB is included in most Java 8 distros, but is missing from Java 9. |
Thank you, use jdk8 , there is no Error 。 At first, I was using jdk9, it print :Error creating bean with name 'springSecurityFilterChain' |
The same error occurs by using openjdk version "10.0.2". I am using spring-boot-starter-parent:2.1.2.RELEASE. The exception appears only in the Hosting an Authorization Server part and especially by adding the injection: @EnableAuthorizationServer. |
You need Java 8 still. Same for all the guides in spring.io. |
If you are using maven you can put thats dependecies into your project
|
first, thank you |
remove from class "extends WebSecurityConfigurerAdapter" and @OverRide and program will compile :) |
thank you I'll check :) @luxus0 |
Thanks man |
You are the king, @luxus0 Works for me on Java 11. |
It's working , but why ? I don't know what's happing |
See above. JAXB is not included with Java 9 and above (but you can add it as an external dependency). |
Hi dsyer! I have an error about creating bean with name 'springSecurityFilterChain'. this error is below: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. I fixed this by adding @configuration in CustomSecurityConfigurerAdapter class that extends WebSecurityConfigurerAdapter, but it's not working. Pls, help me fix this ! Thank you very much |
Then that’s different to the exception reported here. If you want general help with Spring Boot and security you should try stack overflow or maybe gitter.im. |
this works for me |
Didnt work for me using Java17 |
I use Java 20
W dniu sob., 30.09.2023 o 12:50 Antonio Nelson ***@***.***>
napisał(a):
… Didnt work for me using Java17
—
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANPCWIGGFFQZOTTRCSGPIGLX472ODANCNFSM4END5NAQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
idea new project from github .
run auth-server print error why?
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-01-23 10:40:45.538 ERROR 5905 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
The text was updated successfully, but these errors were encountered: