From 783c341445ee9ca8ee806aed7427689d3a5ba594 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 15 Sep 2023 11:58:10 -0500 Subject: [PATCH] Update TPSServlet to use @WebServlet --- base/tps/shared/webapps/tps/WEB-INF/web.xml | 10 ---------- .../main/java/org/dogtagpki/server/tps/TPSServlet.java | 5 +++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/base/tps/shared/webapps/tps/WEB-INF/web.xml b/base/tps/shared/webapps/tps/WEB-INF/web.xml index 98bce3c3a95..3cc296edd46 100644 --- a/base/tps/shared/webapps/tps/WEB-INF/web.xml +++ b/base/tps/shared/webapps/tps/WEB-INF/web.xml @@ -7,16 +7,6 @@ Token Processing Service - - tps - org.dogtagpki.server.tps.TPSServlet - - - - tps - /tps - - Account Services diff --git a/base/tps/src/main/java/org/dogtagpki/server/tps/TPSServlet.java b/base/tps/src/main/java/org/dogtagpki/server/tps/TPSServlet.java index b11c6a3caad..2b0c7dcdc81 100644 --- a/base/tps/src/main/java/org/dogtagpki/server/tps/TPSServlet.java +++ b/base/tps/src/main/java/org/dogtagpki/server/tps/TPSServlet.java @@ -19,6 +19,7 @@ import java.io.IOException; +import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -28,6 +29,10 @@ /** * @author Endi S. Dewata */ +@WebServlet( + name = "tps", + urlPatterns = "/tps" +) public class TPSServlet extends HttpServlet { public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TPSServlet.class);