Questions tagged [jax-rs]
JAX-RS: Java API for RESTful Web Services. It is an API that provides support in creating web services according to the REST architectural style.
jax-rs
7,725
questions
-3
votes
0
answers
35
views
MessageBodyWriter not found [closed]
i got this erroe while do a post
GRAVE [http-nio-10088-exec-5] org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo MessageBodyWriter not found for ...
0
votes
0
answers
6
views
How Can I Add a Bundle to an OSGi BND Application?
I am doing this tutorial to learn OSGi. It creates a single JAX-RS Whiteboard service that serves a simple web page on port 8080. When I try to start it, it shows, among others, the error:
! Failed to ...
0
votes
1
answer
14
views
How can I set the port of an OSGi JAX-RS Whiteboard Service?
I am doing this tutorial to learn OSGi. It creates a single JAX-RS Whiteboard service that serves a simple web page on port 8080. On my machine, it can't start because port 8080 is already in use. How ...
0
votes
2
answers
42
views
WildFly always returns the 404 Not Found
Whatever I do, WildFly returns the 404 code to me
I'm using Java 22.0.1, Intellij Idea and WildFly 32.0.1.Final.
I also tried to run similar and working projects with GitHub on this configuration, but ...
-1
votes
0
answers
45
views
JAX-RS resource failing to extract data from post request in Java 11 Payara 6
I'm migrating a java web app from payara 4 to payara 6, and now when the JAX-RS resource tries to access the data from the post request the data is always null. This didn't happen when it was running ...
-1
votes
0
answers
18
views
Issue when injecting @QueryParam values when the URL query string has percentage encoded & in Jersey
I have a resource like:
@GET
@Path("/foobar")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response get(@QueryParam("x") String x, @...
1
vote
1
answer
37
views
Access HTTP Trailer in Quarkus
I'm implementing a REST-API in Quarkus and want to stream the content.
I want the know when the tranpsort of the stream is finished. As the http-standard describes, http-trailer fields will be sent, ...
-1
votes
1
answer
29
views
Is there anyway to configure request level timout for JAX-RS WebClient?
I'm trying to configure request level timeout using JAX-RS WebClient, I don't want create different WebClient instance for every different path. Is there anyway to do that without changing WebClient ...
-1
votes
0
answers
18
views
When calling a javax.ws.rs endpoint from an angularjs webapp getting CORS Error
i am using angularjs (an old one) and javax.ws.rs 2.1.6
When the angular code trys to make the call to localhost:8088
I get the error
Access to XMLHttpRequest at 'http://localhost:8088/api/parse/' ...
-1
votes
0
answers
33
views
Issue while reading the swagger json using openapi
I have one swagger json which is based on GSMA 0.14 beta version
while I am using CreditParty on my api :
"creditParty": [
{
"key": "accountid",
...
0
votes
1
answer
80
views
Problems creating simple rest ws with Tomcat 10, eclipse, jakarta. Error: No servlet class has been specified for servlet Application
I am trying to create a simple REST ws using Tomcat 10, jakarta and java 17 in Eclipse. When I do it according to the documentation, I get an error "No servlet class has been specified for ...
0
votes
1
answer
42
views
JAXRS / Jackson polymorphic payload deserialization
I have a JAX-RS POST method handler, where I expect the payload JSON to be deserialized to a Java POJO class which is an implementation of an interface.
The exact implementation of the interface to ...
3
votes
1
answer
67
views
How to correctly apply @Valid?
EDIT: THIS QUESTION IS ENTIRELY INVALID.
I have left it as a cautionary tale to others (see solution)
===================
Supposedly this is the proper way of performing validation on a RestEasy/JAX-...
0
votes
0
answers
27
views
Jax-RS app with Payara server dosen't serialize Color via custom Serializer
I'm developing JAX-RS based application and Payara server. I want to serialize build in java Color class to String format: color = "RcolorValu, GColorValue, BColor value". For example in ...
0
votes
0
answers
40
views
ClassCastException: attempting to cast jar:file:~/../javax/ws/rs/javax.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/client/ClientBuilder.class
I am trying to execute this code as part of process a REST call from a Spring REST service:
Client client = ClientBuilder.newClient().register(jacksonMapper);
In a spring boot based application.
...