Hope you are all doing well.
I'm here with one issue which I'm not able to fix from the past few days. It will be very helpful if I get assistance on this.
1. I've created one spring boot project (version 2.7.8) using JDK 17
and used maven jetty plugin and WAR plugin along with jetty dependency
and excluded tomcat.
2. I'm using maven jetty:run goal in
order to initiate jetty using contextXML and provided the required
configuration as instructed in jetty official page
3. When I start jetty, the container is getting started however it is
not initiating spring boot application. However when I'm using java -jar <WAR file absolute path>, the application get started in the embedded jetty server.
[INFO] <<< jetty:11.0.21:run (default-cli) < test-compile @ demo <<<
[INFO]
[INFO]
[INFO] --- jetty:11.0.21:run (default-cli) @ demo ---
[INFO] Configuring Jetty for project: demo
[INFO] Classes = /home/baku/Downloads/demo/target/classes
[INFO] Context path = /
[INFO] Tmp directory = /home/baku/Downloads/demo/target/tmp
[INFO] web.xml file = null
[INFO] Webapp directory = /home/baku/Downloads/demo/src/main/webapp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] jetty-11.0.21; built: 2024-05-14T03:19:28.958Z; git: 996cd61addad9cb033e0e3eba6fa3f0fa3dc270d; jvm 17.0.11+9-Ubuntu-122.04.1
[INFO] Session workerName=node0
[INFO] Started o.e.j.m.p.MavenWebAppContext@6629643d{/,[file:///home/baku/Downloads/demo/src/main/webapp/],AVAILABLE}{/home/baku/Downloads/demo/src/main/webapp/demo-0.0.1-SNAPSHOT.war}
[INFO] Started ServerConnector@674184d{HTTP/1.1, (http/1.1)}{
0.0.0.0:8081}
[INFO] Started Server@64f4f12{STARTING}[11.0.21,sto=0] @2711ms
[INFO] Automatic redeployment disabled, see 'mvn jetty:help' for more redeployment options