Hello everyone,

I am following the Getting Started Guide on the website,
and up until 4.1.1. Running Web Application everything works.

When I try to run the web application, I don't get any error messages,
but it just does not start Jetty after successfully building the project.

The last few lines:

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
tutorial ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< jetty-maven-plugin:9.4.8.v20171121:run (default-cli) <
test-compile @ tutorial <<<
[INFO]
[INFO]
[INFO] --- jetty-maven-plugin:9.4.8.v20171121:run (default-cli) @ tutorial
---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  2.407 s
[INFO] Finished at: 2022-07-03T20:26:01+02:00
[INFO]
------------------------------------------------------------------------
Disconnected from the target VM, address: '127.0.0.1:59459', transport:
'socket'

I ran it with [DEBUG] printed, still now error messages, nothing.
The issue is quite similar to this:

https://github.com/eclipse/jetty.project/issues/1989

If I add <packaging>war</packaging> to the pom.xml
then Jetty does start but it cannot serve the web application.
I guess this project was not meant to be served as a war,
so I am not surprised. In any case, Jetty is also properly installed
as it at least starts (but cannot serve the project as war).

I don't see my mistake, and I don't get any error messages.

How can I fix this?

Any help is greatly appreciated.

Best wishes,

Ali

Reply via email to