diff --git a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml
index 78b493a50cc..5d3234c148e 100644
--- a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml
+++ b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml
@@ -56,28 +56,6 @@
AuthMgr
certUserDBAuthMgr
-
-
- ocspRemoveCA
- com.netscape.cms.servlet.ocsp.RemoveCAServlet
- GetClientCert
- true
- AuthzMgr
- BasicAclAuthz
- interface
- agent
- authority
- ocsp
- ID
- ocspRemoveCA
- AuthMgr
- certUserDBAuthMgr
- resourceID
- certServer.ocsp.ca
- templatePath
- /agent/ocsp/removeCA.template
-
-
ocspReadAddCAPage
@@ -265,11 +243,6 @@
/agent/ocsp/addCRL.html
-
- ocspRemoveCA
- /agent/ocsp/removeCA
-
-
ocspReadAddCAPage
/agent/ocsp/addCA.html
diff --git a/base/ocsp/src/main/java/com/netscape/cms/servlet/ocsp/RemoveCAServlet.java b/base/ocsp/src/main/java/com/netscape/cms/servlet/ocsp/RemoveCAServlet.java
index e9dce9b9884..c3a2a5fc892 100644
--- a/base/ocsp/src/main/java/com/netscape/cms/servlet/ocsp/RemoveCAServlet.java
+++ b/base/ocsp/src/main/java/com/netscape/cms/servlet/ocsp/RemoveCAServlet.java
@@ -23,6 +23,8 @@
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
+import javax.servlet.annotation.WebInitParam;
+import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -48,9 +50,21 @@
/**
* Configure the CA to no longer respond to OCSP requests for a CA
- *
- * @version $Revision: 1274 $ $Date: 2010-09-07 22:14:41 -0700 (Tue, 07 Sep 2010) $
*/
+@WebServlet(
+ name = "ocspRemoveCA",
+ urlPatterns = "/agent/ocsp/removeCA",
+ initParams = {
+ @WebInitParam(name="GetClientCert", value="true"),
+ @WebInitParam(name="AuthzMgr", value="BasicAclAuthz"),
+ @WebInitParam(name="interface", value="agent"),
+ @WebInitParam(name="authority", value="ocsp"),
+ @WebInitParam(name="ID", value="ocspRemoveCA"),
+ @WebInitParam(name="AuthMgr", value="certUserDBAuthMgr"),
+ @WebInitParam(name="resourceID", value="certServer.ocsp.ca"),
+ @WebInitParam(name="templatePath", value="/agent/ocsp/removeCA.template")
+ }
+)
public class RemoveCAServlet extends CMSServlet {
public static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(RemoveCAServlet.class);