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

Sat, 16 May 2020 15:45:06 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 May 2020 15:45:06 +0200
changeset 53
6a8498291606
parent 50
2a90d105edec
child 72
0646c14e36fb
permissions
-rw-r--r--

fixes bug where displaying an error page for missing data source would also require that data source (error pages don't try to get database connections now)

also improves error pages in general

     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         <location>/error/generic</location>
    21     </error-page>
    22 </web-app>

mercurial