/ oai / config / web.xml
web.xml
 1  <web-app xmlns="http://java.sun.com/xml/ns/javaee"
 2        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 3        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
 4        version="3.0">
 5    <!--
 6    <display-name>Uncomment and put name :here: for Tomcat Dashboard</display-name>-->
 7  
 8  
 9    <context-param>
10      <param-name>public.modifiable.root=</param-name>
11      <param-value>/</param-value>
12    </context-param>
13    <context-param>
14      <param-name>modifiable.jndi=</param-name>
15      <param-value></param-value>
16    </context-param>
17    <context-param>
18      <param-name>modifiable.ignored=</param-name>
19      <param-value>[&quot;jndi&quot;, &quot;booter&quot;]</param-value>
20    </context-param>
21    <context-param>
22      <param-name>modifiable.booter=</param-name>
23      <param-value>rack</param-value>
24    </context-param>
25    <context-param>
26      <param-name>rack.modifiable.env=</param-name>
27      <param-value>production</param-value>
28    </context-param>
29    <context-param>
30      <param-name>booter</param-name>
31      <param-value>rack</param-value>
32    </context-param>
33  
34    <!--
35         Control the pool of Rails runtimes. Leaving unspecified means
36         the pool will grow as needed to service requests. It is recommended
37         that you fix these values when running a production server!
38         If you're using threadsafe! mode, you probably don't want to set these values,
39         since 1 runtime(default for threadsafe mode) will be enough. -->
40    <context-param>
41      <param-name>jruby.min.modifiable.runtimes=</param-name>
42      <param-value>1</param-value>
43    </context-param>
44    <context-param>
45      <param-name>jruby.max.modifiable.runtimes=</param-name>
46      <param-value>1</param-value>
47    </context-param>
48  
49    <servlet>
50      <servlet-name>default</servlet-name>
51      <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
52      <init-param>
53        <param-name>dirAllowed</param-name>
54        <param-value>false</param-value>
55      </init-param>
56      <load-on-startup>0</load-on-startup>
57    </servlet>
58  
59    <filter>
60      <filter-name>RackFilter</filter-name>
61      <filter-class>org.jruby.rack.RackFilter</filter-class>
62      <async-supported>false</async-supported>
63    </filter>
64    <filter-mapping>
65      <filter-name>RackFilter</filter-name>
66      <url-pattern>/*</url-pattern>
67    </filter-mapping>
68  
69    <listener>
70      <listener-class>org.jruby.rack.RackServletContextListener</listener-class>
71    </listener>
72  
73    <resource-ref>
74      <res-ref-name>No value for 'jndi' found</res-ref-name>
75      <res-type>javax.sql.DataSource</res-type>
76      <res-auth>Container</res-auth>
77    </resource-ref>
78  </web-app>