-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3333 - Jetty 10 standalone cannot start on the module-path.
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>
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 13 additions & 10 deletions
23
jetty-websocket/javax-websocket-server/src/main/config/modules/websocket.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html | ||
|
||
[description] | ||
Enable websockets for deployed web applications | ||
[description] | ||
Enable websockets for deployed web applications | ||
|
||
[depend] | ||
# websocket client needs jetty-client | ||
client | ||
# javax.websocket needs annotations | ||
annotations | ||
|
||
[lib] | ||
lib/websocket/*.jar | ||
[depend] | ||
# websocket client needs jetty-client | ||
client | ||
# javax.websocket needs annotations | ||
annotations | ||
|
||
[lib] | ||
lib/websocket/*.jar | ||
[jpms] | ||
# The implementation needs to access method handles in | ||
# classes that are in the web application classloader. | ||
add-reads: org.eclipse.jetty.websocket.javax.common=ALL-UNNAMED |