Jersey Client Application on JBoss EAP 6.4.4 or later

Latest response

As a JBoss customer, we would be more than happy if an example application demonstrating a restful client (ear/web application) using Jersey Jars.

What we attempted:
- Attempt 1:
Initially identified all the necessary jersey jars and made them available in the global modules subsystem, anticipating that would solve the problems. But ended up with the following exception:

21:37:40,721 FINE [javax.ws.rs.ext.FactoryFinder] (http-bhanu donthamsetty/XX.X.X.XX:8080-1) Unable to load provider class org.jboss.resteasy.spi.ResteasyProviderFactory using custom classloader org.jboss.modules.ModuleClassLoader trying again with current classloader.: java.lang.ClassNotFoundException: org.jboss.resteasy.spi.ResteasyProviderFactory from [Module "deployment.ear.filename.ear.web.filename.war:main" from Service Module Loader].

  • Attempt 2: Placed the follwoing in web.xml of the web application.
<context-param>
        <param-name>resteasy.scan</param-name>
        <param-value>false</param-value>
</context-param>
<context-param>
        <param-name>resteasy.scan.resources</param-name>
        <param-value>false</param-value>
</context-param>
<context-param>
        <param-name>resteasy.scan.providers</param-name>
        <param-value>false</param-value>
</context-param>

Source : Jersey application on JBoss AS 7

  • Attempt 3:
    Desperate attempts led to removing of following entries from standalone-full-ha.xml, despite knowing that, it's not a proper solution.
 <extension module="org.jboss.as.jaxrs"/>
 <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

Source : Jersey application on JBoss AS 7

Looking forward for a Sample EAR/Web Application demonstrating the configuration and usage of Jersey Client Web Application in JBoss EAP 6.4.4 or later versions.

If this is not supported, is it is supported in the latest version of JBoss EAP 6.4.5? If not, when can we expect the support for Jersey Client Applications running on JBoss EAP?

Thanks.

Responses