Skip to content

Commit

Permalink
Merge pull request #3338 from eclipse/jetty-10.0.x-3333-standalone_jpms
Browse files Browse the repository at this point in the history
Fixes #3333 - Jetty 10 standalone cannot start on the module-path.
  • Loading branch information
sbordet committed Feb 8, 2019
2 parents e2506d4 + 6f7e1e3 commit 39d8795
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ else if (line.startsWith(directive = "add-reads:"))
}
}
}
jmodAdds.add("ALL-MODULE-PATH");
StartLog.debug("Expanded JPMS directives:%nadd-modules: %s%npatch-modules: %s%nadd-opens: %s%nadd-exports: %s%nadd-reads: %s",
jmodAdds, jmodPatch, jmodOpens, jmodExports, jmodReads);
}
Expand Down Expand Up @@ -1110,7 +1111,8 @@ public void parse(final String rawarg, String source)
if ("--jpms".equals(arg))
{
jpms = true;
// Need to fork because we cannot use JDK 9 Module APIs.
// Forking is simpler; otherwise we need to add the
// JPMS directives such as "--add-modules" via API.
exec = true;
return;
}
Expand Down
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

0 comments on commit 39d8795

Please sign in to comment.