File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Having issues using Jersey Client to consume RESTful webservices from EJB (pacakaged in an ear) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Having issues using Jersey Client to consume RESTful webservices from EJB (pacakaged in an ear)" Watch "Having issues using Jersey Client to consume RESTful webservices from EJB (pacakaged in an ear)" New topic
Author

Having issues using Jersey Client to consume RESTful webservices from EJB (pacakaged in an ear)

Mayank Johri
Greenhorn

Joined: May 02, 2007
Posts: 1

When I am trying get/put calls (consuming RESTful services from ARIN Online) using Jersey Client via a stand alone java client, everything goes well. (Using XStream for a payload xml to be used with put calls).

Once, i try to integrate this functionality in my project & trying the same functionality from an inside EJB below errors are occuring:

1. For a https url, it's throwing a "com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received."

2. For a normal http url, it's not appending the payload xml to the url, hence getting a 404.

Could, someone please help !
 
IntelliJ Java IDE
 
subject: Having issues using Jersey Client to consume RESTful webservices from EJB (pacakaged in an ear)
 
Threads others viewed
Problem with JERSEY and JAX-RS
parse xml response in Jersey (RESTful webservice)
Spring REST v Jersey
Accessing HttpServletRequest from Restful webservice
Using Jersey Bundle to call a SOAP based WS
MyEclipse, The Clear Choice