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
2
votes
1 answer

Apache Wink Client in OSGi

I'm trying to use the Apache Wink Client in an OSGi application running on WebSphere Liberty Profile 8.5: org.apache.wink.client.ClientConfig clientConfig = new ClientConfig(); org.apache.wink.client.RestClient client = new…
Slaphead
  • 21
  • 2
2
votes
0 answers

Wink swallowing exceptions

I am trying to implement some validation on Enum types in wink for jaxb/jackson. I have an enum which takes some values. I want to allow a null, i.e. not set it in xml/json, but I also want to check for invalid values and give an error. I found that…
AntonPiatek
  • 823
  • 6
  • 11
2
votes
1 answer

How to sort dojox.grid.DataGrid with wink-based REST API?

I'm using the Dojo datagrid client side, it works well and according to documentation it generates the following GET request when clicking on the column header: GET http://localhost:8080/books/rest/books?sort(+isbn) Problem is that I can't…
toby88
  • 105
  • 2
  • 5
2
votes
1 answer

What's the proper way to return a file as the response?

Basically I need to provide REST service that would receive a String param, use that param to fetch a file from another system and then return the fetched file back as the response. The effect should be the same as when a user clicks on a pdf or any…
Marko Bonaci
  • 5,622
  • 2
  • 34
  • 55
1
vote
1 answer

Error 415 (Unsupported Media Type) while uploading with wink

I have a project which uses wink. It has several methods which use post/get and everything works fine except method which consumes application/octet-stream with POST. Calling this method causes error 415. It looks to me that it is jar or…
YuriR
  • 1,251
  • 3
  • 14
  • 26
1
vote
4 answers

@EJB injection not working from JAX-RS service on Websphere AS 8

I have a RESTful service which injects an EJB(3.0) using the @EJB annotation. This injection does not work as I get a NullPointerException when I try access the greeting() method on the bean. This exact code works on Glassfish 3.1 and now on…
1
vote
1 answer

How do I inject a Spring bean into Apache Wink?

How do I inject Spring-managed beans into Apache Wink? I have a wink application started in web.xml that starts fine if I stub out a dummy data service @Autowired under an interface within it. I have implemented a JPA service to provide the data…
brabster
  • 42,504
  • 27
  • 146
  • 186
1
vote
1 answer

Can not load webpage in Rest webservice using apache wink

I have successfully implemented rest webservice using apache wink. I am using ant to build war and to deploy it to tomcat server. Now I want include html or jsp file in the project to display some results. But I dont know how to include it via ant…
user796666
  • 91
  • 3
  • 11
1
vote
1 answer

Amdatu Web using Jersey

Amdatu web uses apache wink to create restful web app in OSGi. Recently the Apache Wink project retired - I don't know exactly why. My question is: Can I use apache web for my production OSGi application? is the RETIRED apache wink with in amdatu…
Mohammad Hassany
  • 898
  • 1
  • 14
  • 30
1
vote
2 answers

restful call Wrong MediaType format for MediaType:"*; q=.2"

Trying to execute restful web service using POST method. Here is the relevant part of my interface: @Path("/customers") public interface CustomerResource { @POST @Consumes(MediaType.APPLICATION_XML) public Response createCustomer(InputStream…
BigWonder
  • 225
  • 1
  • 4
  • 18
1
vote
1 answer

Not able to fetch header data in rest assured for rest web service of type GET

I have GET REST API, which sends some information in response header. I am writing test case using rest assured framework, issue I am facing is, in response of GET API, I am not getting header string set by the server in rest API response. I have…
Reena Upadhyay
  • 1,977
  • 20
  • 35
1
vote
2 answers

OSGi, Amdatu REST example doesn't work

I am trying to run an Amdatu REST example, I have created a project with bndtools, then I have used the amdatu bootstrap to add dependencies both the project itself and to the run descriptor. I have annotated my class with @Path and…
Mohammad Hassany
  • 898
  • 1
  • 14
  • 30
1
vote
0 answers

Is it possible to configure a Java web app to run with Apache Wink Server and JAX-RS 2.0?

I switched my application from using a Jersey Server to using an Apache Wink Server. Now, when I make CRUD operations to my API, I get the following error: javax.servlet.ServletException: java.lang.AbstractMethodError:…
David
  • 486
  • 2
  • 9
1
vote
0 answers

What is causing this Java exception: RuntimeDelegateImpl incompatible with javax.ws.rs.ext.RuntimeDelegate?

I was wondering if anyone has any idea what could be causing this exception. When I google search it has almost no results. If anyone can help let met know. Caused by: java.lang.ClassCastException:…
Justin Cross
  • 99
  • 11
1
vote
1 answer

I am getting "Authentication did not succeed for user ID" repeatedly 20 times

I am using ApacheWink and WAS Liberty 8.5 When a user enters a wrong password at server console below log message is printed 20 times consecutively. [AUDIT ] CWWKS1100A: Authentication did not succeed for user ID sdwtest1@in.ibm.com. An invalid…
1 2
3
8 9