Hi,
Looks like a class loading problem. I think the problem may be related
to what the thread context class loader is set to by the Jire plugin.
Can you try setting the thread context class loader to the class
loader of your class that uses the client before the Client instance
is created?
ClassLoader old = Thread.currentThread().getContextClassLoader();
try {
Thread
.currentThread
().setContextClassLoader(this.getClass().getClassloader());
} finally {
Thread.currentThread().setContextClassLoader(old);
}
Paul.
On Sep 13, 2010, at 8:20 PM, soumya ramchandran wrote:
> Hi -
> I am using Jersey -Client jar to make a REST call form a Jira
> plugin that i wrote , but i get the following error
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException:
> com.sun.ws.rs.ext.RuntimeDelegateImpl
>
> I have tried using Jersey client - 1.0.2 and even
> 1.1.5.1 ...included the jersey Server jar , as suggested in some
> places but the error still remains ...whats the exact cause of this
> problem and solution to this problem?... the jsr311-api versions i
> tried is 1.0 and 1.1 ....
>
> Thanks