Spring boot 2 + waffle + war

18 views
Skip to first unread message

Sergei Grimanov

unread,
Oct 19, 2021, 8:04:24 AM10/19/21
to waffle
I have a problem with the Spring boot war file. I use spring boot waffle starter 3.0.0. Thanks to a stack overflow example, I did it right. I made my filters that check if the user belongs to a proper domain, and pull this user from the application database with his authorities. It works fine locally in Idea even if I use tomcat with war exploded, but it does not when I run it on a standalone tomcat server (9.x). the app shows a login pop-up window, and the log says:
2021-10-19 13:01:58.775  WARN 4092 --- [http-nio-8400-exec-226] waffle.spring.NegotiateSecurityFilter    : error logging in user: com.sun.jna.platform.win32.Win32Exception: The token supplied to the function is invalid

What can I do here?

Sergei Grimanov

unread,
Oct 19, 2021, 8:53:09 AM10/19/21
to waffle
Also, there are a few disturbing messages in the log about some filters being not registered:
2021-10-19 15:22:32.353  INFO 4092 --- [http-nio-8400-exec-231] ru.tern.apt2.ServletInitializer          : Starting ServletInitializer v0.0.1-SNAPSHOT using Java 1.8.0_221 on AZGLRUNEVDD02 with PID 4092 (C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_APT\webapps\apt3\WEB-INF\classes started by SVC-BO01-RU in C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_APT)
2021-10-19 15:22:32.368  INFO 4092 --- [http-nio-8400-exec-231] ru.tern.apt2.ServletInitializer          : No active profile set, falling back to default profiles: default
2021-10-19 15:22:37.698  INFO 4092 --- [http-nio-8400-exec-231] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5158 ms
2021-10-19 15:22:38.167  INFO 4092 --- [http-nio-8400-exec-231] w.s.s.SecurityFilterProviderCollection   : using 'waffle.servlet.spi.NegotiateSecurityFilterProvider'
2021-10-19 15:22:38.182  INFO 4092 --- [http-nio-8400-exec-231] w.s.s.SecurityFilterProviderCollection   : using 'waffle.servlet.spi.BasicSecurityFilterProvider'
2021-10-19 15:22:39.323  INFO 4092 --- [http-nio-8400-exec-231] o.s.boot.web.servlet.RegistrationBean    : Filter negotiateSecurityFilter was not registered (disabled)
2021-10-19 15:22:39.323  INFO 4092 --- [http-nio-8400-exec-231] o.s.boot.web.servlet.RegistrationBean    : Filter negotiateSecurityFilter was not registered (disabled)

вторник, 19 октября 2021 г. в 15:04:24 UTC+3, Sergei Grimanov:
Reply all
Reply to author
Forward
0 new messages