Permalink
Browse files

Fix for War file deployment to Wildly 8.2.0 (Jboss)

Jersey (used by GlassFish) and RestEasy (used by Wildfly) have different configurations
  • Loading branch information...
lantrix committed Mar 27, 2015
1 parent 8d79206 commit dc7e8957d5fb828d59b96f8d7274cecea8c4a6ea
Showing with 8 additions and 11 deletions.
  1. +8 −11 src/main/webapp/WEB-INF/web.xml
@@ -1,22 +1,19 @@
<web-app version="2.5" 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/javaee ">
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
<listener>
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>
<servlet>
<servlet-name>Edda Server</servlet-name>
<servlet-class>com.netflix.edda.basic.BasicServer</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>jersey-servlet</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.netflix.edda.resources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jersey-servlet</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
</web-app>
</web-app>

0 comments on commit dc7e895

Please sign in to comment.