<chapter id="JBoss5">
    <title>JBoss AS 5.x Integration</title>
    <para>Resteasy has no special integration with JBoss Application Server so it must be configured and
        installed
        like any other container. There are some issues though. You must make sure that there is not a copy
        of servlet-api-xxx.jar in your WEB-INF/lib directory as this may cause problems. Also, if you are running
        with JDK 6, make sure to filter out the JAXB jars as they come with JDK 6.
    </para>
</chapter>
<chapter id="JBoss AS 6">
<title>JBoss AS 6 Integration</title>
<para>
    RESTEasy is preconfigured and completely integrated with JBoss 6-M4 and higher. You can use it with EJB
    and CDI and you can rely completely on JBoss for scanning for your JAX-RS services and deploying them. All
    you have to provide is your JAX-RS service classes packaged within a WAR either as POJOs, CDI beans,
    or EJBs and provide an empty web.xml file as follows:
</para>
<para>
    <programlisting>
        <![CDATA[
<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/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
</web-app>
]]>
    </programlisting>
</para>
</chapter>
