I've been trying for a few days now to obtain a response with RESTeasy,
    only with very little success--I was able to receive a request on my
    Resource class when explicitly adding said resource class as a
singleton in
    my Application-extending class, but I've had no luck in trying to make
    RESTeasy scan for these classes automatically, even with resteasy.scan
    to true in web.xml

    My web.xml file is empty except for a resteasy.logger.type context-param
    specifying LOG4J.

    Here's a basic application class (apologies for lack of formatting,
seems like any font change leads to my email getting bounced):

    import javax.ws.rs.ApplicationPath;
    import javax.ws.rs.core.Application;
    public class RootApplication extends Application {

    And here's a basic resource class:

    import java.util.Date;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;

    public class HelloWorld {
       public String helloResource() {
          return "Hello! It's "+new Date();

    I don't use Maven, so I have no pom.xml, though to my knowledge this
    relevant if I just grab the needed jars myself. These are the jars I've


    I feel as though this would be easier to diagnose if restEASY logged
    anything, however it's not doing so despite having this property in my


    Visiting http://localhost/rest/hello  after all this just returns a
    Tomcat 404 page, "The requested resource is not available". I really
    no idea what's going on under the hood with logging not working. My
    is functioning otherwise, also.

    Any help would be greatly appreciated.
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
Resteasy-users mailing list

Reply via email to