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

Sat, 16 May 2020 09:28:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 May 2020 09:28:57 +0200
changeset 49
d9c24f0ab8f7
parent 45
cc7f082c5ef3
child 50
2a90d105edec
permissions
-rw-r--r--

adds resource-ref element to web.xml and removes context.xml

universe@1 1 <?xml version="1.0" encoding="UTF-8"?>
universe@1 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">
universe@1 3 <session-config>
universe@1 4 <session-timeout>
universe@1 5 30
universe@1 6 </session-timeout>
universe@1 7 </session-config>
universe@13 8 <context-param>
universe@13 9 <param-name>available-languages</param-name>
universe@13 10 <param-value>en,de</param-value>
universe@13 11 </context-param>
universe@49 12 <resource-ref>
universe@49 13 <description>Application Database</description>
universe@49 14 <res-ref-name>jdbc/lightpit/app</res-ref-name>
universe@49 15 <res-type>javax.sql.DataSource</res-type>
universe@49 16 <res-auth>Container</res-auth>
universe@49 17 </resource-ref>
universe@18 18 <error-page>
universe@18 19 <error-code>404</error-code>
universe@45 20 <location>/error/404.html</location>
universe@18 21 </error-page>
universe@18 22 <error-page>
universe@18 23 <error-code>403</error-code>
universe@45 24 <location>/error/403.html</location>
universe@18 25 </error-page>
universe@18 26 <error-page>
universe@18 27 <error-code>500</error-code>
universe@45 28 <location>/error/500.html</location>
universe@18 29 </error-page>
universe@1 30 </web-app>

mercurial