I want to add a web service to an already existing web application. This application runs on a specific version of Apache TomEE (apache-tomee-web-profile-1.7.2) and an upgrade is not possible.
I'm trying to deploy this sample application on this TomEE, just to try it. I see no errors in the logs
I manage to see the home page of the application :
This is the code for the ressource :
@Path("/pojo")
public class SimpleRESTPojo {
@GET
public String pojo() {
return "pojo ok @ " + new Date().toString();
}
}
And the code of the rest application :
@ApplicationPath("/rest-prefix")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
return new HashSet<Class<?>>(Arrays.asList(SimpleRESTPojo.class, SimpleRESTEJB.class));
}
}
So far I've tried : base/rest-prefix/pojo, base/rest-prefix/pojo/pojo, base/pojo all giving me 404 errors
base is the url where I manage to see the home page