sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
93 stars 58 forks source link

wicket-jquery-ui-samples in Docker doesn't work #364

Closed Andrey-Metelyov closed 1 year ago

Andrey-Metelyov commented 1 year ago

Logs when I run wicket-jquery-ui-samples in Docker:

docker run -ti -p 8080:8080 wicket-jquery-ui
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /opt/java/openjdk
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
07-Sep-2023 05:37:09.770 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/10.1.13
07-Sep-2023 05:37:09.777 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Aug 23 2023 21:34:59 UTC
07-Sep-2023 05:37:09.778 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.1.13.0
07-Sep-2023 05:37:09.778 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
07-Sep-2023 05:37:09.779 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.15.90.1-microsoft-standard-WSL2
07-Sep-2023 05:37:09.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
07-Sep-2023 05:37:09.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /opt/java/openjdk
07-Sep-2023 05:37:09.783 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.20.1+1
07-Sep-2023 05:37:09.783 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Eclipse Adoptium
07-Sep-2023 05:37:09.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
07-Sep-2023 05:37:09.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
07-Sep-2023 05:37:09.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
07-Sep-2023 05:37:09.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Sep-2023 05:37:09.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Sep-2023 05:37:09.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Sep-2023 05:37:09.868 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
07-Sep-2023 05:37:09.868 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
07-Sep-2023 05:37:09.869 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
07-Sep-2023 05:37:09.869 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
07-Sep-2023 05:37:09.869 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
07-Sep-2023 05:37:09.870 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
07-Sep-2023 05:37:09.871 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
07-Sep-2023 05:37:09.871 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
07-Sep-2023 05:37:09.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
07-Sep-2023 05:37:09.894 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [2.0.5] using APR version [1.7.0].
07-Sep-2023 05:37:09.924 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
07-Sep-2023 05:37:10.801 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
07-Sep-2023 05:37:10.955 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1833] milliseconds
07-Sep-2023 05:37:11.077 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Sep-2023 05:37:11.077 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.13]
07-Sep-2023 05:37:11.137 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/wicket-jquery-ui.war]
07-Sep-2023 05:37:12.947 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.
07-Sep-2023 05:37:12.993 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
07-Sep-2023 05:37:12.994 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/wicket-jquery-ui] startup failed due to previous errors
07-Sep-2023 05:37:13.013 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/wicket-jquery-ui.war] has finished in [1,875] ms
07-Sep-2023 05:37:13.020 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
07-Sep-2023 05:37:13.041 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2085] milliseconds
root@f959c86f196c:/usr/local/tomcat/logs# cat localhost.2023-09-07.log 
07-Sep-2023 05:37:12.993 SEVERE [main] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [wicket-jquery-ui]
        java.lang.NoClassDefFoundError: javax/servlet/Filter
                at java.base/java.lang.ClassLoader.defineClass1(Native Method)
                at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
                at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
                at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2484)
                at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
                at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
                at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
                at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:243)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4271)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4886)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:713)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:975)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1949)
                at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:776)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:426)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1656)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:846)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
                at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:241)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:918)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
        Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
                ... 53 more
root@f959c86f196c:/usr/local/tomcat/logs#
root@f959c86f196c:/usr/local/tomcat/logs# cat localhost_access_log.2023-09-07.txt 
172.17.0.1 - - [07/Sep/2023:05:43:44 +0000] "GET / HTTP/1.1" 404 703
172.17.0.1 - - [07/Sep/2023:05:43:44 +0000] "GET /favicon.ico HTTP/1.1" 404 703
172.17.0.1 - - [07/Sep/2023:05:43:59 +0000] "GET /wicket-jquery-ui-samples HTTP/1.1" 404 703
172.17.0.1 - - [07/Sep/2023:05:44:10 +0000] "GET /wicket-jquery-ui HTTP/1.1" 404 703
172.17.0.1 - - [07/Sep/2023:05:50:29 +0000] "GET / HTTP/1.1" 404 703
root@f959c86f196c:/usr/local/tomcat/logs#

Can you tell me, please, why it was not starting correctly?

martin-g commented 1 year ago

How did you create this Docker image ? javax.servlet.Filter class should be provided by Tomcat (the servlet container). It seems your Tomcat installation is broken somehow.

Andrey-Metelyov commented 1 year ago

How did you create this Docker image ?

From Dockerfile file in project:

# Caution: need Docker 20.10.10+
FROM tomcat:10.1-jre11

COPY ./target/wicket-jquery-ui.war /usr/local/tomcat/webapps
docker build -t "wicket-jquery-ui" .
docker run -ti -p 8080:8080 wicket-jquery-ui
martin-g commented 1 year ago

Please check whether ./target/wicket-jquery-ui.war contains servlet-api.jar in its WEB-INF/lib/ folder. If it is there then please remove it and deploy again to Tomcat.

If it is not there then you should ask the creators of tomcat:10.1-jre11 for help.

Andrey-Metelyov commented 1 year ago
WEB-INF/lib/animal-sniffer-annotations-1.17.jar
WEB-INF/lib/checker-qual-2.5.2.jar
WEB-INF/lib/commons-collections4-4.4.jar
WEB-INF/lib/commons-fileupload-1.4.jar
WEB-INF/lib/commons-io-2.6.jar
WEB-INF/lib/error_prone_annotations-2.2.0.jar
WEB-INF/lib/failureaccess-1.0.1.jar
WEB-INF/lib/guava-27.1-jre.jar
WEB-INF/lib/j2objc-annotations-1.1.jar
WEB-INF/lib/jdk-serializable-functional-1.8.6.jar
WEB-INF/lib/jsr305-3.0.2.jar
WEB-INF/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
WEB-INF/lib/log4j-1.2.17.jar
WEB-INF/lib/openjson-1.0.11.jar
WEB-INF/lib/owasp-java-html-sanitizer-20190325.1.jar
WEB-INF/lib/slf4j-api-1.7.25.jar
WEB-INF/lib/slf4j-log4j12-1.6.2.jar
WEB-INF/lib/wicket-core-8.10.0.jar
WEB-INF/lib/wicket-devutils-8.10.0.jar
WEB-INF/lib/wicket-extensions-8.10.0.jar
WEB-INF/lib/wicket-jquery-ui-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-jquery-ui-calendar-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-jquery-ui-core-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-jquery-ui-plugins-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-jquery-ui-theme-base-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-kendo-ui-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-kendo-ui-culture-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-kendo-ui-theme-silver-8.10.3-SNAPSHOT.jar
WEB-INF/lib/wicket-request-8.10.0.jar
WEB-INF/lib/wicket-util-8.10.0.jar
martin-g commented 1 year ago

Looks good to me! Now the question is why servlet-api.jar is not in Tomcat ...

Andrey-Metelyov commented 1 year ago

It is, but implementation is jakarta.servlet while org.apache.wicket.protocol.http.WicketFilter wants javax.servlet

root@2c6557af9d4f:/usr/local/tomcat/lib# ls -l
total 10664
-rw-r--r-- 1 root root   14129 Aug 23 21:34 annotations-api.jar
-rw-r--r-- 1 root root   55987 Aug 23 21:34 catalina-ant.jar
-rw-r--r-- 1 root root  125160 Aug 23 21:34 catalina-ha.jar
-rw-r--r-- 1 root root 1735851 Aug 23 21:34 catalina.jar
-rw-r--r-- 1 root root   63704 Aug 23 21:34 catalina-ssi.jar
-rw-r--r-- 1 root root   79073 Aug 23 21:34 catalina-storeconfig.jar
-rw-r--r-- 1 root root  324869 Aug 23 21:34 catalina-tribes.jar
-rw-r--r-- 1 root root 3160927 Aug 23 21:34 ecj-4.27.jar
-rw-r--r-- 1 root root   89978 Aug 23 21:34 el-api.jar
-rw-r--r-- 1 root root  794063 Aug 23 21:34 jakartaee-migration-1.0.7-shaded.jar
-rw-r--r-- 1 root root  172869 Aug 23 21:34 jasper-el.jar
-rw-r--r-- 1 root root  569640 Aug 23 21:34 jasper.jar
-rw-r--r-- 1 root root   28478 Aug 23 21:34 jaspic-api.jar
-rw-r--r-- 1 root root   67943 Aug 23 21:34 jsp-api.jar
-rw-r--r-- 1 root root  365906 Aug 23 21:34 servlet-api.jar
-rw-r--r-- 1 root root   11576 Aug 23 21:34 tomcat-api.jar
-rw-r--r-- 1 root root  886501 Aug 23 21:34 tomcat-coyote.jar
-rw-r--r-- 1 root root  335652 Aug 23 21:34 tomcat-dbcp.jar
-rw-r--r-- 1 root root   68427 Aug 23 21:34 tomcat-i18n-cs.jar
-rw-r--r-- 1 root root   77387 Aug 23 21:34 tomcat-i18n-de.jar
-rw-r--r-- 1 root root  103934 Aug 23 21:34 tomcat-i18n-es.jar
-rw-r--r-- 1 root root  170189 Aug 23 21:34 tomcat-i18n-fr.jar
-rw-r--r-- 1 root root  193354 Aug 23 21:34 tomcat-i18n-ja.jar
-rw-r--r-- 1 root root  192965 Aug 23 21:34 tomcat-i18n-ko.jar
-rw-r--r-- 1 root root   52067 Aug 23 21:34 tomcat-i18n-pt-BR.jar
-rw-r--r-- 1 root root   49197 Aug 23 21:34 tomcat-i18n-ru.jar
-rw-r--r-- 1 root root  176162 Aug 23 21:34 tomcat-i18n-zh-CN.jar
-rw-r--r-- 1 root root  149806 Aug 23 21:34 tomcat-jdbc.jar
-rw-r--r-- 1 root root   16153 Aug 23 21:34 tomcat-jni.jar
-rw-r--r-- 1 root root  210194 Aug 23 21:34 tomcat-util.jar
-rw-r--r-- 1 root root  229315 Aug 23 21:34 tomcat-util-scan.jar
-rw-r--r-- 1 root root  241029 Aug 23 21:34 tomcat-websocket.jar
-rw-r--r-- 1 root root   14725 Aug 23 21:34 websocket-api.jar
-rw-r--r-- 1 root root   31671 Aug 23 21:34 websocket-client-api.jar
root@2c6557af9d4f:/usr/local/tomcat/lib#
martin-g commented 1 year ago

Right! You need Tomcat 9.x for Wicket JQuery UI 8.x.

Jakarta support is available since Wicket 10.0.0-M1.

Andrey-Metelyov commented 1 year ago

It's alive!

Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /opt/java/openjdk
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
07-Sep-2023 07:19:47.403 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.80
07-Sep-2023 07:19:47.406 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Aug 23 2023 21:59:38 UTC
07-Sep-2023 07:19:47.406 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.80.0
07-Sep-2023 07:19:47.407 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
07-Sep-2023 07:19:47.407 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.15.90.1-microsoft-standard-WSL2
07-Sep-2023 07:19:47.407 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
07-Sep-2023 07:19:47.407 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /opt/java/openjdk
07-Sep-2023 07:19:47.408 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.20.1+1
07-Sep-2023 07:19:47.408 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Eclipse Adoptium
07-Sep-2023 07:19:47.408 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
07-Sep-2023 07:19:47.408 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
07-Sep-2023 07:19:47.419 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
07-Sep-2023 07:19:47.419 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
07-Sep-2023 07:19:47.420 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
07-Sep-2023 07:19:47.421 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
07-Sep-2023 07:19:47.421 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
07-Sep-2023 07:19:47.421 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
07-Sep-2023 07:19:47.422 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Sep-2023 07:19:47.422 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Sep-2023 07:19:47.422 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Sep-2023 07:19:47.422 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
07-Sep-2023 07:19:47.423 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
07-Sep-2023 07:19:47.423 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
07-Sep-2023 07:19:47.423 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
07-Sep-2023 07:19:47.424 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
07-Sep-2023 07:19:47.428 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.7.0].
07-Sep-2023 07:19:47.428 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
07-Sep-2023 07:19:47.428 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
07-Sep-2023 07:19:47.432 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
07-Sep-2023 07:19:47.902 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
07-Sep-2023 07:19:47.938 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [725] milliseconds
07-Sep-2023 07:19:48.026 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Sep-2023 07:19:48.026 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.80]
07-Sep-2023 07:19:48.049 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/wicket-jquery-ui.war]
07-Sep-2023 07:19:49.531 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.
Unexpected problem occured during version sanity check
Reported exception:
java.lang.AbstractMethodError: Receiver class org.slf4j.simple.SimpleServiceProvider does not define or inherit an implementation of the resolved method 'abstract java.lang.String getRequestedApiVersion()' of interface org.slf4j.spi.SLF4JServiceProvider.
at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:297)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:141)
at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:421)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:407)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:356)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:382)
at org.apache.wicket.protocol.http.WicketFilter.<clinit>(WicketFilter.java:69)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:242)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:97)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4311)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4940)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1910)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
[main] INFO org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for filter with name wicket-jquery-ui: [/*]
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket extensions initializer
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket Kendo UI initializer
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket core library initializer
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket jQuery UI initializer (plugins)
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket Kendo UI initializer (theme-default)
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: DevUtils DebugBar Initializer
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket jQuery UI initializer (theme-base)
[main] INFO org.apache.wicket.Application - [wicket-jquery-ui] init: Wicket jQuery UI initializer
[main] INFO org.apache.wicket.protocol.http.WebApplication - [wicket-jquery-ui] Started Wicket version 9.12.0 in DEVELOPMENT mode
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
07-Sep-2023 07:19:49.914 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/wicket-jquery-ui.war] has finished in [1,865] ms
07-Sep-2023 07:19:49.920 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
07-Sep-2023 07:19:49.943 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2004] milliseconds
root@2c0c8d7a6b14:/usr/local/tomcat# cat logs/localhost_access_log.2023-09-07.txt 
172.17.0.1 - - [07/Sep/2023:07:20:13 +0000] "GET / HTTP/1.1" 404 702
172.17.0.1 - - [07/Sep/2023:07:20:16 +0000] "GET / HTTP/1.1" 404 702
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui HTTP/1.1" 302 -
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/ HTTP/1.1" 302 -
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/;jsessionid=C68AEEE23B387D9E9A40BF7FE3717BA7?0 HTTP/1.1" 200 14588
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/jquery.collapse-ver-1694080736000.js HTTP/1.1" 200 4900
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-3.6.0-ver-1694021538000.js HTTP/1.1" 200 288580
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/modernizr-custom-ver-1694080736000.js HTTP/1.1" 200 6876
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1694021538000.js HTTP/1.1" 200 72747
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/main-ver-1694080736000.css HTTP/1.1" 200 16972
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/normalize-ver-1694080736000.css HTTP/1.1" 200 8225
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/jquery.collapse_storage-ver-1694080736000.js HTTP/1.1" 200 1424
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/TemplatePage-ver-1694080736000.js HTTP/1.1" 200 205
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage$GoogleAnalyticsBehavior/gaq.js;jsessionid=C68AEEE23B387D9E9A40BF7FE3717BA7 HTTP/1.1" 200 387
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/images/background.png HTTP/1.1" 200 491227
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/fonts/icomoon.ttf?a3s9hs HTTP/1.1" 200 1564
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/fonts/Raleway-Regular.woff HTTP/1.1" 200 69316
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/fonts/texgyreadventor-regular-webfont.woff HTTP/1.1" 200 21232
172.17.0.1 - - [07/Sep/2023:07:20:32 +0000] "GET /wicket-jquery-ui/wicket/resource/com.googlecode.wicket.jquery.ui.samples.TemplatePage/fonts/Raleway-Bold.woff HTTP/1.1" 200 69708
root@2c0c8d7a6b14:/usr/local/tomcat#
martin-g commented 1 year ago

Great!

You may want to sync the versions of WEB-INF/lib/slf4j-api-1.7.25.jar and WEB-INF/lib/slf4j-log4j12-1.6.2.jar to avoid the following error:

Unexpected problem occured during version sanity check
Reported exception:
java.lang.AbstractMethodError: Receiver class org.slf4j.simple.SimpleServiceProvider does not define or inherit an implementation of the resolved method 'abstract java.lang.String getRequestedApiVersion()' of interface org.slf4j.spi.SLF4JServiceProvider.
Andrey-Metelyov commented 1 year ago

Changing to <slf4j.version>2.0.0</slf4j.version> from <slf4j.version>2.0.0-alpha2</slf4j.version> in wicket-jquery-ui-samples/pom.xml helps.