From da889d489da5d7fa8c71d9f21f24b1dc2e29d8e1 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 28 Jan 2015 08:53:21 +0000
Subject: [PATCH] #0 refactoring - Removing Google Guice by CDI standard
---
securis/src/main/webapp/WEB-INF/web.xml | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/securis/src/main/webapp/WEB-INF/web.xml b/securis/src/main/webapp/WEB-INF/web.xml
index e7acaaa..3456bee 100644
--- a/securis/src/main/webapp/WEB-INF/web.xml
+++ b/securis/src/main/webapp/WEB-INF/web.xml
@@ -29,10 +29,6 @@
<context-param>
- <param-name>resteasy.guice.modules</param-name>
- <param-value>net.curisit.securis.ioc.SecurisModule,net.curisit.securis.ioc.RequestsModule</param-value>
- </context-param>
- <context-param>
<param-name>resteasy.role.based.security</param-name>
<param-value>true</param-value>
</context-param>
@@ -40,27 +36,27 @@
<param-name>resteasy.providers</param-name>
<param-value>net.curisit.securis.DefaultExceptionHandler</param-value>
</context-param>
+ <context-param>
+ <param-name>resteasy.injector.factory</param-name>
+ <param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
+ </context-param>
-
+
<filter>
<filter-name>Resteasy</filter-name>
<filter-class>
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
</filter-class>
-
+ <init-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>net.curisit.securis.RestServicesApplication</param-value>
+ </init-param>
</filter>
<filter-mapping>
<filter-name>Resteasy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-
-
- <listener>
- <listener-class>
- net.curisit.securis.BootstrapListener
- </listener-class>
- </listener>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
@@ -82,9 +78,13 @@
</security-role>
<resource-env-ref>
- <resource-env-ref-name>jdbc/SeCurisDS</resource-env-ref-name>
+ <resource-env-ref-name>SeCurisDS</resource-env-ref-name>
<resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
- <res-auth>Container</res-auth>
+</resource-env-ref>
+
+<resource-env-ref>
+ <resource-env-ref-name>BeanManager</resource-env-ref-name>
+ <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
</resource-env-ref>
</web-app>
\ No newline at end of file
--
Gitblit v1.3.2