Questions tagged as 'jax-rs'

1
answer

AngularJS and Java backend [closed]

Hello, I'm failing to use the JSF framework to start using AngularJS. I would like to know if anyone has an example of integrating AngularJS with Java Backend, so that I can see the operation of the parameter pass from Front-end to Back-end a...
asked by 28.09.2016 / 19:08
1
answer

Jackson will not serialize JSONObject object

I have a service like this: @Path("/test") public class TestEndPoint { @GET @Produces("application/json") public Response get(){ POJO pojo = new POJO(); pojo.setName("Rafael"); return Response.ok(pojo).bui...
asked by 06.01.2016 / 18:26
2
answers

Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 With WebService JAX-RS and Android Retrofit

I'm studying WebService and consumption on Android with Retrofit2. I've done tests with public APIs like ViaCEP and FIPE and I can use the retrofit quietly, very easy but when I set up my own webservice using JAX-RS with Jersey I have problem...
asked by 16.01.2017 / 18:59
1
answer

User Authentication in AngularJs with API Rest in Java / Jersey

I'm developing the user authentication module in my application and I'm having some trouble accessing the API, getting a 403 error. In the old way I was doing, when I sent the request to the service, it correctly returned the data I needed wi...
asked by 08.11.2015 / 14:58
0
answers

Dynamically connect to an Oracle database for each JAX-RS request

I am developing a project in JBoss Seam to provide some services via JAX-RS in Wildfly 9. The DBMS used is Oracle 10g, and the services that will be available are form features that the company develops in Oracle Forms. The procedures, fun...
asked by 23.07.2018 / 14:15
0
answers

How to use junit to test jax rs on wildfly

I created the following test to validate the register but instead of returning 201 with the created resource is generating this generic error. My DAO is working alone in a normal way (I created a list address using it) Would you have any clue wh...
asked by 11.06.2018 / 19:10
1
answer

Error @Path and @Produces in Java

Error using @Path in Java. package resource; import java.util.ArrayList; import java.util.List; import java.nio.file.Path; import java.nio.file.Paths; import domain.Album; import domain.Banda; import domain.Musica; import jdk.nashorn....
asked by 10.01.2018 / 20:21
1
answer

POST disabled in JBOSS EAP 7

I have implemented a service with JAX-RS that has GET and POST operations: @Path("/funcionario") @Singleton public class FuncionarioService { private List<Funcionario> funcionarios = new ArrayList<>(); @GET @Path("/{no...
asked by 05.10.2018 / 14:21
1
answer

Define which method is not serialized

I have a rest service that returns the object of a class that contains the following structure as a response: public class LocalizacaoLinhaWrapper implements Serializable { ... private List<LocalizacaoLinha> linhasFavor...
asked by 17.09.2015 / 00:12
2
answers

WEB Service in Java

I'm creating a Web Service, but I'm wondering how to get JSON in it as a parameter. @Path("WebService/{json}") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public String POST (@PathParam("json") String jso...
asked by 31.12.2016 / 19:06