blob: 3a6b8670de857fa15ad4e16037b0d7a6049d5fa2 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>REST Sample</display-name>
<description>Virgo Server - REST Sample</description>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!-- Configure a parent application context -->
<context-param>
<param-name>contextConfigLocation</param-name>
<!-- <param-value>WEB-INF/applicationContext.xml</param-value> -->
<param-value>/WEB-INF/rest-servlet.xml</param-value>
</context-param>
<context-param>
<param-name>contextClass</param-name>
<param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Dispatcher servlet configuration -->
<servlet>
<servlet-name>rest</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>rest</servlet-name>
<url-pattern>/</url-pattern>
<!-- <url-pattern>/rest/</url-pattern>
<url-pattern>/rest/*</url-pattern> -->
</servlet-mapping>
</web-app>