Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I believe the correct approach is to use app server agnostic JAX-RS application deployment. No need to mess with any JBoss configuration. All you need is, extend <a href="http://jersey.java.net/nonav/apidocs/latest/jersey/javax/ws/rs/core/Application.html" rel="noreferrer">javax.ws.rs.core.Application</a> in your JAX-RS web application. You can find an example <a href="http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e188" rel="noreferrer">here</a>. Then, you need to put this in your web.xml.</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt; &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt; &lt;init-param&gt; &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt; &lt;param-value&gt;jersey.MyApplication&lt;/param-value&gt; &lt;/init-param&gt; &lt;context-param&gt; &lt;param-name&gt;resteasy.scan&lt;/param-name&gt; &lt;param-value&gt;false&lt;/param-value&gt; &lt;/context-param&gt; &lt;context-param&gt; &lt;param-name&gt;resteasy.scan.providers&lt;/param-name&gt; &lt;param-value&gt;false&lt;/param-value&gt; &lt;/context-param&gt; &lt;context-param&gt; &lt;param-name&gt;resteasy.scan.resources&lt;/param-name&gt; &lt;param-value&gt;false&lt;/param-value&gt; &lt;/context-param&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; </code></pre> <p>Package scanning mechanism does not work correctly on JBoss 7.x. I have tested this approach successfully in JBoss 7.0.2.Final and JBoss 7.1.1.Final.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload