Sat, 16 May 2020 09:28:57 +0200
adds resource-ref element to web.xml and removes context.xml
src/main/resources/META-INF/context.xml | file | annotate | diff | comparison | revisions | |
src/main/webapp/WEB-INF/web.xml | file | annotate | diff | comparison | revisions |
1.1 --- a/src/main/resources/META-INF/context.xml Fri May 15 19:13:23 2020 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,6 +0,0 @@ 1.4 -<?xml version="1.0" encoding="UTF-8"?> 1.5 -<Context path="/lightpit"> 1.6 - <ResourceLink name="jdbc/lightpit/app" 1.7 - global="jdbc/lightpit/app" 1.8 - type="javax.sql.DataSource" /> 1.9 -</Context>
2.1 --- a/src/main/webapp/WEB-INF/web.xml Fri May 15 19:13:23 2020 +0200 2.2 +++ b/src/main/webapp/WEB-INF/web.xml Sat May 16 09:28:57 2020 +0200 2.3 @@ -9,6 +9,12 @@ 2.4 <param-name>available-languages</param-name> 2.5 <param-value>en,de</param-value> 2.6 </context-param> 2.7 + <resource-ref> 2.8 + <description>Application Database</description> 2.9 + <res-ref-name>jdbc/lightpit/app</res-ref-name> 2.10 + <res-type>javax.sql.DataSource</res-type> 2.11 + <res-auth>Container</res-auth> 2.12 + </resource-ref> 2.13 <error-page> 2.14 <error-code>404</error-code> 2.15 <location>/error/404.html</location>