Questions tagged [apache-wink]

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

The Wink Server module is a complete implementation of the JAX-RS v1.1 specification. On top of this implementation, the Wink Server module provides a set of additional features that were designed to facilitate the development of RESTful Web services.

The Wink Client module is a Java based framework that provides functionality for communicating with RESTful Web services. The framework is built on top of the JDK HttpURLConnection and adds essential features that facilitate the development of such client applications.

123 questions
0
votes
0 answers

Connecting to Mongo from an Apache Wink / JAX-RS Application

I'm writing my first Apache Wink / JAX-RS web service, and I want to connect to MongoDB. Is the best way to do this to create a new connection each time a request is received and close it at the end of the request, or is there some way to have a…
James Baker
  • 1,143
  • 17
  • 39
0
votes
0 answers

Wink JsonProvider throwing java.lang.reflect.UndeclaredThrowableException

I have a jax-ws service that is calling a JAX-RS service using Wink client. When I deployed the code to the server (WAS 7.0.0.29) and tested the service I got an exception that wasn't occurring in RAD (included below). With more tracing all I could…
mmphantom
  • 21
  • 2
0
votes
1 answer

Alternative to Apache Wink JSONObject/JSONException

I've been asked to "upgrade" a codebase from Websphere 7 to Websphere 8.5.5. There's a reference in the codebase to these objects: import org.apache.wink.json4j.JSONObject import org.apache.wink.json4j.JSONException The codebase is currently using…
risingTide
  • 1,754
  • 7
  • 31
  • 60
0
votes
1 answer

Specify user handlers for JAX-RS when using annotation scanning

How to specify user handlers for JAX-RS when using annotation scanning? I am following this link and have created my custom handlers. I have annotated my Application subclass as: @ApplicationPath("rest") public class RestfulResourceLoader…
Prerak Tiwari
  • 3,436
  • 4
  • 34
  • 64
0
votes
3 answers

Websphere Application Server Servlet Initialization Error

We need to migrate an app that runs on Glassfish to Websphere Application Server (WAS) 8.5.x version. To see that things are working correctly with a simple setup, I created a sample project with a single rest service. I did not extend…
Seyf
  • 889
  • 8
  • 16
0
votes
2 answers

Importing Apache Wink using Eclipse

I have followed the instructions here to install Wink. org.apache.wink.example When you get to the "Import Maven Projects" screen, it says you should see the following : I just see this : Any idea why this might be the case?
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
0
votes
0 answers

Websphere convert HTTP Header

i have a problem with HTTP- Header parameters on websphere. I have a Apache Wink Client and i send a REST- POST to the server. (Webspere 8.0.0.8 there is Wink, too) On this server i have a GZIP Filter, that searchs the Content-Encoding parameter…
pL4Gu33
  • 2,045
  • 16
  • 38
0
votes
1 answer

How to define custom server side config in REST service?

I am writing a REST service using Apache Wink. My service needs some server side configurations like defining some System properties etc. The user of the rest service need not know these and provide any value for these. I would like to understand…
Niks
  • 41
  • 2
  • 8
0
votes
1 answer

Viewable in JAX-RS

in our previous project we have used Viewable (at that time we had Jersey as an implementation of JAX-RS). Now we want to run it in WebSphere 8.5. It is a JEE6 server and Viewable is not supported by default of JAX-RS. As implementation of JAX-RS…
Robert
  • 126
  • 11
0
votes
1 answer

JavaEE REST (Wink) - Can be REST Api class defines as singleton?

I am using J2EE with WASLiberty & Apache Wink (REST Impl). I would need in some cases to have api class to be singleton, however private constructor probably wont work with REST. Has anyone used api to be singleton ? any hints ?
To Kra
  • 3,344
  • 3
  • 38
  • 45
0
votes
0 answers

java.lang.NullPointerException at org.apache.wink.common.internal.utils.FileLoader.loadFileUsingClassLoaders

I am trying to run integration tests on my scim restful server implementation via an embedded jetty server and apache wink REST Client but failing to run the tests. Here is my EmbeddedServerBase class package org.picketlink.test.scim; import…
0
votes
1 answer

Apache Wink 1.4 JAX-RS issue

When i am returning response in my code i am getting it as 406 Not acceptable . M using apache wink 1.x, jdk 7, tomcat 7. I am able to return a string when the type is "application/json", but not able to return json object as weel as response
0
votes
1 answer

Unable to send/parse JSON using Worklight adapter and wink/jackson restful

Background: I am using a Worklight adapter to consume restful service. Apache wink is my restful implementation servlet. I have used jackson related jars in my service. Problem: If I try to consume service with form-urlencoded type, it runs…
Jimmy
  • 2,589
  • 21
  • 31
0
votes
1 answer

How to use NTLM authentication with Apache Wink client

I'm trying to use wink-client v1.4 to communicate with a Sharepoint RESTful web service. I have created a simple Java SE Maven project that can do this task on Windows using a BasicAuthSecurityHandler. However, this same project doesn't work on…
Chris Harris
  • 1,329
  • 4
  • 17
  • 28
0
votes
1 answer

Websphere App 8: DataContentHandler requires String object, was given object of type class com.sun.jersey.api.view.Viewable

I have the following code import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.Context; import…
Jackie
  • 21,969
  • 32
  • 147
  • 289
1 2 3
8 9