users@jersey.java.net

[Jersey] Jersey client in Jboss application

From: Márcio Dantas <marciopd_at_gmail.com>
Date: Fri, 2 Nov 2012 17:52:59 -0200

Hi,

I'm writing a rest client that will be running on a war application in
Jboss 7 and using the maven *jersey-client *artifact as dependency.

The problem is that *jersey-client* depends on *jersey-core*, which has
jax-rs classes along with jersey's specific core classes.

As Jboss already has the jax-rs classes I'm getting classloader issues.

Why are jax-rs and jersey-core classes in the same jar? Wouldn't be better
to split them in separate jars?

Is there a way to use jersey client in jboss without doing classloader
config?

thx,
Marcio Dantas