Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
50 views

Consider this method: import javax.ws.rs.core.UriBuilder; import java.net.URI; public class AnyParamRedirecter { /** * Generate a URI to target.com with one query parameter "...
tkruse's user avatar
  • 10.8k
0 votes
1 answer
100 views

I have a JAX-RS REST API that gets live images from a camera. The camera returns a multipart response (XML + JPEG), which I parse in the service and then return as JSON in the response. Problem: When ...
Otabek Rajabov's user avatar
0 votes
1 answer
79 views

I am generating a .docx file in a JAX-RS API. When I save it directly to disk like this: try (FileOutputStream fos = new FileOutputStream("localSavedFile.docx")) { outputDocument(fos); } ...
Gopika Ravikumar's user avatar
0 votes
0 answers
47 views

I'm trying to override the built-in OIDCClientRegistrationProvider in Keycloak 26 to handle a custom field webhook_uris in the OIDC client registration payload. This worked in Keycloak 15, but fails ...
Siddharth Eswaramoorthy's user avatar
0 votes
0 answers
51 views

I am trying to set up the bean validation in my jersey server. I would like to assure that everytime I get an email in this bean it is not null. But with this current setup, everytime jersey tries to ...
Rik Smits's user avatar
0 votes
0 answers
110 views

I need to call a resource (resource B) from another resource (resource A), but I don't know which resource is B; I am getting a URL as a string. How do I get which resource/method matches the given ...
Riccardo Cossu's user avatar
0 votes
0 answers
43 views

I am deploying two separate same WAR files on Apache TomEE 10+. The WARs are named: webapi.war webapi1.war Error Logs: `Caused by: org.apache.openejb.DuplicateDeploymentIdException: Application cannot ...
aditya's user avatar
  • 1
1 vote
1 answer
65 views

Im working on a project based on JAXRS annotations. Im configuring a Swagger UI to sumarize all the endpoints of the project and to execute them from there. Im implementing OAS 3 which supports ...
Víctor Gallardo's user avatar
0 votes
0 answers
64 views

I have a parent class that exposes as a REST endpoint a common method for all my rest services. My child classes which are JAX-RS resources implement their own specific methods and expose their ...
zlinks's user avatar
  • 1,077
0 votes
0 answers
50 views

I have a Quarkus application that uses the jakarta.ws.rs.client.Client to call another REST endpoint. On my local PC everything works fine. However, after deploying it to our DMZ, that Quarkus ...
eerriicc's user avatar
  • 1,260
0 votes
1 answer
43 views

(Jakarta/RestEasy) My application is a client to a third-party REST api. I'm trying to add an abstraction layer when calling one of its endpoints. This abstraction layer could be anything, but for ...
jeancallisti's user avatar
  • 1,804
0 votes
1 answer
88 views

How to Show File Transfer Progress Percentage in Java with HttpURLConnection? I am currently working on an API that downloads a file from a server and writes the content to a specified location using ...
Amit J.'s user avatar
  • 38
0 votes
0 answers
32 views

I'm working on a backend for a frontend application for a portal that has grown over the last years and already counts over 2500 unique endpoints/rest methods. We're using Jersey for our RESTful ...
Roonaan's user avatar
  • 1,066
1 vote
1 answer
178 views

I am trying to understand JAX-RS, CDI integration in Wildfly, specifically how the bean lifecycle looks like. The following behaviour is not what I expected. Below is drilled down example. @Dependent @...
office.aizaz's user avatar
0 votes
1 answer
106 views

When upgrading a rest service from JEE7 to jakarta.jakartaee-api (v 10.0.0) there is an unwanted change in format of java.sql.Timestamp timestamps. The timestamps used to be like this {"timestamp&...
Arto Oksanen's user avatar
0 votes
1 answer
86 views

If @Context is going to be deprecated, what I would one accomplish what @Context Application does (in an implementation-neutral way) when using SeBootstrapfor instance, given that the Application ...
Martin F's user avatar
  • 221
0 votes
0 answers
26 views

I am starting to use JAXRS to build a small application. I started with just a simple API that returns a hello world string on an API GET /api/hello. Here is my progress but I can't seem to let it ...
cyrusniu's user avatar
0 votes
0 answers
46 views

Problem: I have to make JAX RS client call for GET HTTP method. But, the response is a Form data. I need help in knowing how to read the response which is of type FormData. Ex: ClientConfig config = ...
Shubha P's user avatar
0 votes
1 answer
80 views

I am trying to learn JAX-RS by using JDK 17, Maven 3.9.5, Tomcat 9.0.21. I used the archetype jersey-quickstart-webapp from GlassFish to generate a project. I simply built the project and deployed the ...
Python_user's user avatar
  • 1,613
1 vote
1 answer
322 views

I've the following methods which are not working on Wildfly 34 but working perfectly on OpenLiberty: @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) public void uploadFiles(@...
dabbabi's user avatar
  • 11
1 vote
1 answer
173 views

Does anyone know how to properly add HTTP headers in a Soap Web Service client generated by jaxws from a wsdl file? I can access the services from SoapUI, but when I try to access them from my Spring ...
Thalys Menezes's user avatar
2 votes
2 answers
311 views

I am developing REST API using quarkus-rest implamentation of Jakarta REST (formerly known as JAX-RS). I also use quarkus-smallrye-openapi extension to generate my API specification (OpenAPI v3). How ...
nik0x1's user avatar
  • 1,656
0 votes
1 answer
106 views

I have a webapp where I am deploying the war file to a tomcat server. I am always getting a 404. In the catalina.out, i see the deployment but get no error. The app runs fine as an exploded war on my ...
randy's user avatar
  • 1,917
0 votes
1 answer
50 views

I'm calling an endpoint to get a CSV file : @RegisterRestClient @Path("/catalogs") public interface Client { @GET @Produces(MediaType.TEXT_PLAIN) @Path("/{catalog}/content/...
grigouille's user avatar
0 votes
1 answer
67 views

I have a backend server running on JAX-RS (RestEasy flavour). Some of the endpoint responses contain dates, which I want to be formatted as ISO strings. @Value // Lombok annotation public class ...
jeancallisti's user avatar
  • 1,804
0 votes
0 answers
37 views

I have a simple api @GET @Path("res/{res-path :.*}") public Response getRes(@PathParam("res-path") String resource) { System.out.println(resource); } I was under impression ...
B. A.'s user avatar
  • 33
2 votes
1 answer
66 views

There are samples for using JAX-RS and coroutines with Vert.x. But how can I have both? Resteasy-vertx doesn't seem to support coroutines. Quarkus REST (FKA RESTEasy Reactive) supports JAX-RS, ...
Jakub Bochenski's user avatar
1 vote
1 answer
59 views

I'm trying to migrate a JAX-RS application from Jersey to Apache CXF. I'm not using Spring, so I'm trying to configure it by extending javax.ws.rs.core.Application. I also implemented public class ...
Adrian Ber's user avatar
  • 21.5k
0 votes
1 answer
42 views

I'm having trouble creating a web service to redirect to a JSP file. I'm getting the following error when running the url of the created web service: ERROR [stderr] (default task-2) java.lang....
TimeToCode's user avatar
0 votes
1 answer
81 views

I would like to migrate a simple JAX-RS project from Jetty to OpenLiberty. The problem are two methods of the ResourceConfig class (Jersey's), that are called at the end of the constructor to ...
Andrea Borgogelli Avveduti's user avatar
1 vote
1 answer
57 views

Right now, using swagger-codegen-cli v3.0.24 (unable to use latest at the moment) to generate jaxrs-cxf server API, I can set the property in my config.json useGenericResponse to true to support using ...
Michael Rudd's user avatar
0 votes
1 answer
122 views

I have an endpoint that when called gives this error: 2024-10-23 12:21:14,135 SEVERE [org.ecl.yas.int.SerializationContextImpl] (executor-thread-3) Generating incomplete JSON 2024-10-23 12:21:14,136 ...
Josip Domazet's user avatar
0 votes
0 answers
26 views

I have created a jakarta rest service project and then when I run it, I got 404 error there's no interface after I visit the path. I created these two classes: package com.mpsoft.generateur; import ...
Firas Chebbi's user avatar
0 votes
1 answer
76 views

In my project, I want to rename the JSESSIONIDVERSION cookie. I have already renamed the JSESSIONID to another name, but I am unsure how to rename JSESSIONIDVERSION. We are using JAX-RS, NGINX, Payara ...
Bharathi's user avatar
0 votes
1 answer
68 views

Consider this JAX-RS / RestEasy endpoint: @GET @Path("/my-endpoint") @Produces(MediaType.TEXT_PLAIN) public Response myEndpoint(@QueryParam("mySuperParam") @NotNull final ...
jeancallisti's user avatar
  • 1,804
0 votes
2 answers
69 views

In a Java REST service using JAX-RS (Jersey 3.1.1, Jackson 2.14.2), I have an immutable data object, say: public class MyDataObj { private int a; public static MyDataObj valueOf(String jsonStr)...
rawcode's user avatar
  • 105
0 votes
0 answers
75 views

I am trying to capture the request body string using entity stream in both request filter and response filter. But when I try to fetch request body string entity stream in the response filter, I get ...
Monish Das's user avatar
0 votes
0 answers
115 views

I've recently upgraded from Java 11 to Java 17. After this upgrade, I started getting the above issue, I don't face this issue with JDK 11. The JSON string that causes the issue contains nested JSON ...
Kaivalya Srivastava's user avatar
1 vote
0 answers
174 views

I am trying to use OpenFeign/Feign to latch onto my JAX-RS based REST API. In most cases I use @BeanParam POJOs to capture all @PathParam, @QueryParam, etc. parameters. Unfortunately, Feign fails to ...
Philipp Holzschneider's user avatar
0 votes
1 answer
206 views

Regarding Jersey, it allows the selection of the underlying Client Transport Connectors using a property [1], as shown in the following example: Client client = ClientBuilder.newBuilder(). ...
Charlee Chitsuk's user avatar
1 vote
0 answers
23 views

I have a resource method that can produce JSON-LD (preferred option) or JSON so I used the following annotation: @Produces({MEDIA_TYPE_JSON_LD + "; qs=1", MediaType.APPLICATION_JSON + ";...
user3687501's user avatar
-1 votes
1 answer
3k views

I'm working on spring parent-2.7.18 to 3.1.10 version migration and I'm using Java 17 version. I'm getting below error after the migration of Spring-parent 2.x.x to 3.x.x version. jakarta.servlet....
Rajendra Desale's user avatar
1 vote
0 answers
115 views

I'm working on a Maven project that uses JAX-RS to create RESTful web services and deploys them on Open Liberty. Despite configuring my application, I keep encountering a 404: SRVE0190E: File not ...
Ryan Salah's user avatar
1 vote
0 answers
127 views

I try to write a REST endpoint on javax.ws.rs My controller, service: @Path("/v1") @Stateless(mappedName = "ejb/MyController") @LocalBean public class MyController { @EJB ...
Ksu's user avatar
  • 149
-2 votes
1 answer
209 views

I've upgraded an 'old' (was working) EE Application with JSON which did work with 'javax'. Now on EE 10.x & Jakarta. implementation("com.google.code.gson:gson:2.11.0") Using: import com....
NOTiFY's user avatar
  • 1,426
1 vote
1 answer
47 views

I am trying to write a Java web application that runs on A Tomee application server. The application uses a number of Jakarta EE technologies such as JAX-RS, Jakarta Faces, and CDI. The basic ...
Scott Nicklous's user avatar
0 votes
1 answer
50 views

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 ...
LemongrabThree's user avatar
0 votes
1 answer
209 views

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 ...
sosnilosm's user avatar
1 vote
1 answer
68 views

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, ...
Josef Mader-Kreiner's user avatar
-1 votes
1 answer
46 views

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 ...
hasankzl's user avatar
  • 1,029

1
2 3 4 5
156