Questions tagged as 'jax-rs'

1
answer

Enable CORS on Jax rs (resteasy)

I am developing an example of a rest api using jax rs and get to the point of having to add support for CORS and be able to consume it from an app in React, the other day publish the REST API in an online server and when React consumption locall...
asked by 05.11.2018 / 20:21
1
answer

Failed to access the WSDL. It failed with: java.security.cert.CertificateException: No subject alternative names present

I have started working with Web Services and trying to consume one for telephony provided by Avaya from a web application that I am creating in Netbeans. The code in the application is simply for a login: HTML code <%@page contentType=...
asked by 18.12.2018 / 19:44
0
answers

Use @RolesAllowed annotation in tomcat using basic authentication in jax rs

I have a rest service like the following @Path("/noticias") public class ServicioNoticias { @GET @Produces(MediaType.APPLICATION_JSON) @RolesAllowed({ "user" }) public List<Noticia> getNoticias() { List<Notic...
asked by 04.12.2018 / 18:19
1
answer

JAX-RS Overwrite method with same path

Currently I have a generic rest service, which receives all the calls and processes them according to the type of operation. Some of the calls would be: / user / 1 / v3 / people / user / 1 / v3 / machinery Then depending on whether t...
asked by 27.11.2018 / 11:02
1
answer

REST JAX-RS error handler does not capture errors

I currently have a REST service with JAX-RS in tomcat. Now I want the typical errors of 400,405,500 error, etc to be returned in JSON format and not HTML as it does in normal. Then I've been basing myself on link to create an error handler....
asked by 12.12.2018 / 11:06
0
answers

How to implement oauth 2.0 in JAX RS?

Hi guys, I know the question is wide, but I have had doubts about how to implement oauth 2.0 in jax rs without the need to implement the standard manually. If someone can provide examples using JAX RS it would be great, another thing is tha...
asked by 05.10.2018 / 04:21