Glassfish4 Jersey 2.22. CDI1x ClassCastException
<p>Please consider the following issue.
While trying to deploy my simple REST application on GlassFish 4.1.1 (Java EE 7 Full Platform) I get the error specified below . My application comprises glassfish-web.xml for configuring class loading delegation so as application uses it's own jersey bundle which is version 2.22</p>

<p>The error I get is the following:</p>

<p>[2016-03-28T13:30:58.035-0400] [glassfish 4.1] [SEVERE] [] [javax.enterprise.web] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1459186258035] [levelValue: 1000] [[
  WebModule[/device-backend]Servlet /device-backend threw load() exception
java.lang.ClassCastException: Cannot cast org.glassfish.jersey.ext.cdi1x.transaction.internal.TransactionalExceptionInterceptorProvider to org.glassfish.jersey.server.spi.ComponentProvider
        at java.lang.Class.cast(Class.java:3186)</p>

<p>Jersey dependency from pom are as follows:</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
    &lt;artifactId&gt;jersey-container-servlet&lt;/artifactId&gt;
    &lt;version&gt;2.22&lt;/version&gt;
&lt;/dependency&gt;  
&lt;dependency&gt;
    &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
    &lt;!-- if your container implements Servlet API older than 3.0, use "jersey-container-servlet-core" --&gt; 
    &lt;artifactId&gt;jersey-container-servlet-core&lt;/artifactId&gt;
    &lt;version&gt;2.22&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.glassfish.jersey.bundles&lt;/groupId&gt;
    &lt;artifactId&gt;jaxrs-ri&lt;/artifactId&gt;
    &lt;version&gt;2.22&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
    &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
    &lt;version&gt;1.19&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>Without glassfish-web.xml everything deploys fine.</p>