/scalate-war/src/main/webapp/WEB-INF/web.xml

http://github.com/scalate/scalate · XML · 83 lines · 53 code · 7 blank · 23 comment · 0 complexity · b6e59a290e26c58b90d67e3d46f58ffd MD5 · raw file

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