0

I have this service:

@Stateless
@Path(value = "tasks")
public class TasksFacadeREST extends AbstractFacade<Tasks> {

I can access the app through:

localhost:8080/todo

However, this gives me a 404:

localhost:8080/todo/tasks

I do have this method in the tasks service:

@GET
@Override
@Produces({"application/xml", "application/json"})
public List<Tasks> findAll() {
    return super.findAll();
}

I already tried to access it through curl like this:

curl -i -H "Accept: application/json" -v http://localhost:8080/todo/tasks

What could I be doing wrong?

Thanks

Lay González
  • 2,901
  • 21
  • 41

1 Answers1

0

The correct URL was:

http://localhost:8080/todo/webresources/tasks

There's also an ApplicationConfig.java file that states:

@javax.ws.rs.ApplicationPath("webresources")
public class ApplicationConfig extends Application {
Lay González
  • 2,901
  • 21
  • 41