gleimar 2014-01-14 14:17:26 +00:00
parent f536fab005
commit 203d7d3bf5
1 changed files with 34 additions and 12 deletions

View File

@ -2,19 +2,41 @@
<!-- web.xml link de configuração http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html -->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<description>ventaboletos</description>
<display-name>ventaboletos</display-name>
<!--icon> <small-icon>/img/new/save16.png</small-icon> <large-icon>/img/new/back32.png</large-icon>
</icon -->
<!-- Auto scan REST service -->
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
<!-- this need same with resteasy servlet url-pattern -->
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
<param-value>/rest</param-value>
</context-param>
<listener>
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>
<servlet>
<servlet-name>resteasy-servlet</servlet-name>
<servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>resteasy-servlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<!-- Spring ApplicationContext -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
@ -22,16 +44,16 @@
classpath:applicationContext-security.xml
</param-value>
</context-param>
<!-- <context-param> -->
<!-- <param-name>log4jConfigLocation</param-name> -->
<!-- <param-value>classpath:com/rjconsultores/ventaboletos/web/cliente/conf/log4j.xml</param-value> -->
<!-- </context-param> -->
<!-- <context-param> -->
<!-- <param-name>log4jConfigLocation</param-name> -->
<!-- <param-value>classpath:com/rjconsultores/ventaboletos/web/cliente/conf/log4j.xml</param-value> -->
<!-- </context-param> -->
<!-- - Loads the root application context of this web app at startup. -
The application context is then available via - WebApplicationContextUtils.getWebApplicationContext(servletContext). -->
<!-- <listener> -->
<!-- <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> -->
<!-- </listener> -->
<!-- <listener> -->
<!-- <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> -->
<!-- </listener> -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>