Merge pull request #3338 from eclipse/jetty-10.0.x-3333-standalone_jpms
Fixes #3333 - Jetty 10 standalone cannot start on the module-path.
This commit is contained in:
commit
39d8795c6d
|
@ -585,6 +585,7 @@ public class StartArgs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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",
|
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);
|
jmodAdds, jmodPatch, jmodOpens, jmodExports, jmodReads);
|
||||||
}
|
}
|
||||||
|
@ -1110,7 +1111,8 @@ public class StartArgs
|
||||||
if ("--jpms".equals(arg))
|
if ("--jpms".equals(arg))
|
||||||
{
|
{
|
||||||
jpms = true;
|
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;
|
exec = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html
|
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html
|
||||||
|
|
||||||
[description]
|
[description]
|
||||||
Enable websockets for deployed web applications
|
Enable websockets for deployed web applications
|
||||||
|
|
||||||
[depend]
|
[depend]
|
||||||
# websocket client needs jetty-client
|
# websocket client needs jetty-client
|
||||||
client
|
client
|
||||||
# javax.websocket needs annotations
|
# javax.websocket needs annotations
|
||||||
annotations
|
annotations
|
||||||
|
|
||||||
[lib]
|
|
||||||
lib/websocket/*.jar
|
|
||||||
|
|
||||||
|
[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
|
||||||
|
|
Loading…
Reference in New Issue