Add security
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 3 Jul 2009 15:38:00 +0000 (15:38 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 3 Jul 2009 15:38:00 +0000 (15:38 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2688 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

dep/org.argeo.slc.dep.server/pom.xml
modules/server/org.argeo.slc.webapp.war/WEB-INF/ria-servlet.xml [new file with mode: 0644]
modules/server/org.argeo.slc.webapp.war/WEB-INF/web.xml
pom.xml

index 4f5a95cc55bad18ec30a968d0e193a3343eff9d0..9f062156d7893a8751fc5c6a5248d741014761bf 100644 (file)
                        <artifactId>com.springsource.com.mysql.jdbc</artifactId>
                </dependency>
 
-               <!--
-                       Spring Security -->
-               <dependency>
-                       <groupId>org.springframework.security</groupId>
-                       <artifactId>org.springframework.security</artifactId>
-               </dependency>
-
                <!-- Required in JDK 1.5 -->
                <dependency>
                        <groupId>com.sun.xml</groupId>
diff --git a/modules/server/org.argeo.slc.webapp.war/WEB-INF/ria-servlet.xml b/modules/server/org.argeo.slc.webapp.war/WEB-INF/ria-servlet.xml
new file mode 100644 (file)
index 0000000..484aae9
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+       <bean name="/getCredentials.ria" class="org.argeo.slc.web.mvc.management.GetCredentials" />
+
+       <!-- MVC -->
+       <bean id="handlerMapping"
+               class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
+       </bean>
+
+</beans>
\ No newline at end of file
index 34a837fbf2e64a4e187a7d438fe2f9dcb220bdd4..f224ae562a046db9df89d8b6d7f5118b4356f92a 100644 (file)
                <url-pattern>/dist/*</url-pattern>
        </servlet-mapping>
 
+       <!-- RIA servlet -->
+       <servlet>
+               <servlet-name>ria</servlet-name>
+               <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
+               <init-param>
+                       <param-name>contextClass</param-name>
+                       <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
+               </init-param>
+               <load-on-startup>1</load-on-startup>
+       </servlet>
+       <servlet-mapping>
+               <servlet-name>ria</servlet-name>
+               <url-pattern>*.ria</url-pattern>
+       </servlet-mapping>
+
        <!-- General -->
        <context-param>
                <param-name>contextConfigLocation</param-name>
diff --git a/pom.xml b/pom.xml
index 9d6fe1da095c7791bd550eb9dcb86dacec06adf3..67cb7dfd2346054c4d1ffd789a52df76986f864c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -516,6 +516,11 @@ limitations under the License.
                                        </exclusion>
                                </exclusions>
                        </dependency>
+                       <dependency>
+                               <groupId>org.antlr</groupId>
+                               <artifactId>com.springsource.org.antlr</artifactId>
+                               <version>3.0.1</version>
+                       </dependency>
 
                        <!-- AOP -->
                        <dependency>