From 1bf494ee95e86f2599a5d7261749d5c83fc0d21f Mon Sep 17 00:00:00 2001 From: Mateusz Chrzonstowski Date: Thu, 11 Jul 2024 11:52:59 +0200 Subject: [PATCH] fix: Scan for WebServlet annotation --- embedded/ee10-servlet-server/pom.xml | 6 ++++++ .../ee10-servlet-server/src/main/java/examples/EmbedMe.java | 1 + 2 files changed, 7 insertions(+) diff --git a/embedded/ee10-servlet-server/pom.xml b/embedded/ee10-servlet-server/pom.xml index 5908cbe..bbcc4bf 100644 --- a/embedded/ee10-servlet-server/pom.xml +++ b/embedded/ee10-servlet-server/pom.xml @@ -30,6 +30,12 @@ ${jetty.version} + + org.eclipse.jetty.ee10 + jetty-ee10-annotations + ${jetty.version} + + org.eclipse.jetty jetty-client diff --git a/embedded/ee10-servlet-server/src/main/java/examples/EmbedMe.java b/embedded/ee10-servlet-server/src/main/java/examples/EmbedMe.java index c5f4466..4f8c95a 100755 --- a/embedded/ee10-servlet-server/src/main/java/examples/EmbedMe.java +++ b/embedded/ee10-servlet-server/src/main/java/examples/EmbedMe.java @@ -51,6 +51,7 @@ public static Server newServer(int port) context.setBaseResource(baseResource); context.setContextPath("/"); context.setWelcomeFiles(new String[]{"index.html", "welcome.html"}); + context.setAttribute("org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern", ".*/"); context.setParentLoaderPriority(true); server.setHandler(context); return server;