-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty 10 standalone cannot start on the module-path #3333
Comments
@olamy is there a way to write an integration test that runs Jetty standalone on the module path and verifies that it starts a minimal configuration? |
A possible quick solution would be to add |
How do I have to start Jetty to reproduce that? |
@olamy yes a distro should start with:
Have at least one web application deployed, make a request to verify it's working, then shutdown. Is that possible? |
Added --add-modules=ALL-MODULE-PATH by default because now Jetty has proper JPMS modules and when starting in standalone mode only the org.eclipse.jetty.xml module will be in the module graph - while before automatic modules where added to the module graph implicitly. Added --add-reads=ALL-UNNAMED to the websocket module to allow the websocket implementation to access method handles of application classes (the websocket endpoints) that live in the web application classloader (which forms an unnamed module). Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
possible? not exactly as I wish (but I have to finish the way of doing some distro testing...) |
Fixes #3333 - Jetty 10 standalone cannot start on the module-path.
@olamy we really need to be able to test the distro: minimal startup, http, http2, jpms, websocket, jsp at least to be sure we have not broken anything. If you can test the Jetty Maven Plugin we should be able to test also the distro, no? |
Since now Jetty 10 has proper
module-info.java
, when it is started in standalone mode, the only JPMS modules that are in the root areorg.eclipse.jetty.xml
and those specified by explicit[jpms]
sections in*.mod
files such asorg.objectweb.asm
andjava.instrument
.With Jetty 9.4 and
Automatic-Module-Name
, the JPMS modules were automatically added to the module-path because the jars did not have an explicitmodule-info.java
.The text was updated successfully, but these errors were encountered: