I'm using RESTEasy
to develop a simple WS client
so this my POM.XML
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jackson-provider</artifactId>
<version>2.2.1.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>2.2.1.GA</version>
</dependency>
and this is my Test Code
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.logging.Level;
import javax.ws.rs.core.MediaType;
import org.compiere.framework.PO;
import org.compiere.model.X_I_Order;
import org.compiere.process.ProcessInfo;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.Ctx;
import org.compiere.util.DB;
import org.compiere.util.Trx;
import org.jboss.resteasy.client.ClientRequest;
import ru.compiere.report.RusReportStarter;
import com.audaxis.compiere.laserloylty.util.Carte;
import com.audaxis.compiere.laserloylty.util.IOrderRequest;
import com.audaxis.compiere.laserloylty.util.OrderHeader;
import com.audaxis.compiere.laserloylty.util.OrderLine;
import com.audaxis.compiere.model.MPInstanceProxy;
ClientRequest request = new ClientRequest("http:/MyURL"); //Error here
when i try to create a new ClientRequest
a get this Exception
java.lang.ClassCastException: com.sun.jersey.impl.provider.RuntimeDelegateImpl cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory
at org.jboss.resteasy.spi.ResteasyProviderFactory.getInstance(ResteasyProviderFactory.java:351)
at org.jboss.resteasy.client.ClientRequest.<init>(ClientRequest.java:137)
at org.jboss.resteasy.client.ClientRequest.<init>(ClientRequest.java:132)
at org.jboss.resteasy.client.ClientRequest.<init>(ClientRequest.java:127)
at GetOrdersFromCardibox.getOrders(GetOrdersFromCardibox.java:109)
at GetOrdersFromCardibox.main(GetOrdersFromCardibox.java:226)
Can any one tell me where's the problem ?!