Sat, 16 May 2020 11:37:57 +0200
adds lookup-name to web.xml resource reference and removes custom JNDI context parameter
also removes jstl-impl from compile time dependencies - tomcat users must provide the library manually
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
3 <session-config>
4 <session-timeout>
5 30
6 </session-timeout>
7 </session-config>
8 <context-param>
9 <param-name>available-languages</param-name>
10 <param-value>en,de</param-value>
11 </context-param>
12 <resource-ref>
13 <description>Application Database</description>
14 <res-ref-name>jdbc/lightpit/app</res-ref-name>
15 <res-type>javax.sql.DataSource</res-type>
16 <res-auth>Container</res-auth>
17 <lookup-name>java:/jdbc/lightpit/app</lookup-name>
18 </resource-ref>
19 <error-page>
20 <error-code>404</error-code>
21 <location>/error/404.html</location>
22 </error-page>
23 <error-page>
24 <error-code>403</error-code>
25 <location>/error/403.html</location>
26 </error-page>
27 <error-page>
28 <error-code>500</error-code>
29 <location>/error/500.html</location>
30 </error-page>
31 </web-app>