java-spring-security-example icon indicating copy to clipboard operation
java-spring-security-example copied to clipboard

Can't run and all tests are failing

Open marciobarcellos opened this issue 3 years ago • 0 comments

. ____ _ __ _ _ /\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) ) ' |
| .__|| ||| |_, | / / / / =========||==============|/=//// :: Spring Boot :: (v2.3.3.RELEASE)

2021-06-30 15:18:43.876 INFO 33141 --- [ restartedMain] io.example.Application : Starting Application on marcio-Vostro-5470 with PID 33141 (/home/marcio/TDA/orca/java-spring-security-example/target/classes started by marcio in /home/marcio/TDA/orca/java-spring-security-example) 2021-06-30 15:18:43.883 INFO 33141 --- [ restartedMain] io.example.Application : No active profile set, falling back to default profiles: default 2021-06-30 15:18:43.960 INFO 33141 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2021-06-30 15:18:43.961 INFO 33141 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 2021-06-30 15:18:44.841 INFO 33141 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 2021-06-30 15:18:44.906 INFO 33141 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 60ms. Found 3 MongoDB repository interfaces. 2021-06-30 15:18:45.183 INFO 33141 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@5248331' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-06-30 15:18:45.189 INFO 33141 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'mvcConfig' of type [io.example.configuration.MvcConfig$$EnhancerBySpringCGLIB$$76d77017] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-06-30 15:18:45.202 INFO 33141 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grantedAuthorityDefaults' of type [org.springframework.security.config.core.GrantedAuthorityDefaults] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-06-30 15:18:45.204 INFO 33141 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-06-30 15:18:45.571 INFO 33141 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2021-06-30 15:18:45.585 INFO 33141 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-06-30 15:18:45.586 INFO 33141 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.37] 2021-06-30 15:18:45.646 INFO 33141 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-06-30 15:18:45.647 INFO 33141 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1685 ms 2021-06-30 15:18:45.786 INFO 33141 --- [ restartedMain] org.mongodb.driver.cluster : Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'} 2021-06-30 15:18:45.851 INFO 33141 --- [localhost:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:3}] to localhost:27017 2021-06-30 15:18:45.855 INFO 33141 --- [localhost:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=2786224} 2021-06-30 15:18:46.481 INFO 33141 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2021-06-30 15:18:46.493 WARN 33141 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'databaseInitializer' defined in file [/home/marcio/TDA/orca/java-spring-security-example/target/classes/io/example/DatabaseInitializer.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in file [/home/marcio/TDA/orca/java-spring-security-example/target/classes/io/example/service/UserService.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'io.example.domain.mapper.UserEditMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} 2021-06-30 15:18:46.498 INFO 33141 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-06-30 15:18:46.513 INFO 33141 --- [ restartedMain] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-06-30 15:18:46.651 ERROR 33141 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Parameter 1 of constructor in io.example.service.UserService required a bean of type 'io.example.domain.mapper.UserEditMapper' that could not be found.

Action:

Consider defining a bean of type 'io.example.domain.mapper.UserEditMapper' in your configuration.

marciobarcellos avatar Jun 30 '21 18:06 marciobarcellos