Skip to content


Browse files Browse the repository at this point in the history
Replaced restx-server-simple by restx-server-jetty in samplest since …
…restx-server-simple doesn't propagate exceptions occuring during route processing,

which makes debugging very hard (and seems things are not working at all).
With restx-server-jetty, when an exception is raised, it is displayed into the HTTP response body
  • Loading branch information
fcamblor committed Jan 19, 2017
1 parent 85c11f2 commit e77f848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion restx-samplest/pom.xml
Expand Up @@ -49,7 +49,7 @@
Expand Down
8 changes: 6 additions & 2 deletions restx-samplest/src/main/java/samplest/
@@ -1,17 +1,21 @@
package samplest;

import restx.server.JettyWebServer;
import restx.server.WebServer;
import restx.server.simple.simple.SimpleWebServer;
//import restx.server.simple.simple.SimpleWebServer;

* Date: 1/12/13
* Time: 14:18
public class AppServer {
public static final String WEB_INF_LOCATION = "src/main/webapp/WEB-INF/web.xml";
public static final String WEB_APP_LOCATION = "src/main/webapp";

public static void main(String[] args) throws Exception {
int port = Integer.valueOf(Optional.fromNullable(System.getenv("PORT")).or("8080"));
WebServer server = SimpleWebServer.builder().setRouterPath("/api").setPort(port).build();
WebServer server = new JettyWebServer(WEB_INF_LOCATION, WEB_APP_LOCATION, port, "");

* load mode from system property if defined, or default to dev
Expand Down

0 comments on commit e77f848

Please sign in to comment.