aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/dev/web.xml
blob: eb572468163f214a9048c88e5fa4299335db0f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">

  <display-name>Sonar</display-name>

  <context-param>
    <param-name>public.root</param-name>
    <param-value>/</param-value>
  </context-param>

  <context-param>
    <param-name>rails.env</param-name>
    <param-value>development</param-value>
  </context-param>


  <context-param>
    <param-name>jruby.min.runtimes</param-name>
    <param-value>1</param-value>
  </context-param>

  <context-param>
    <param-name>jruby.max.runtimes</param-name>
    <param-value>3</param-value>
  </context-param>

  <env-entry>
    <description>JNDI logback context</description>
    <env-entry-name>logback/context-name</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Sonar</env-entry-value>
  </env-entry>

  <filter>
    <filter-name>DatabaseSessionFilter</filter-name>
    <filter-class>org.sonar.server.ui.DatabaseSessionFilter</filter-class>
  </filter>
  <filter>
    <filter-name>RackFilter</filter-name>
    <filter-class>org.jruby.rack.RackFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>DatabaseSessionFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>RackFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <servlet>
    <servlet-name>chart</servlet-name>
    <servlet-class>org.sonar.server.charts.ChartsServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>gchart</servlet-name>
    <servlet-class>org.jfree.eastwood.ChartServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>static</servlet-name>
    <servlet-class>org.sonar.server.plugins.StaticResourcesServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>batch</servlet-name>
    <servlet-class>org.sonar.server.plugins.BatchResourcesServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>chart</servlet-name>
    <url-pattern>/chart</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>gchart</servlet-name>
    <url-pattern>/gchart</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>static</servlet-name>
    <url-pattern>/static/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>batch</servlet-name>
    <url-pattern>/batch/*</url-pattern>
  </servlet-mapping>

  <listener>
    <listener-class>org.sonar.server.platform.PlatformLifecycleListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
  </listener>
  <listener>
    <listener-class>ch.qos.logback.classic.selector.servlet.ContextDetachingSCL</listener-class>
  </listener>

</web-app>