From 288a18a383dc77d1e579fa3f455150e679b63fba Mon Sep 17 00:00:00 2001 From: lashinie Date: Tue, 26 Nov 2024 14:58:16 +0530 Subject: [PATCH] modify web.xml to remove spring dependency from config mgmt endpoint --- .../pom.xml | 6 --- .../src/main/webapp/WEB-INF/beans.xml | 50 ------------------- .../src/main/webapp/WEB-INF/web.xml | 31 ++++++++---- 3 files changed, 21 insertions(+), 66 deletions(-) delete mode 100644 components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/beans.xml diff --git a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/pom.xml b/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/pom.xml index 2828ab904a3b..fc2dd9bd6ccf 100644 --- a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/pom.xml +++ b/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/pom.xml @@ -99,12 +99,6 @@ jackson-databind provided - - org.springframework - spring-web - ${springframework.spring-web.version} - provided - junit junit diff --git a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/beans.xml b/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/beans.xml deleted file mode 100644 index b0e63071030d..000000000000 --- a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/beans.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/web.xml b/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/web.xml index b6427187e6cb..61f65ea9c4fa 100644 --- a/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/web.xml +++ b/components/configuration-mgt/org.wso2.carbon.identity.configuration.mgt.endpoint/src/main/webapp/WEB-INF/web.xml @@ -22,10 +22,7 @@ JAX-RS Simple Service JAX-RS Simple Service - - contextConfigLocation - WEB-INF/beans.xml - + HttpHeaderSecurityFilter org.apache.catalina.filters.HttpHeaderSecurityFilter @@ -67,17 +64,31 @@ REQUEST FORWARD - - - org.springframework.web.context.ContextLoaderListener - - CXFServlet - org.apache.cxf.transport.servlet.CXFServlet + org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet 1 + + jaxrs.serviceClasses + + org.wso2.carbon.identity.configuration.mgt.endpoint.ResourceApi, + org.wso2.carbon.identity.configuration.mgt.endpoint.ResourceTypeApi, + org.wso2.carbon.identity.configuration.mgt.endpoint.SearchApi + + + + jaxrs.address + / + + + jaxrs.providers + + com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider, + org.apache.cxf.jaxrs.ext.search.SearchContextProvider + + CXFServlet