Most voted "jax-rs" questions
26 questions
Sort by count of
-
4
votes2
answers5541
viewsExpected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 Com Webservice JAX-RS e 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…
-
3
votes1
answer3287
viewsAngularjs and Java backend
Hello, I am ceasing to use the JSF framework to start using Angularjs. I wonder if someone has an example of integration between Angularjs with Java Back-end, so I can see how the Front-end…
-
2
votes1
answer2126
viewsAngularjs User Authentication with Java/Jersey Rest API
I am developing the user authentication module in my application and I am having some problems accessing the API, getting error 403. The old way I was doing, when I sent the request to the service,…
-
2
votes1
answer133
viewsJackson does 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…
-
2
votes1
answer72
viewsHow to use junit to test Jax rs in wildfly
I created the following test to validate the registration but instead of returning 201 with the created resource is generating this generic error. My DAO is running on its own in a normal way (I…
-
2
votes0
answers37
viewsDynamically connect to an Oracle database with each JAX-RS request
I’m developing a project on Jboss Seam to provide some services via JAX-RS on Wildfly 9. The DBMS used is Oracle 10g, and the services that will be made available are form features that the company…
-
2
votes0
answers30
viewsJAX-RS Controllers or Resources compared to Spring MVC
I came from Spring and I’m having a hard time understanding how JAX-RS works in a Java EE application. I have an application running on a Wildfly application server. I created a class to use JAX-RS…
-
1
votes1
answer172
viewsDefine which method is not serialized
I have a Rest service that returns as a response the object of a class that contains the following structure: public class LocalizacaoLinhaWrapper implements Serializable { ... private…
-
1
votes0
answers243
viewsAndroid sending POST Json using JAX-RS receiving object with null array
I am trying to post an object but the array only comes null.. someone can tell me what is wrong? @XmlRootElement public class Produto implements Serializable{ private String nome; get e set...…
-
1
votes2
answers446
viewsWEB Service in Java
I’m creating a Web Service, but I’m having a lot of doubts about how to receive JSON as a parameter. @Path("WebService/{json}") @POST @Consumes(MediaType.APPLICATION_JSON)…
-
1
votes0
answers108
viewsError retrieving from Webservice
I’m trying to create a Webservice REST, but I’m having trouble returning the result. The moment Webservice returns the information, it sends the following error:…
-
1
votes0
answers165
viewsMaking a relationship update using REST, Jax-rs, Jersey and Javascript
Well, I took a basis to make a simple CRUD of just one table using REST and the others that I put in the question, everything worked perfectly, until I put more tables(classes) and relationship…
-
1
votes1
answer212
viewsJava @Path and @Produces error
Error in the use of @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…
-
1
votes1
answer170
viewsPOST disabled in JBOSS EAP 7
I implemented a service with JAX-RS that features GET and POST operations: @Path("/funcionario") @Singleton public class FuncionarioService { private List<Funcionario> funcionarios = new…
-
1
votes1
answer614
viewsProblem with CORS
I’m making a request through the Angularjs at port 3000: function _registrarNovaAposta(aposta) {return $http.post("http://localhost:8080/sga-api/apostas/nova-aposta", aposta);} to the endpoint:…
-
0
votes1
answer101
viewsResteasy @Form annotation does not work in Glassfish 4.1
I am trying to make a legacy web java application that is packaged within an EAR and that was written for Jboss 7 to work on Glassfish 4.1. The application is not built with Maven nor with Gradle…
-
0
votes0
answers42
viewsREST - What is CORS?
I’m starting in the development of Restful applications, with Spring and JAX-RS and I realized that some systems create such a CORS, not having CORS configured in the application would have exactly…
-
0
votes1
answer114
viewsSending email in a Jax-rs json api
I have a demand to develop an api that among other features need to send warning emails, in the architecture it was defined that we will use javaEE Jax-rs someone has already worked with some api…
-
0
votes1
answer259
viewsREST - Send null to Integer parameter
I have the following situation in my REST (Jersey): URL: http://localhost:8080/api/listar_log_utilizacao/null Code: @GET @Path("/listar_log_utilizacao/{idUsuario: .*}")…
-
0
votes1
answer101
viewsWebservice delete error
I have a problem in my webservice. It is giving this error: Requestfailed Requestfailed --> Status: (405) The code I’m using: @DELETE @Produces("text/plain") @Path("ExcluirLista/{usuario}")…
-
0
votes1
answer41
views'_$visited' property in Javascript object at the return of Obervable’s map() function
I have a Webservice implemented with JAX-RS and I’m consuming it with a service(utilizando Angular 2) Follow the service: @Injectable() export class ModeloService { constructor(private http: Http) {…
-
0
votes0
answers22
views -
0
votes1
answer67
viewsJava Jersey HTTP, cannot receive browser parameters
Hello I would like to receive a parameter from the browser and print using webservices with Jersey, however the parameter does not reach my method, it is not to be printed. XML <?xml…
-
0
votes1
answer101
viewsRest only returns XML
good evening to all, I’m making a Restfull API for mere learning and ran into a simple problem, but I couldn’t find a solution on the internet. I created this class to control games: @Path("/games")…
-
0
votes0
answers78
viewsHow to validate if the cookie was created by the server?
Summary: I have a webservice with Quarkus(Jax-rs) and Vue.js, I do a validation basic Authentication and then I create a cookie httpOnly encrypted... When I receive a new request I cannot check if…
-
-1
votes1
answer47
viewsJAX-RS Rename Set
I created a project using JAX-RS to make a web service REST and it works, I can access the result in a resource and everything but it comes like this: { "carroes": { "carro": [ { "@id": "1",…