问:
jar packages added to list tomcat.util.scan.StandardJarScanFilter.jarsToSkip= but stacktrace doesn't change and server doesn't start
I was told to use server 9.0.69.
jar packages added to list tomcat.util.scan.StandardJarScanFilter.jarsToSkip= but stacktrace doesn't change and server doesn't start.
I followed the instructions given to me in the previous question, I also set the bounty and my server won't start. I tried using the suggestions from questions similar to mine, but they didn't help. Can anyone help me please? Thank you

the strange thing is that in the lib folder I have 34 jar packages, while in the server stacktrace it tells me to add the jars of the lib folder of the wokspace/.metadata/plugin/org.eclipse.wst.server.core./tmp1/wtpwebapps/Parlamento/WEB-INF/lib folder to the list ( 56 jars).Then there is also the tmp0 folder perhaps because I changed server.

java.lang.ClassCastException: class org.springframework.web.servlet.DispatcherServlet cannot be cast to class jakarta.servlet.Servlet

stacktrace:

```org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-api-3.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.916 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-module-jaxb-annotations-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.918 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.transaction-api-1.3.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.920 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/postgresql-42.3.8.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.922 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/classmate-1.5.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.930 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-boot-autoconfigure-2.7.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.931 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.el-5.0.0-M1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.934 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-data-jpa-2.7.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.939 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.activation-1.2.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.941 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet-api-6.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.942 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/txw2-2.3.7.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.943 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-deploy-plugin-3.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.945 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.persistence-api-2.2.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.947 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-core-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.949 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/istack-commons-runtime-3.0.12.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.953 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-compiler-plugin-3.10.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.955 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet-api-5.0.0-M2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.142 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-2.0.0-M1.jar].
09-Dec-2022 12:05:14.144 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/antlr4-runtime-4.10.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.192 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-jstlel-1.2.5.jar].
09-Dec-2022 12:05:14.198 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/byte-buddy-1.12.19.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.200 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.activation-api-1.2.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.202 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-context-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.203 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/checker-qual-3.5.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.205 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-data-commons-2.7.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.207 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.xml.bind-api-2.3.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.218 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-clean-plugin-3.2.0-sources.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.263 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-compat-1.2.5.jar].
09-Dec-2022 12:05:14.264 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.inject-api-2.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.266 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.websocket-api-2.1.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.272 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-boot-2.7.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.276 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-core-6.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.280 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-resources-plugin-3.3.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.284 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-surefire-plugin-3.0.0-M7.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.287 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-beans-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.389 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-impl-1.2.5%20(1).jar].
09-Dec-2022 12:05:14.393 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-war-plugin-3.3.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.518 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-2.0.0%20(1).jar].
09-Dec-2022 12:05:14.520 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-install-plugin-3.0.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.620 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-impl-1.2.1.jar].
09-Dec-2022 12:05:14.625 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-core-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.631 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jandex-2.4.2.Final.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.677 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-webmvc-5.3.23.jar].
09-Dec-2022 12:05:14.690 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/tomcat-annotations-api-9.0.69.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.695 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/lombok-1.18.22.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.700 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-web-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.704 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-annotations-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.709 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-databind-2.13.4.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.713 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jboss-logging-3.4.3.Final.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.721 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0_Tomcat9.0.69/lib/jakartaee-migration-1.0.1-shaded.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.839 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0_Tomcat9.0.69/lib/jstl-1.2.jar].
09-Dec-2022 12:05:14.845 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars 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.
```
<p>catalina.properties</p>
```    tomcat.util.scan.StandardJarScanFilter.jarsToSkip=
annotations-api.jar,
ant-junit*.jar,
ant-launcher.jar,
ant.jar,
asm-*.jar,
aspectj*.jar,
bootstrap.jar,
catalina-ant.jar,
catalina-ha.jar,
catalina-ssi.jar,
catalina-storeconfig.jar,
catalina-tribes.jar,
catalina.jar,
cglib-*.jar,
cobertura-*.jar,
commons-beanutils*.jar,
commons-codec*.jar,
commons-collections*.jar,
commons-daemon.jar,
commons-dbcp*.jar,
commons-digester*.jar,
commons-fileupload*.jar,
commons-httpclient*.jar,
commons-io*.jar,
commons-lang*.jar,
commons-logging*.jar,
commons-math*.jar,
commons-pool*.jar,
derby-*.jar,
dom4j-*.jar,
easymock-*.jar,
ecj-*.jar,
el-api.jar,
geronimo-spec-jaxrpc*.jar,
h2*.jar,
ha-api-*.jar,
hamcrest-*.jar,
hibernate*.jar,
httpclient*.jar,
icu4j-*.jar,
jasper-el.jar,
jasper.jar,
jaspic-api.jar,
jaxb-*.jar,
jaxen-*.jar,
jaxws-rt-*.jar,
jdom-*.jar,
jetty-*.jar,
jmx-tools.jar,
jmx.jar,
jsp-api.jar,
jstl.jar,
jta*.jar,
junit-*.jar,
junit.jar,
log4j*.jar,
mail*.jar,
objenesis-*.jar,
oraclepki.jar,
oro-*.jar,
servlet-api-*.jar,
servlet-api.jar,
slf4j*.jar,
taglibs-standard-spec-*.jar,
tagsoup-*.jar,
tomcat-api.jar,
tomcat-coyote.jar,
tomcat-dbcp.jar,
tomcat-i18n-*.jar,
tomcat-jdbc.jar,
tomcat-jni.jar,
tomcat-juli-adapters.jar,
tomcat-juli.jar,
tomcat-util-scan.jar,
tomcat-util.jar,
tomcat-websocket.jar,
tools.jar,
websocket-api.jar,
wsdl4j*.jar,
xercesImpl.jar,
xml-apis.jar,
xmlParserAPIs-*.jar,
xmlParserAPIs.jar,
xom-*.jar,
jakartaee-migration-1.0.1-shaded.jar,
jboss-logging-3.4.3.Final.jar,
jackson-databind-2.13.4.2.jar,
jackson-annotations-2.13.4.jar,
spring-web-5.3.23.jar,
lombok-1.18.22.jar,
tomcat-annotations-api-9.0.69.jar,
spring-webmvc-5.3.23.jar,
jandex-2.4.2.Final.jar,
spring-core-5.3.23.jar,
taglibs-standard-impl-1.2.1.jar,
maven-install-plugin-3.0.1.jar,
jakarta.servlet.jsp.jstl-2.0.0 (1).jar,
maven-war-plugin-3.3.2.jar,
taglibs-standard-impl-1.2.5(1).jar,
spring-beans-5.3.23.jar,
maven-surefire-plugin-3.0.0-M7.jar,
maven-resources-plugin-3.3.0.jar,
spring-core-6.0.0.jar,
maven-resources-plugin-3.3.0.jar,
spring-core-6.0.0.jar,
spring-boot-2.7.4.jar,
jakarta.websocket-api-2.1.0.jar,
jakarta.inject-api-2.0.0.jar,
taglibs-standard-compat-1.2.5.jar,
maven-clean-plugin-3.2.0-sources.jar,
jakarta.xml.bind-api-2.3.3.jar,
spring-data-commons-2.7.3.jar,
checker-qual-3.5.0.jar,
spring-context-5.3.23.jar,
jakarta.activation-api-1.2.2.jar,
byte-buddy-1.12.19.jar,
taglibs-standard-jstlel-1.2.5.jar,
jakarta.servlet.jsp.jstl-2.0.0-M1.jar,
jakarta.servlet-api-5.0.0-M2.jar,
maven-compiler-plugin-3.10.1.jar,
istack-commons-runtime-3.0.12.jar,
jackson-core-2.13.4.jar,
jakarta.persistence-api-2.2.3.jar,
maven-deploy-plugin-3.0.0.jar,
jakarta.servlet-api-6.0.0.jar,
jakarta.activation-1.2.2.jar,
spring-data-jpa-2.7.3.jar,
jakarta.el-5.0.0-M1.jar,
spring-boot-autoconfigure-2.7.4.jar,
classmate-1.5.1.jar,
jakarta.servlet.jsp.jstl-api-3.0.0.jar,
antlr4-runtime-4.10.1.jar,
txw2-2.3.7.jar,
jakarta.transaction-api-1.3.3.jar,
jackson-module-jaxb-annotations-2.13.4.jar
```
<p>logging.properties</p>
```    handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.AsyncFileHandler.level = FINEST
1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
1catalina.org.apache.juli.AsyncFileHandler.maxDays = 90
1catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8

2localhost.org.apache.juli.AsyncFileHandler.level = FINEST
2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
2localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
2localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8

3manager.org.apache.juli.AsyncFileHandler.level = FINEST
3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
3manager.org.apache.juli.AsyncFileHandler.maxDays = 90
3manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8

4host-manager.org.apache.juli.AsyncFileHandler.level = FINEST
4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 90
4host-manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8

java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
java.util.logging.ConsoleHandler.encoding = UTF-8

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.AsyncFileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.AsyncFileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.AsyncFileHandler

# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
org.apache.catalina.util.LifecycleBase.level = FINE

# To see debug messages in TldLocationsCache, uncomment the following line:
org.apache.jasper.compiler.TldLocationsCache.level = FINE

# To see debug messages for HTTP/2 handling, uncomment the following line:
org.apache.coyote.http2.level = FINE

# To see debug messages for WebSocket handling, uncomment the following line:
org.apache.tomcat.websocket.level = FINE

org.apache.jasper.servlet.TldScanner.level = SEVERE

org.apache.jasper.compiler.TldLocationsCache.level = FINE
org.apache.jasper.servlet.TldScanner.level = FINE

org.apache.jasper.level = FINEST
```

Body:
I was told to use server 9.0.69.
jar packages added to list tomcat.util.scan.StandardJarScanFilter.jarsToSkip= but stacktrace doesn't change and server doesn't start.
I followed the instructions given to me in the previous question, I also set the bounty and my server won't start. I tried using the suggestions from questions similar to mine, but they didn't help. Can anyone help me please? Thank you

the strange thing is that in the lib folder I have 34 jar packages, while in the server stacktrace it tells me to add the jars of the lib folder of the wokspace/.metadata/plugin/org.eclipse.wst.server.core./tmp1/wtpwebapps/Parlamento/WEB-INF/lib folder to the list ( 56 jars).Then there is also the tmp0 folder perhaps because I changed server.

java.lang.ClassCastException: class org.springframework.web.servlet.DispatcherServlet cannot be cast to class jakarta.servlet.Servlet

stacktrace:

org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-api-3.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.916 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-module-jaxb-annotations-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.918 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.transaction-api-1.3.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.920 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/postgresql-42.3.8.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.922 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/classmate-1.5.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.930 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-boot-autoconfigure-2.7.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.931 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.el-5.0.0-M1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.934 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-data-jpa-2.7.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.939 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.activation-1.2.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.941 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet-api-6.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.942 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/txw2-2.3.7.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.943 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-deploy-plugin-3.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.945 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.persistence-api-2.2.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.947 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-core-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.949 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/istack-commons-runtime-3.0.12.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.953 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-compiler-plugin-3.10.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:13.955 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet-api-5.0.0-M2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.142 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-2.0.0-M1.jar].
09-Dec-2022 12:05:14.144 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/antlr4-runtime-4.10.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.192 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-jstlel-1.2.5.jar].
09-Dec-2022 12:05:14.198 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/byte-buddy-1.12.19.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.200 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.activation-api-1.2.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.202 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-context-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.203 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/checker-qual-3.5.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.205 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-data-commons-2.7.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.207 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.xml.bind-api-2.3.3.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.218 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-clean-plugin-3.2.0-sources.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.263 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-compat-1.2.5.jar].
09-Dec-2022 12:05:14.264 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.inject-api-2.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.266 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.websocket-api-2.1.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.272 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-boot-2.7.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.276 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-core-6.0.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.280 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-resources-plugin-3.3.0.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.284 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-surefire-plugin-3.0.0-M7.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.287 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-beans-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.389 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-impl-1.2.5%20(1).jar].
09-Dec-2022 12:05:14.393 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-war-plugin-3.3.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.518 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jakarta.servlet.jsp.jstl-2.0.0%20(1).jar].
09-Dec-2022 12:05:14.520 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/maven-install-plugin-3.0.1.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.620 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/taglibs-standard-impl-1.2.1.jar].
09-Dec-2022 12:05:14.625 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-core-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.631 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jandex-2.4.2.Final.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.677 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-webmvc-5.3.23.jar].
09-Dec-2022 12:05:14.690 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/tomcat-annotations-api-9.0.69.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.695 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/lombok-1.18.22.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.700 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/spring-web-5.3.23.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.704 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-annotations-2.13.4.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.709 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jackson-databind-2.13.4.2.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.713 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Users/segreteria/Desktop/WORKSPACE%204/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Parlamento/WEB-INF/lib/jboss-logging-3.4.3.Final.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.721 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0_Tomcat9.0.69/lib/jakartaee-migration-1.0.1-shaded.jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.
09-Dec-2022 12:05:14.839 FINE [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan TLD files were found in JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0_Tomcat9.0.69/lib/jstl-1.2.jar].
09-Dec-2022 12:05:14.845 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars 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.

catalina.properties

    tomcat.util.scan.StandardJarScanFilter.jarsToSkip=
annotations-api.jar,
ant-junit*.jar,
ant-launcher.jar,
ant.jar,
asm-*.jar,
aspectj*.jar,
bootstrap.jar,
catalina-ant.jar,
catalina-ha.jar,
catalina-ssi.jar,
catalina-storeconfig.jar,
catalina-tribes.jar,
catalina.jar,
cglib-*.jar,
cobertura-*.jar,
commons-beanutils*.jar,
commons-codec*.jar,
commons-collections*.jar,
commons-daemon.jar,
commons-dbcp*.jar,
commons-digester*.jar,
commons-fileupload*.jar,
commons-httpclient*.jar,
commons-io*.jar,
commons-lang*.jar,
commons-logging*.jar,
commons-math*.jar,
commons-pool*.jar,
derby-*.jar,
dom4j-*.jar,
easymock-*.jar,
ecj-*.jar,
el-api.jar,
geronimo-spec-jaxrpc*.jar,
h2*.jar,
ha-api-*.jar,
hamcrest-*.jar,
hibernate*.jar,
httpclient*.jar,
icu4j-*.jar,
jasper-el.jar,
jasper.jar,
jaspic-api.jar,
jaxb-*.jar,
jaxen-*.jar,
jaxws-rt-*.jar,
jdom-*.jar,
jetty-*.jar,
jmx-tools.jar,
jmx.jar,
jsp-api.jar,
jstl.jar,
jta*.jar,
junit-*.jar,
junit.jar,
log4j*.jar,
mail*.jar,
objenesis-*.jar,
oraclepki.jar,
oro-*.jar,
servlet-api-*.jar,
servlet-api.jar,
slf4j*.jar,
taglibs-standard-spec-*.jar,
tagsoup-*.jar,
tomcat-api.jar,
tomcat-coyote.jar,
tomcat-dbcp.jar,
tomcat-i18n-*.jar,
tomcat-jdbc.jar,
tomcat-jni.jar,
tomcat-juli-adapters.jar,
tomcat-juli.jar,
tomcat-util-scan.jar,
tomcat-util.jar,
tomcat-websocket.jar,
tools.jar,
websocket-api.jar,
wsdl4j*.jar,
xercesImpl.jar,
xml-apis.jar,
xmlParserAPIs-*.jar,
xmlParserAPIs.jar,
xom-*.jar,
jakartaee-migration-1.0.1-shaded.jar,
jboss-logging-3.4.3.Final.jar,
jackson-databind-2.13.4.2.jar,
jackson-annotations-2.13.4.jar,
spring-web-5.3.23.jar,
lombok-1.18.22.jar,
tomcat-annotations-api-9.0.69.jar,
spring-webmvc-5.3.23.jar,
jandex-2.4.2.Final.jar,
spring-core-5.3.23.jar,
taglibs-standard-impl-1.2.1.jar,
maven-install-plugin-3.0.1.jar,
jakarta.servlet.jsp.jstl-2.0.0 (1).jar,
maven-war-plugin-3.3.2.jar,
taglibs-standard-impl-1.2.5(1).jar,
spring-beans-5.3.23.jar,
maven-surefire-plugin-3.0.0-M7.jar,
maven-resources-plugin-3.3.0.jar,
spring-core-6.0.0.jar,
maven-resources-plugin-3.3.0.jar,
spring-core-6.0.0.jar,
spring-boot-2.7.4.jar,
jakarta.websocket-api-2.1.0.jar,
jakarta.inject-api-2.0.0.jar,
taglibs-standard-compat-1.2.5.jar,
maven-clean-plugin-3.2.0-sources.jar,
jakarta.xml.bind-api-2.3.3.jar,
spring-data-commons-2.7.3.jar,
checker-qual-3.5.0.jar,
spring-context-5.3.23.jar,
jakarta.activation-api-1.2.2.jar,
byte-buddy-1.12.19.jar,
taglibs-standard-jstlel-1.2.5.jar,
jakarta.servlet.jsp.jstl-2.0.0-M1.jar,
jakarta.servlet-api-5.0.0-M2.jar,
maven-compiler-plugin-3.10.1.jar,
istack-commons-runtime-3.0.12.jar,
jackson-core-2.13.4.jar,
jakarta.persistence-api-2.2.3.jar,
maven-deploy-plugin-3.0.0.jar,
jakarta.servlet-api-6.0.0.jar,
jakarta.activation-1.2.2.jar,
spring-data-jpa-2.7.3.jar,
jakarta.el-5.0.0-M1.jar,
spring-boot-autoconfigure-2.7.4.jar,
classmate-1.5.1.jar,
jakarta.servlet.jsp.jstl-api-3.0.0.jar,
antlr4-runtime-4.10.1.jar,
txw2-2.3.7.jar,
jakarta.transaction-api-1.3.3.jar,
jackson-module-jaxb-annotations-2.13.4.jar

logging.properties

    handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.AsyncFileHandler.level = FINEST
1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
1catalina.org.apache.juli.AsyncFileHandler.maxDays = 90
1catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8

2localhost.org.apache.juli.AsyncFileHandler.level = FINEST
2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
2localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
2localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8

3manager.org.apache.juli.AsyncFileHandler.level = FINEST
3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
3manager.org.apache.juli.AsyncFileHandler.maxDays = 90
3manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8

4host-manager.org.apache.juli.AsyncFileHandler.level = FINEST
4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 90
4host-manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8

java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
java.util.logging.ConsoleHandler.encoding = UTF-8

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.AsyncFileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.AsyncFileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.AsyncFileHandler

# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
org.apache.catalina.util.LifecycleBase.level = FINE

# To see debug messages in TldLocationsCache, uncomment the following line:
org.apache.jasper.compiler.TldLocationsCache.level = FINE

# To see debug messages for HTTP/2 handling, uncomment the following line:
org.apache.coyote.http2.level = FINE

# To see debug messages for WebSocket handling, uncomment the following line:
org.apache.tomcat.websocket.level = FINE

org.apache.jasper.servlet.TldScanner.level = SEVERE

org.apache.jasper.compiler.TldLocationsCache.level = FINE
org.apache.jasper.servlet.TldScanner.level = FINE

org.apache.jasper.level = FINEST


来源: stackexchange

问:
Refresh page after uploaded image without jquery
I have an input that allows people to upload images, then I use DirectoryIterator to display them, below is the code:

```<code><div class=".content">
   <?php
   foreach ( new DirectoryIterator as $value ) {
      ?>
      <img src="<?php $value -> getFilename ?>">
      <?php
   }
   ?>
</div>
</code>```

But after people uploaded the images, how do I only refresh the div .content and not the whole page with Ajax. ( I'm not interested in jQuery )

Like below is the example code for the input:

```<code><form method="post" enctype="multipart/form-data">
   <input type="file" name="test">
   <input type="submit">
</form>
</code>```

I have referred to this but it's too general and I have totally no idea how to implement it in my case.

ContentLicense: CC BY-SA 4.0

Body:
I have an input that allows people to upload images, then I use DirectoryIterator to display them, below is the code:

   <?php
   foreach ( new DirectoryIterator as $value ) {
      ?>
      <img src="<?php $value -> getFilename ?>">
      <?php
   }
   ?>

But after people uploaded the images, how do I only refresh the div .content and not the whole page with Ajax. ( I'm not interested in jQuery )

Like below is the example code for the input:

<form method="post" enctype="multipart/form-data">
   <input type="file" name="test">
   <input type="submit">
</form>

I have referred to this but it's too general and I have totally no idea how to implement it in my case.


问:
How I can slice a []strings matrix based on column value in golang without hardcoding slice indexes?
I want to split text in a matrix based on space character, so I can store each character into a []string for later usage.

For that I am slicing a matrix based on space character in column over the 9 rows * 20 columns matrix. If column x all the rows have space then it means one charatcer has ended.

I have been able to figure out how to slice it manually, by trieal and error method and looking for starting and ending column: character[0:3] for 1, character[4:12] for 2 and character[12:19] for 3 but haven't been able to figure it out how to do it without hardcoding the columns indexes for the character.

It should store columns with characters into a result []string and look for another column till space for another charater. How should I condition for range loop so it does as described?

input from example00.txt file:

```<code>
 _   ____    _____
/ | |___ \  |___ /
| |   __) |   |_ \
| |  / __/   ___) |
|_| |_____| |____/

</code>```

Code so far:

```<code>package main

import (
    "flag"
    "fmt"
    "os"
    "strings"
)

var readFlags = flag.String("reverse", "example.txt", "read file from flag")

func main() {

    flag.Parse()
    args := flag.Args()

    const usage = "Usage: go run . [OPTION]\n\nEX: go run . --reverse=<fileName>"
    if len(args) > 0 {
        fmt.Println(usage)
        return
    }

    input, _ := os.ReadFile("test/" + *readFlags)
    slice := strings.Split(string(input), "\n")

    var result []string
    for _, character := range slice {
        if len(character) > 0 {
            // fmt.Println(string(character[0:3]))
            column := character[4:12]
            // fmt.Println(string(character[12:19]))
            result = append(result, column)

        }
    }

    for _, value := range result {
        fmt.Println(value)
    }
}

// go run . --reverse=example00.txt

</code>```

Output for example value fmt.Println(value)

```<code>% go run . --reverse=example00.txt

 ____
|___ \
  __) |
 / __/
|_____|

</code>```

Hope my explenation makes sense. Any help/guidance would be really appraciated.

Also if there is a good resource about slicing a matrix based on certain x conditions on rows or columns please point me there. :)

Body:
I want to split text in a matrix based on space character, so I can store each character into a []string for later usage.

For that I am slicing a matrix based on space character in column over the 9 rows * 20 columns matrix. If column x all the rows have space then it means one charatcer has ended.

I have been able to figure out how to slice it manually, by trieal and error method and looking for starting and ending column: character[0:3] for 1, character[4:12] for 2 and character[12:19] for 3 but haven't been able to figure it out how to do it without hardcoding the columns indexes for the character.

It should store columns with characters into a result []string and look for another column till space for another charater. How should I condition for range loop so it does as described?

input from example00.txt file:

 _   ____    _____
/ | |___ \  |___ /
| |   __) |   |_ \
| |  / __/   ___) |
|_| |_____| |____/

Code so far:

package main

import (
    "flag"
    "fmt"
    "os"
    "strings"
)

var readFlags = flag.String("reverse", "example.txt", "read file from flag")

func main() {

    flag.Parse()
    args := flag.Args()

    const usage = "Usage: go run . [OPTION]\n\nEX: go run . --reverse=<fileName>"
    if len(args) > 0 {
        fmt.Println(usage)
        return
    }

    input, _ := os.ReadFile("test/" + *readFlags)
    slice := strings.Split(string(input), "\n")

    var result []string
    for _, character := range slice {
        if len(character) > 0 {
            // fmt.Println(string(character[0:3]))
            column := character[4:12]
            // fmt.Println(string(character[12:19]))
            result = append(result, column)

        }
    }

    for _, value := range result {
        fmt.Println(value)
    }
}

// go run . --reverse=example00.txt

Output for example value fmt.Println(value)

% go run . --reverse=example00.txt

 ____
|___ \
  __) |
 / __/
|_____|

Hope my explenation makes sense. Any help/guidance would be really appraciated.

Also if there is a good resource about slicing a matrix based on certain x conditions on rows or columns please point me there. :)


问:
Why is MySQL timestamp column not updated in replica?
I want to add a timestamp column to the replica table, so that when any updates get replicated from the source it gets updated. However, it does not seem to work on every table.

Binary logs format is set to mixed.

I tried to test this with a separate table. In the source:

CREATE TABLE replication_test (
  `id` INT NOT NULL AUTO_INCREMENT,
  `text` varchar(10),
  PRIMARY KEY (id)
);
```
<p>And in the replica I added the <code>lastUpdated</code> column:</p>
<pre class="lang-sql prettyprint-override"><code>ALTER TABLE replication_test ADD lastUpdated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
</code>```

And it works, when I do insert/update queries in source the lastUpdated field gets updated. However, if I add the lastUpdated timestamp column to an existing table using the above ALTER TABLE statement, it is not updated after a update query in source.

Has anyone encountered a similar issue? Can this happen because row based replication is used instead of statement in the existing tables?

Body:
I want to add a timestamp column to the replica table, so that when any updates get replicated from the source it gets updated. However, it does not seem to work on every table.

Binary logs format is set to mixed.

I tried to test this with a separate table. In the source:

CREATE TABLE replication_test (
  `id` INT NOT NULL AUTO_INCREMENT,
  `text` varchar(10),
  PRIMARY KEY (id)
);

And in the replica I added the lastUpdated column:

ALTER TABLE replication_test ADD lastUpdated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;

And it works, when I do insert/update queries in source the lastUpdated field gets updated. However, if I add the lastUpdated timestamp column to an existing table using the above ALTER TABLE statement, it is not updated after a update query in source.

Has anyone encountered a similar issue? Can this happen because row based replication is used instead of statement in the existing tables?


问:
How to pass value to a [FormBody] variable from RestAssured?
I have a web api method as given below

```<code> // POST api/values
        public void Post([FromBody] string value)
        {
            names = names.Concat( new string[] { value } ).ToArray();

        }
</code>```

I would like to pass value to a "value" variable from RestAssured, I tried with the following RestAssured code and it did not work ( value is not getting passed)

```<code>request.contentType(ContentType.JSON);
JSONObject jsonobj = new JSONObject();
jsonobj.put("value",new String("test45@test.com"));
request.body(jsonobj.toString());

        // Get Response and verify the status code
Response response  = restAssuredManager.getAPIResponse(request, "Api/Values",RequestPostType.Post);

</code>```

It is observed that the value "test45@test.com" is not getting binded with the "value" variable in Post method.  however I could send the value from Postmain tool ( selected content-type as json and provided "rajkumar" as value in "raw" tab)

I was expecting the value to be passed from RestAssured code.

Body:
I have a web api method as given below

 // POST api/values
        public void Post([FromBody] string value)
        {
            names = names.Concat( new string[] { value } ).ToArray();

        }

I would like to pass value to a "value" variable from RestAssured, I tried with the following RestAssured code and it did not work ( value is not getting passed)

request.contentType(ContentType.JSON);
JSONObject jsonobj = new JSONObject();
jsonobj.put("value",new String("test45@test.com"));
request.body(jsonobj.toString());

        // Get Response and verify the status code
Response response  = restAssuredManager.getAPIResponse(request, "Api/Values",RequestPostType.Post);

It is observed that the value "test45@test.com" is not getting binded with the "value" variable in Post method.  however I could send the value from Postmain tool ( selected content-type as json and provided "rajkumar" as value in "raw" tab)

I was expecting the value to be passed from RestAssured code.


问:
Technology used to proceed with login from CMD or desktop application via web browser
Hello Stack Community.

I'm looking for formal name of technology/technique that's being used in Microsoft Azure CLI and in Epic Games Desktop application, that is responsible for delegation of authentication from target application to browser, where you perform OpenID Connect authentication and brings you back to target application: CLI App or Desktop App, where you can proceed as logged in user by using authentication you gained via browser.

The steps would be:

you launch target app (CLI, desktop app)

login attempt lets you choose oAuth OIDC via Google or so

selecting it opens default browser, where you proceed with login

You gain auth inside app you started from (CLI, dektop app)

In classic OIDC process you gaining your token in same app/browser environment, while here authorization is expected in app A, token is gained in web browser and afterwards there is possibility to re-use it in completely different application.

I'm wondering is this some particular OIDC extension, usage of some particular grant flow or just some particular hacky way of sharing token across entities?

I found one online resource here but my investigation don't confirm starting of any redirection URL localhost server for toke possession.

I'd appreciate any help in my investigation.


问:
How do I configure a kafka publisher within a liferay application?
We have a big Liferay workspace project with a lot of OSGi modules. Now we came into a situation like an event-driven notification system.

The Liferay application should send events to the Kafka broker

A spring boot application should listen to those events and send out appropriate notifications

So the Liferay application act as a producer and the spring boot application as a consumer. The latter part is not a concern. I can find thousands of resources that will help me. But the first one is a headache now.

All over the internet, I haven't found a single piece of information where it explains how to configure a Liferay application as a Kafka producer. If someone could shed some light on that, it will be really helpful.

nb : I am a newbie to liferay world, basically I am a spring boot developer.


问:
How to display dialog box inside textFieldSearch after selecting an item in search dropdown in flutter
I'm searching from textFieldSearch, after selecting an item from searchDropdown I want a popUp

What I tried ->
In textFieldSearch getSelected property I tried calling AlertDialog, But it's not displaying.
What I'm expecting ->
After selecting an item from searchDropDown I want a popUp


问:
How to import WP_Queue library inside a theme helper function
I want to import this library into a theme helper function [ theme-folder/includes/helperFun.php ] so I could use it inside one of the functions there.

I tried to clone the repo and run compser install then at the top of the helper file add import but it give me this error Fatal error: Uncaught Error: Class 'WP_Queue' not found.

```<code>require_once('wp-queue/vendor/autoload.php');
</code>```

Body:
I want to import this library into a theme helper function [ theme-folder/includes/helperFun.php ] so I could use it inside one of the functions there.

I tried to clone the repo and run compser install then at the top of the helper file add import but it give me this error Fatal error: Uncaught Error: Class 'WP_Queue' not found.

require_once('wp-queue/vendor/autoload.php');


问:
TypeError: expected string or bytes-like object when trying to tokenize words in a loop
I have two numpy.ndarray named Q1_test_words and Q2_test_words both of which have 100000 elements or of the shape (100000,). Each of these arrays contain 100000 sentences inside a list. I have already created two empty arrays of the same shape as these arrays.

```<code>Q1_test = np.empty_like(Q1_test_words)
Q2_test = np.empty_like(Q2_test_words)
</code>```

Now, I am trying to tokenize each of these arrays of sentences in a loop like the following.

```<code>for idx in range(len(Q1_test_words)):
    Q1_test[idx] = nltk.word_tokenize(Q1_test_words[idx])
    Q2_test[idx] = nltk.word_tokenize(Q2_test_words[idx])
</code>```

But I am getting the following error:

How to resolve this?

Body:
I have two numpy.ndarray named Q1_test_words and Q2_test_words both of which have 100000 elements or of the shape (100000,). Each of these arrays contain 100000 sentences inside a list. I have already created two empty arrays of the same shape as these arrays.

Q1_test = np.empty_like(Q1_test_words)
Q2_test = np.empty_like(Q2_test_words)

Now, I am trying to tokenize each of these arrays of sentences in a loop like the following.

for idx in range(len(Q1_test_words)):
    Q1_test[idx] = nltk.word_tokenize(Q1_test_words[idx])
    Q2_test[idx] = nltk.word_tokenize(Q2_test_words[idx])

But I am getting the following error:

How to resolve this?


问:
Local notification to make custom periodic notification
I want to make a notification app in which the user will put time(in minutes) as input and the app will give notification after every x(input provided by user) minutes. I have tried using ReapeatedInterval but it only works for everyMinute, daily, hourly and weekly but I want to make the custom timer for notification to repeat. Below is my code which I have tried.

`

```<code>import 'package:configurable_notification/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'dart:developer';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:timezone/timezone.dart' as tz;
import 'package:intl/intl.dart';

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  var time;

  void showNotification() async{
    AndroidNotificationDetails androidDetails =
    AndroidNotificationDetails(
        "Hi",
        "Notifications",
      priority: Priority.max,
      importance: Importance.max,
    );

    NotificationDetails notificationDetails = NotificationDetails(
      android:  androidDetails,
    );

    DateTime scheduleNoti =DateTime.now().add(Duration(seconds: 1));

    // await notificationsPlugin.zonedSchedule(
    //     0,
    //     "Hi",
    //     "Notification",
    //     tz.TZDateTime.from(scheduleNoti, tz.local),
    //     notificationDetails,
    //     uiLocalNotificationDateInterpretation: UILocalNotificationDateInterpretation.wallClockTime,
    //     androidAllowWhileIdle: true,
    //     payload:"notification-payload",
    //     matchDateTimeComponents: DateTimeComponents.time
    // );

    await notificationsPlugin.periodicallyShow(
        0,
        "Hi",
        "Notification",
        RepeatInterval.,
        notificationDetails,
        androidAllowWhileIdle: true,
    );

  }

  void checkForNotification() async{
    NotificationAppLaunchDetails? details = await
    notificationsPlugin.getNotificationAppLaunchDetails();

    if(details != null ){
      if(details.didNotificationLaunchApp){
          NotificationResponse? response = details.notificationResponse;

          if(details != null){
            String? payload =response!.payload;
            log("Notification Payload : $payload");
          }

      }
    }
  }

  void cancelNoti(){
    notificationsPlugin.cancelAll();
  }

  Widget _buildTime(){
    return Container(
      decoration: const BoxDecoration(),
      child: TextFormField(
        decoration:
        InputDecoration(labelText: 'Timer', border: OutlineInputBorder(),suffix: Text("in minutes")),
        keyboardType: TextInputType.number,
        inputFormatters: <TextInputFormatter>[
          FilteringTextInputFormatter.allow(RegExp(r'[0-9]')),
          // FilteringTextInputFormatter.digitsOnly
        ],
        onChanged: (value){
          setState(() {
            time = value;
          });
        },
      ),
    );
  }

  Widget _buildNotification(){
   return Container(
     child: ElevatedButton(
       onPressed: (){
         showNotification();
       },
       child: Text("Start Notifications") ,
     ),
   );
  }

  Widget _cancelNotification(){
    return Container(
      child: ElevatedButton(
        onPressed: (){
          cancelNoti();
        },
        child: Text("Cancel Notifications") ,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Configurable Notification"),
        centerTitle: true,
      ),
      body: GestureDetector(
        onTap: (){FocusScope.of(context).requestFocus(new FocusNode());},
        child: SingleChildScrollView(
          child: Center(
            child: Padding(
              padding: const EdgeInsets.all(18),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.start,
                children: [
                  SizedBox(height: 150,),
                  _buildTime(),
                  SizedBox(height: 10,),
                  _buildNotification(),
                  SizedBox(height: 100,),
                  _cancelNotification(),
                ],
              ),
            ),
          ),
        ),
      )
    );
  }
}

</code>```

`

Body:
I want to make a notification app in which the user will put time(in minutes) as input and the app will give notification after every x(input provided by user) minutes. I have tried using ReapeatedInterval but it only works for everyMinute, daily, hourly and weekly but I want to make the custom timer for notification to repeat. Below is my code which I have tried.

`

import 'package:configurable_notification/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'dart:developer';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:timezone/timezone.dart' as tz;
import 'package:intl/intl.dart';

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  var time;

  void showNotification() async{
    AndroidNotificationDetails androidDetails =
    AndroidNotificationDetails(
        "Hi",
        "Notifications",
      priority: Priority.max,
      importance: Importance.max,
    );

    NotificationDetails notificationDetails = NotificationDetails(
      android:  androidDetails,
    );

    DateTime scheduleNoti =DateTime.now().add(Duration(seconds: 1));

    // await notificationsPlugin.zonedSchedule(
    //     0,
    //     "Hi",
    //     "Notification",
    //     tz.TZDateTime.from(scheduleNoti, tz.local),
    //     notificationDetails,
    //     uiLocalNotificationDateInterpretation: UILocalNotificationDateInterpretation.wallClockTime,
    //     androidAllowWhileIdle: true,
    //     payload:"notification-payload",
    //     matchDateTimeComponents: DateTimeComponents.time
    // );

    await notificationsPlugin.periodicallyShow(
        0,
        "Hi",
        "Notification",
        RepeatInterval.,
        notificationDetails,
        androidAllowWhileIdle: true,
    );

  }

  void checkForNotification() async{
    NotificationAppLaunchDetails? details = await
    notificationsPlugin.getNotificationAppLaunchDetails();

    if(details != null ){
      if(details.didNotificationLaunchApp){
          NotificationResponse? response = details.notificationResponse;

          if(details != null){
            String? payload =response!.payload;
            log("Notification Payload : $payload");
          }

      }
    }
  }

  void cancelNoti(){
    notificationsPlugin.cancelAll();
  }

  Widget _buildTime(){
    return Container(
      decoration: const BoxDecoration(),
      child: TextFormField(
        decoration:
        InputDecoration(labelText: 'Timer', border: OutlineInputBorder(),suffix: Text("in minutes")),
        keyboardType: TextInputType.number,
        inputFormatters: <TextInputFormatter>[
          FilteringTextInputFormatter.allow(RegExp(r'[0-9]')),
          // FilteringTextInputFormatter.digitsOnly
        ],
        onChanged: (value){
          setState(() {
            time = value;
          });
        },
      ),
    );
  }

  Widget _buildNotification(){
   return Container(
     child: ElevatedButton(
       onPressed: (){
         showNotification();
       },
       child: Text("Start Notifications") ,
     ),
   );
  }

  Widget _cancelNotification(){
    return Container(
      child: ElevatedButton(
        onPressed: (){
          cancelNoti();
        },
        child: Text("Cancel Notifications") ,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Configurable Notification"),
        centerTitle: true,
      ),
      body: GestureDetector(
        onTap: (){FocusScope.of(context).requestFocus(new FocusNode());},
        child: SingleChildScrollView(
          child: Center(
            child: Padding(
              padding: const EdgeInsets.all(18),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.start,
                children: [
                  SizedBox(height: 150,),
                  _buildTime(),
                  SizedBox(height: 10,),
                  _buildNotification(),
                  SizedBox(height: 100,),
                  _cancelNotification(),
                ],
              ),
            ),
          ),
        ),
      )
    );
  }
}

`


问:
How to add a WebApp button in a bot

how can I display such a button through the code in not through @BotFather
I use aiogram
Now I have default commands like
/start & /help

```<code>async def set_default_commands(dp):
    await dp.bot.set_my_commands(
        [
            types.BotCommand("start", "Старт бота"),
            types.BotCommand("help", "Помощь"),
        ]
    )
</code>```

Title: How to add a WebApp button in a bot

Body:
how can I display such a button through the code in not through @BotFather
I use aiogram
Now I have default commands like
/start & /help

async def set_default_commands(dp):
    await dp.bot.set_my_commands(
        [
            types.BotCommand("start", "Старт бота"),
            types.BotCommand("help", "Помощь"),
        ]
    )


问:
Spring boot - room booking - make reservation date contorl
I create a room booking system and I need to control date. I want to validate date in order not to make a reservation for the same room i the same time period.
Can you help me with needed steps to do/articles/ready solutuios where I can see the mechanism?

I have working CRUD for reservation, but without date control


问:
How to get selected json objects from a nested json in postgres sql
I have the data stored in a table named 'userfields' the below format in one of the columns named 'params' in Postgres SQL. I want to select two json objects and the output should be in the same format

{
        "default": {
                  "model": "core.location",
                  "pk": 119
                    },
        "field1": {
                  "name": "Vista Community Clinic- The Gary Center, S. Harbour Blvd",
                  "full_address": "201 S. Harbor Boulevard, \nLa Habra, CA 90631"
                    }
       "fields2": {
                  "name": "xyz- The Gary Center, S. Harbour Blvd",
                  "full_address": "abc, \nLa Habra, CA 90631"
                   }
}
```
<p>I have tried and achieved for one json object which will return for example default
The query I have used is</p>
```select json_extract_path(params::json,'default') as selectedparams from userfields.
```
<p>I am not able to select two json objects like default and feild1</p>
<p>The output I have got is</p>
<pre class="lang-json prettyprint-override"><code>{
                  "model": "core.location",
                  "pk": 119
}
</code>```

The output I want is I want to get default and field1 as the nested JSON by using PostgreSQL13  query like below

Desired Result:

{
        "default": {
                  "model": "core.location",
                  "pk": 119
                    },
        "field1": {
                  "name": "Vista Community Clinic- The Gary Center, S. Harbour Blvd",
                  "full_address": "201 S. Harbor Boulevard, \nLa Habra, CA 90631"
                    }

}
```

Body:
I have the data stored in a table named 'userfields' the below format in one of the columns named 'params' in Postgres SQL. I want to select two json objects and the output should be in the same format

{
        "default": {
                  "model": "core.location",
                  "pk": 119
                    },
        "field1": {
                  "name": "Vista Community Clinic- The Gary Center, S. Harbour Blvd",
                  "full_address": "201 S. Harbor Boulevard, \nLa Habra, CA 90631"
                    }
       "fields2": {
                  "name": "xyz- The Gary Center, S. Harbour Blvd",
                  "full_address": "abc, \nLa Habra, CA 90631"
                   }
}

I have tried and achieved for one json object which will return for example default
The query I have used is

select json_extract_path(params::json,'default') as selectedparams from userfields.

I am not able to select two json objects like default and feild1

The output I have got is

{
                  "model": "core.location",
                  "pk": 119
}

The output I want is I want to get default and field1 as the nested JSON by using PostgreSQL13  query like below

Desired Result:

{
        "default": {
                  "model": "core.location",
                  "pk": 119
                    },
        "field1": {
                  "name": "Vista Community Clinic- The Gary Center, S. Harbour Blvd",
                  "full_address": "201 S. Harbor Boulevard, \nLa Habra, CA 90631"
                    }

}


问:
Firebase Github Authentication for Jetpack Compose App
Firstly, I read the documentation. I enabled GitHub auth from the console and typed OAuth app info, such as client_id, etc. But I got confused about how should I do it. In the documentation, there are some Java codes like that. But I want to do that in Kotlin and also not just "copy-pasting" it:

```<code>Task<AuthResult> pendingResultTask = firebaseAuth.getPendingAuthResult();
if (pendingResultTask != null) {
  // There's something already here! Finish the sign-in for your user.
  pendingResultTask
      .addOnSuccessListener(
          new OnSuccessListener<AuthResult>() {
            @Override
            public void onSuccess(AuthResult authResult) {
              // User is signed in.
              // IdP data available in
              // authResult.getAdditionalUserInfo().getProfile().
              // The OAuth access token can also be retrieved:
              // ((OAuthCredential)authResult.getCredential()).getAccessToken().
            }
          })
      .addOnFailureListener(
          new OnFailureListener() {
            @Override
            public void onFailure(@NonNull Exception e) {
              // Handle failure.
            }
          });
} else {
  // There's no pending result so you need to start the sign-in flow.
  // See below.
}

// The user is already signed-in.
FirebaseUser firebaseUser = firebaseAuth.getCurrentUser();

firebaseUser
    .startActivityForLinkWithProvider(/* activity= */ this, provider.build())
    .addOnSuccessListener(
        new OnSuccessListener<AuthResult>() {
          @Override
          public void onSuccess(AuthResult authResult) {
            // GitHub credential is linked to the current user.
            // IdP data available in
            // authResult.getAdditionalUserInfo().getProfile().
            // The OAuth access token can also be retrieved:
            // authResult.getCredential().getAccessToken().
          }
        })
    .addOnFailureListener(
        new OnFailureListener() {
          @Override
          public void onFailure(@NonNull Exception e) {
            // Handle failure.
          }
        });
</code>```

Simply what I want to do is get this:

After the user clicked GitHub icon and then redirects it to the GitHub page. What should I do?

Body:
Firstly, I read the documentation. I enabled GitHub auth from the console and typed OAuth app info, such as client_id, etc. But I got confused about how should I do it. In the documentation, there are some Java codes like that. But I want to do that in Kotlin and also not just "copy-pasting" it:

Task<AuthResult> pendingResultTask = firebaseAuth.getPendingAuthResult();
if (pendingResultTask != null) {
  // There's something already here! Finish the sign-in for your user.
  pendingResultTask
      .addOnSuccessListener(
          new OnSuccessListener<AuthResult>() {
            @Override
            public void onSuccess(AuthResult authResult) {
              // User is signed in.
              // IdP data available in
              // authResult.getAdditionalUserInfo().getProfile().
              // The OAuth access token can also be retrieved:
              // ((OAuthCredential)authResult.getCredential()).getAccessToken().
            }
          })
      .addOnFailureListener(
          new OnFailureListener() {
            @Override
            public void onFailure(@NonNull Exception e) {
              // Handle failure.
            }
          });
} else {
  // There's no pending result so you need to start the sign-in flow.
  // See below.
}

// The user is already signed-in.
FirebaseUser firebaseUser = firebaseAuth.getCurrentUser();

firebaseUser
    .startActivityForLinkWithProvider(/* activity= */ this, provider.build())
    .addOnSuccessListener(
        new OnSuccessListener<AuthResult>() {
          @Override
          public void onSuccess(AuthResult authResult) {
            // GitHub credential is linked to the current user.
            // IdP data available in
            // authResult.getAdditionalUserInfo().getProfile().
            // The OAuth access token can also be retrieved:
            // authResult.getCredential().getAccessToken().
          }
        })
    .addOnFailureListener(
        new OnFailureListener() {
          @Override
          public void onFailure(@NonNull Exception e) {
            // Handle failure.
          }
        });

Simply what I want to do is get this:

After the user clicked GitHub icon and then redirects it to the GitHub page. What should I do?


问:
Null pointer when creating a unit test for JPAQueryFactory
I have this method to update a table in DB, it works correctly, until I create the unit test for it:

```<code> public class ReferentialAdapter {
        private final JPAQueryFactory queryFactory;

        public void enableServiceConfigs(String roleCode, String countryIsoCode, List<String> services) {
            QServiceConfigEntity qServiceConfigEntity = QServiceConfigEntity.serviceConfigEntity;
            QCountryRoleEntity qCountryRoleEntity = QCountryRoleEntity.countryRoleEntity;
            QServiceEntity qServiceEntity = QServiceEntity.serviceEntity;
            JPQLQuery<Long> countryRoleId = JPAExpressions.select(qCountryRoleEntity.id).from(qCountryRoleEntity)
                    .where(qCountryRoleEntity.country.isoCode.equalsIgnoreCase(countryIsoCode).and(qCountryRoleEntity.role.code.equalsIgnoreCase(roleCode)));

            BooleanExpression whereCondition = qServiceConfigEntity.countryRole.id.eq(countryRoleId)
                    .and(qServiceConfigEntity.service.id.in(serviceIds));

            queryFactory.update(qServiceConfigEntity)
                    .where(whereCondition)
                    .set(qServiceConfigEntity.isEnabled, Boolean.TRUE)
                    .execute();
        }
    }
</code>```

configuration for JPAQueryFactory:

```<code>@Configuration
public class QueryDslConfig {

    @PersistenceContext
    private EntityManager entityManager;

    @Bean
    public JPAQueryFactory jpaQueryFactory() {
        return new JPAQueryFactory(entityManager);
    }
}
</code>```

but this test throw a null pointer exception when call the execute() for the update.

```<code>@ExtendWith(MockitoExtension.class)
class ReferentialAdapterTest {

    @Mock
    private  JPAQueryFactory queryFactory;

    @InjectMocks
    private ReferentialAdapter referentialAdapter;

    @Test
    void shouldEnableServicesConfig() {
        String roleCode = "CA_ICS_HBE";
        String countryIsoCode= "FR";
        List<String> services = Arrays.asList("VT" , "CAF");
        referentialAdapter.enableServiceConfigs(roleCode,countryIsoCode,services);
        verify(queryFactory,times(1)).update(any());
    }
}
</code>```

Body:
I have this method to update a table in DB, it works correctly, until I create the unit test for it:

 public class ReferentialAdapter {
        private final JPAQueryFactory queryFactory;

        public void enableServiceConfigs(String roleCode, String countryIsoCode, List<String> services) {
            QServiceConfigEntity qServiceConfigEntity = QServiceConfigEntity.serviceConfigEntity;
            QCountryRoleEntity qCountryRoleEntity = QCountryRoleEntity.countryRoleEntity;
            QServiceEntity qServiceEntity = QServiceEntity.serviceEntity;
            JPQLQuery<Long> countryRoleId = JPAExpressions.select(qCountryRoleEntity.id).from(qCountryRoleEntity)
                    .where(qCountryRoleEntity.country.isoCode.equalsIgnoreCase(countryIsoCode).and(qCountryRoleEntity.role.code.equalsIgnoreCase(roleCode)));

            BooleanExpression whereCondition = qServiceConfigEntity.countryRole.id.eq(countryRoleId)
                    .and(qServiceConfigEntity.service.id.in(serviceIds));

            queryFactory.update(qServiceConfigEntity)
                    .where(whereCondition)
                    .set(qServiceConfigEntity.isEnabled, Boolean.TRUE)
                    .execute();
        }
    }

configuration for JPAQueryFactory:

@Configuration
public class QueryDslConfig {

    @PersistenceContext
    private EntityManager entityManager;

    @Bean
    public JPAQueryFactory jpaQueryFactory() {
        return new JPAQueryFactory(entityManager);
    }
}

but this test throw a null pointer exception when call the execute() for the update.

@ExtendWith(MockitoExtension.class)
class ReferentialAdapterTest {

    @Mock
    private  JPAQueryFactory queryFactory;

    @InjectMocks
    private ReferentialAdapter referentialAdapter;

    @Test
    void shouldEnableServicesConfig() {
        String roleCode = "CA_ICS_HBE";
        String countryIsoCode= "FR";
        List<String> services = Arrays.asList("VT" , "CAF");
        referentialAdapter.enableServiceConfigs(roleCode,countryIsoCode,services);
        verify(queryFactory,times(1)).update(any());
    }
}


问:
Rails ActiveStorage upload to S3 redirects to private file url
In a Rails 6 api-only project running in a K8s cluster I'm using S3 to store file uploaded by users. When retrieving files I'm using

polymorphic_url(pdf_document, only_path: true) (because I need to manipulate host path. I tried rails_blob_path, url_for but the final result is always the same)

and it returns the right path:

/rails/active_storage/blobs/redirect/SIGNED_ID/document.pdf

When accessing this path, I get a redirect to S3 private object uri, like

https://BUCKETNAME.s3.us-east-1.amazonaws.com/ID?response-content-disposition=inline%3B%20filename%3D%22document.pdf%22%3B%20filename%2A%3DUTF-8%27%27document.pdf&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AWS_ACCESS_KEY_ID%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221209T112219Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=SIGNATURE

that exposes private informations like AWS_ACCESS_KEY_ID and SIGNATURE.

How do I return the public S3 object uri, or a safe uri without sensitive data?


问:
Flutter lottie animation takes time when it loads for the first time
Lottie animation takes 3-4 seconds time to load for the first time.
After first loading it works fine. The size of the lottie json file is 2mb

code:

import 'package:flutter/material.dart';
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/basic.dart';
import 'package:flutter/src/widgets/container.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:lottie/lottie.dart';
import 'package:prm/constants/size_config.dart';

class TestScreen extends StatefulWidget {
  const TestScreen({Key? key}) : super(key: key);

  @override
  State<TestScreen> createState() => _TestScreenState();
}

class _TestScreenState extends State<TestScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
        child: Container(
          child: Lottie.asset(
            "assets/animation/flightLoader.json",
            frameRate: FrameRate.max,
            height: SizeConfig.blockSizeVertical! * 30,
          ),
        ),
      ),
    );
  }
}
```


问:
Magento 2 checkout page, custom form and save data of custom form in custom table?
During that task i am facing error, 'Enrolment is required field'

Save data into custom table and custom form is working fine.