arnosthavelka / security-poc

Playing with Spring Security
MIT License
3 stars 4 forks source link

Bump up to Spring Boot 3.0.x #12

Open arnosthavelka opened 1 year ago

arnosthavelka commented 1 year ago
arnosthavelka commented 1 year ago

https://stackoverflow.com/questions/28907030/spring-security-authorize-request-for-certain-url-http-method-using-httpsecu/74633151#74633151 and https://stackoverflow.com/questions/74683225/updating-to-spring-security-6-0-replacing-removed-and-deprecated-functionality

arnosthavelka commented 1 year ago
2023-04-03T08:58:39.493+02:00 ERROR 8784 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator] with root cause

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]

https://copyprogramming.com/howto/implementing-jstl-1-2-1-in-a-servlet-3-0-container-on-tomcat-7 https://velog.io/@agline/SpringBoot-3.0%EB%B2%84%EC%A0%84-%EC%9D%B4%EC%83%81%EC%97%90%EC%84%9C-JSTL-%EC%B6%94%EA%B0%80%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95

arnosthavelka commented 1 year ago

Start up logs from Spring Boot 2.7.9:

08:27:45.166 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@771b43e4

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

2023-04-04 08:27:45.553  INFO  --- [  restartedMain] c.g.aha.poc.security.SecuredApplication  : Starting SecuredApplication using Java 17 on EC2AMAZ-DG2OGDM with PID 9076 (Z:\work\aha\gitrepos\poc\security-poc\target\classes started by hh310 in Z:\work\aha\gitrepos\poc\security-poc)
2023-04-04 08:27:45.554 DEBUG  --- [  restartedMain] c.g.aha.poc.security.SecuredApplication  : Running with Spring Boot v2.7.9, Spring v5.3.25
2023-04-04 08:27:45.554  INFO  --- [  restartedMain] c.g.aha.poc.security.SecuredApplication  : The following 1 profile is active: "IN_MEMORY"
2023-04-04 08:27:45.604  INFO  --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2023-04-04 08:27:45.604  INFO  --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2023-04-04 08:27:47.163  INFO  --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2023-04-04 08:27:47.174  INFO  --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-04-04 08:27:47.174  INFO  --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.71]
2023-04-04 08:27:47.430  INFO  --- [  restartedMain] org.apache.jasper.servlet.TldScanner     : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2023-04-04 08:27:47.443  INFO  --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-04-04 08:27:47.444  INFO  --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1839 ms
2023-04-04 08:27:48.146  INFO  --- [  restartedMain] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@4a9daef9, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@20b464d2, org.springframework.security.web.context.SecurityContextPersistenceFilter@41a21188, org.springframework.security.web.header.HeaderWriterFilter@3dbb6c3b, org.springframework.security.web.csrf.CsrfFilter@78819add, org.springframework.security.web.authentication.logout.LogoutFilter@44c46fda, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4eef2225, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@62d8fde9, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@77dd751e, org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter@c30dd9a, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@3265e24a, org.springframework.security.web.session.SessionManagementFilter@47566422, org.springframework.security.web.access.ExceptionTranslationFilter@3c0a0098, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1dcadd45]
2023-04-04 08:27:48.571  INFO  --- [  restartedMain] o.s.l.c.support.AbstractContextSource    : Property 'userDn' not set - anonymous context will be used for read-write operations
2023-04-04 08:27:48.851  INFO  --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2023-04-04 08:27:48.858  INFO  --- [  restartedMain] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 3 endpoint(s) beneath base path '/actuator'
2023-04-04 08:27:48.933  INFO  --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2023-04-04 08:27:48.952  INFO  --- [  restartedMain] c.g.aha.poc.security.SecuredApplication  : Started SecuredApplication in 3.775 seconds (JVM running for 4.365)
2023-04-04 08:27:49.903  INFO  --- [on(7)-127.0.0.1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-04-04 08:27:49.903  INFO  --- [on(7)-127.0.0.1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2023-04-04 08:27:49.904  INFO  --- [on(7)-127.0.0.1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms