PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/samples/scalate-example/src/main/webapp/WEB-INF/web.xml

http://github.com/scalate/scalate
XML | 81 lines | 53 code | 7 blank | 21 comment | 0 complexity | 2f95f840a02e1c4371bae69dbb96481e MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--
 3
 4    Copyright (C) 2009-2011 the original author or authors.
 5    See the notice.md file distributed with this work for additional
 6    information regarding copyright ownership.
 7
 8    Licensed under the Apache License, Version 2.0 (the "License");
 9    you may not use this file except in compliance with the License.
10    You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20-->
21<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
23	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24	version="2.5">
25
26  <display-name>MyWebApp</display-name>
27
28  <description>
29    My Web App
30  </description>
31
32  <!-- JAX RS config -->
33  <filter>
34    <filter-name>Jersey Filter</filter-name>
35    <filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
36    <init-param>
37      <param-name>com.sun.jersey.config.feature.Trace</param-name>
38      <param-value>true</param-value>
39    </init-param>
40    <init-param>
41      <param-name>com.sun.jersey.config.feature.Redirect</param-name>
42      <param-value>true</param-value>
43    </init-param>
44    <init-param>
45      <param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name>
46      <param-value>true</param-value>
47    </init-param>
48    <init-param>
49      <param-name>com.sun.jersey.config.property.packages</param-name>
50      <param-value>org.fusesource.scalate.console;mygroup.myartifact</param-value>
51    </init-param>
52    <init-param>
53      <param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name>
54      <param-value>true</param-value>
55    </init-param>
56  </filter>
57
58  <filter-mapping>
59    <filter-name>Jersey Filter</filter-name>
60    <url-pattern>/*</url-pattern>
61  </filter-mapping>
62
63  <!-- Scalate config -->
64  <filter>
65    <filter-name>TemplateEngineFilter</filter-name>
66    <filter-class>org.fusesource.scalate.servlet.TemplateEngineFilter</filter-class>
67  </filter>
68  <filter-mapping>
69    <filter-name>TemplateEngineFilter</filter-name>
70    <url-pattern>/*</url-pattern>
71  </filter-mapping>
72
73  <welcome-file-list>
74    <welcome-file>index.scaml</welcome-file>
75  </welcome-file-list>
76
77  <error-page>
78    <error-code>500</error-code>
79    <location>/WEB-INF/scalate/errors/500.scaml</location>
80  </error-page>
81</web-app>