-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Our Jetty smoke test fails because of missing Jetty metadata.
We've worked around that by using buildArgs.addAll('-H:+UnlockExperimentalVMOptions', '-H:Preserve=package=org.eclipse.jetty.*').
We're using org.eclipse.jetty:jetty-server:12.1.3.
org.springframework.context.ApplicationContextException: Unable to start web server
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:167)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:614)
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:765)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:454)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1374)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363)
at com.example.servlet.jetty.ServletJettyApplication.main(ServletJettyApplication.java:26)
at java.base@25/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.IllegalStateException: java.lang.NoSuchMethodException: org.eclipse.jetty.ee11.servlet.security.ConstraintSecurityHandler.<init>()
at org.eclipse.jetty.ee11.servlet.ServletContextHandler.newSecurityHandler(ServletContextHandler.java:1298)
at org.eclipse.jetty.ee11.servlet.ServletContextHandler.getSecurityHandler(ServletContextHandler.java:1361)
at org.eclipse.jetty.ee11.servlet.ServletContextHandler.relinkHandlers(ServletContextHandler.java:1009)
at org.eclipse.jetty.ee11.servlet.ServletContextHandler.<init>(ServletContextHandler.java:296)
at org.eclipse.jetty.ee11.webapp.WebAppContext.<init>(WebAppContext.java:193)
at org.eclipse.jetty.ee11.webapp.WebAppContext.<init>(WebAppContext.java:147)
at org.springframework.boot.jetty.servlet.JettyEmbeddedWebAppContext.<init>(JettyEmbeddedWebAppContext.java:33)
at org.springframework.boot.jetty.servlet.JettyServletWebServerFactory.getWebServer(JettyServletWebServerFactory.java:158)
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:190)
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:164)
... 9 more
Caused by: java.lang.NoSuchMethodException: org.eclipse.jetty.ee11.servlet.security.ConstraintSecurityHandler.<init>()
at java.base@25/java.lang.Class.checkConstructor(DynamicHub.java:1356)
at java.base@25/java.lang.Class.getConstructor0(DynamicHub.java:1565)
at java.base@25/java.lang.Class.getDeclaredConstructor(DynamicHub.java:2491)
at org.eclipse.jetty.ee11.servlet.ServletContextHandler.newSecurityHandler(ServletContextHandler.java:1294)
... 18 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request