2015-02-20 23:28:42 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- This web.xml file is not required when using Servlet 3.0 container,
|
|
|
|
see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html -->
|
2015-03-07 20:18:05 +00:00
|
|
|
<!-- PRODUCTION -->
|
2015-02-20 23:28:42 +00:00
|
|
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
|
|
|
|
<context-param>
|
2015-03-23 09:08:54 +00:00
|
|
|
<param-name>datasource.config.file</param-name>
|
2015-03-03 22:27:45 +00:00
|
|
|
<param-value>/datasource.properties</param-value>
|
2015-02-20 23:28:42 +00:00
|
|
|
</context-param>
|
|
|
|
|
2015-03-23 09:08:54 +00:00
|
|
|
<context-param>
|
|
|
|
<param-name>context.config.file</param-name>
|
|
|
|
<param-value>/context.properties</param-value>
|
|
|
|
</context-param>
|
|
|
|
|
2015-02-20 23:28:42 +00:00
|
|
|
<listener>
|
|
|
|
<listener-class>com.jdbernard.nlsongs.servlet.NLSongsContextListener</listener-class>
|
|
|
|
</listener>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
|
|
|
|
<servlet-name>New Life Songs REST API</servlet-name>
|
|
|
|
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
|
|
|
|
|
|
|
|
<init-param>
|
|
|
|
<param-name>jersey.config.server.provider.packages</param-name>
|
|
|
|
<param-value>com.jdbernard.nlsongs.rest</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
2015-03-03 03:20:25 +00:00
|
|
|
<init-param>
|
|
|
|
<param-name>jersey.config.server.provider.classnames</param-name>
|
|
|
|
<param-value>org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
2015-02-20 23:28:42 +00:00
|
|
|
<load-on-startup>1</load-on-startup>
|
|
|
|
</servlet>
|
|
|
|
|
2015-03-03 03:27:05 +00:00
|
|
|
<servlet>
|
|
|
|
<servlet-name>GroovyTemplate</servlet-name>
|
|
|
|
<servlet-class>groovy.servlet.TemplateServlet</servlet-class>
|
|
|
|
</servlet>
|
|
|
|
|
2015-03-18 03:30:55 +00:00
|
|
|
<servlet>
|
|
|
|
<servlet-name>SongViewServlet</servlet-name>
|
|
|
|
<servlet-class>groovy.servlet.TemplateServlet</servlet-class>
|
|
|
|
|
|
|
|
<init-param>
|
|
|
|
<param-name>resource.name.regex</param-name>
|
|
|
|
<param-value>/song/?.*</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
|
|
|
<init-param>
|
|
|
|
<param-name>resource.name.replacement</param-name>
|
|
|
|
<param-value>/song/index.gsp</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
|
|
|
</servlet>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>ServiceViewServlet</servlet-name>
|
|
|
|
<servlet-class>groovy.servlet.TemplateServlet</servlet-class>
|
|
|
|
|
|
|
|
<init-param>
|
|
|
|
<param-name>resource.name.regex</param-name>
|
|
|
|
<param-value>/service/?.*</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
|
|
|
<init-param>
|
|
|
|
<param-name>resource.name.replacement</param-name>
|
|
|
|
<param-value>/service/index.gsp</param-value>
|
|
|
|
</init-param>
|
|
|
|
|
|
|
|
</servlet>
|
|
|
|
|
2015-02-20 23:28:42 +00:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>New Life Songs REST API</servlet-name>
|
|
|
|
<url-pattern>/api/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
2015-03-18 03:30:55 +00:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>SongViewServlet</servlet-name>
|
|
|
|
<url-pattern>/song/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>ServiceViewServlet</servlet-name>
|
|
|
|
<url-pattern>/service/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
2015-03-03 03:27:05 +00:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>GroovyTemplate</servlet-name>
|
|
|
|
<url-pattern>*.gsp</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
|
|
|
<welcome-file-list>
|
|
|
|
<welcome-file>index.gsp</welcome-file>
|
|
|
|
<welcome-file>index.jsp</welcome-file>
|
|
|
|
<welcome-file>index.html</welcome-file>
|
|
|
|
</welcome-file-list>
|
2015-02-20 23:28:42 +00:00
|
|
|
</web-app>
|