7,729 questions
0
votes
0
answers
26
views
Using ExceptionMapper in Jakarta REST
I am using a custom ExceptionMapper which should check some constraints.
What I want to have is to change the message in case of an assertion error to the one which is thrown by the checkRule method. ...
0
votes
0
answers
34
views
Setting up the validator gives errors Jersey
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 ...
0
votes
0
answers
91
views
JAX-RS (Quarkus) How to get resource method from URL?
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 ...
0
votes
0
answers
20
views
DuplicateDeploymentIdException when deploying multiple similar WARs in TomEE
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 ...
1
vote
1
answer
49
views
Is it compatible MatrixParams in SWAGGER UI with JAXRS annotations?
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 ...
0
votes
0
answers
56
views
JAX-RS method defined in parent class not exposed under base: {"REST.request": { } } section of metrics endpoint
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 ...
0
votes
0
answers
39
views
How to debug "Connection refused" within a running container?
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 ...
0
votes
1
answer
26
views
delay call to readEntity on Response
(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 ...
0
votes
1
answer
82
views
providing support of progress of File transfer in percentage
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 ...
0
votes
0
answers
19
views
Jersey Root Resources and Sub-Resources Performance for Large-Scale Applications
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 ...
1
vote
1
answer
102
views
CDI 4.0 Integration with Jakarta REST 3.1 in WildFly server
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
@...
0
votes
1
answer
76
views
Format of java.sql.Timestamp in JSON has changed
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&...
0
votes
1
answer
62
views
CDI in Jakarta REST without @Context (deprecated)
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 ...
0
votes
0
answers
18
views
API path is 404 Not Found for JAXRS and Jersey project
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 ...
0
votes
0
answers
38
views
How to read Form Data in JAX RS response?
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 = ...