{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-web/issues/253","labels_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/253/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/253/events","html_url":"https://github.com/vert-x3/vertx-web/issues/253","id":116831233,"number":253,"title":"Web documentation claims StaticHandler will serve files from classpath, but it does not","user":{"login":"chefhoobajoob","id":5960934,"avatar_url":"https://avatars.githubusercontent.com/u/5960934?v=3","gravatar_id":"","url":"https://api.github.com/users/chefhoobajoob","html_url":"https://github.com/chefhoobajoob","followers_url":"https://api.github.com/users/chefhoobajoob/followers","following_url":"https://api.github.com/users/chefhoobajoob/following{/other_user}","gists_url":"https://api.github.com/users/chefhoobajoob/gists{/gist_id}","starred_url":"https://api.github.com/users/chefhoobajoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chefhoobajoob/subscriptions","organizations_url":"https://api.github.com/users/chefhoobajoob/orgs","repos_url":"https://api.github.com/users/chefhoobajoob/repos","events_url":"https://api.github.com/users/chefhoobajoob/events{/privacy}","received_events_url":"https://api.github.com/users/chefhoobajoob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-11-13T19:03:47Z","updated_at":"2015-11-17T16:36:09Z","closed_at":null,"body":"The vertx-web documentation here:http://vertx.io/docs/vertx-web/java/#_serving_static_resources\r\n\r\n...makes this claim: \"Any requests to paths handled by the static handler will result in files being served from a directory on the file system or from the classpath.\"\r\n\r\nHowever, StaticHandlerImpl does not appear to use the classpath to look for the 'webroot' folder.\r\n\r\nCreate a webroot file system in src/main/resources and place an index.html file in the webroot folder.\r\n\r\nCreate a route & server like so:\r\n\r\n    Router router = Router.router(vertx).route(\"/test/*\").handler(StaticHandler.create());\r\n    vertx.createHttpServer().requestHandler(router::accept).listen(8080);\r\n\r\nRun the verticle and hit http://localhost:8080/test/index.html\r\n\r\nExpected result: index.html is served up\r\nActual result: browser displays \"Not found\""},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-web/issues/comments/157424529","html_url":"https://github.com/vert-x3/vertx-web/issues/253#issuecomment-157424529","issue_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/253","id":157424529,"user":{"login":"chefhoobajoob","id":5960934,"avatar_url":"https://avatars.githubusercontent.com/u/5960934?v=3","gravatar_id":"","url":"https://api.github.com/users/chefhoobajoob","html_url":"https://github.com/chefhoobajoob","followers_url":"https://api.github.com/users/chefhoobajoob/followers","following_url":"https://api.github.com/users/chefhoobajoob/following{/other_user}","gists_url":"https://api.github.com/users/chefhoobajoob/gists{/gist_id}","starred_url":"https://api.github.com/users/chefhoobajoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chefhoobajoob/subscriptions","organizations_url":"https://api.github.com/users/chefhoobajoob/orgs","repos_url":"https://api.github.com/users/chefhoobajoob/repos","events_url":"https://api.github.com/users/chefhoobajoob/events{/privacy}","received_events_url":"https://api.github.com/users/chefhoobajoob/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T16:36:09Z","updated_at":"2015-11-17T16:36:09Z","body":"In the actual implementation, I'm not responsible for any of the script or classpath stuff. These things are packaged into the tanuki java service wrapper, which worries about all that stuff.\r\n"}}