users@jersey.java.net

[Jersey] UnsupportedSignatureMethodException: HMAC-SHA1 on WebLogic 12c

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Wed, 29 Feb 2012 16:38:54 -0800

I'm trying to deploy a web application on WebLogic 12c with the
following dependencies:

<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>1.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs.jersey-oauth</groupId>
<artifactId>oauth-client</artifactId>
<version>1.9</version>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs.jersey-oauth</groupId>
<artifactId>oauth-signature</artifactId>
<version>1.9</version>
</dependency>

12c bundles Jersey 1.9 as well as listed at:

http://docs.oracle.com/cd/E24329_01/web.1211/e24494/toc.htm#CJAFJFED

Why is the following error thrown ?

com.sun.jersey.api.client.ClientHandlerException:
com.sun.jersey.oauth.signature.UnsupportedSignatureMethodException:
HMAC-SHA1

This app works fine on GlassFish 3.1.1 when Jersey version is changed to
1.8.

Any idea why ?

-Arun


-- 
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta