{"action":"created","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/119","labels_url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/119/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/119/events","html_url":"https://github.com/bmuschko/gradle-tomcat-plugin/issues/119","id":67272561,"number":119,"title":"getServletContext().getRealPath(\"/\") returns null?","user":{"login":"yushulx","id":2202306,"avatar_url":"https://avatars.githubusercontent.com/u/2202306?v=3","gravatar_id":"","url":"https://api.github.com/users/yushulx","html_url":"https://github.com/yushulx","followers_url":"https://api.github.com/users/yushulx/followers","following_url":"https://api.github.com/users/yushulx/following{/other_user}","gists_url":"https://api.github.com/users/yushulx/gists{/gist_id}","starred_url":"https://api.github.com/users/yushulx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yushulx/subscriptions","organizations_url":"https://api.github.com/users/yushulx/orgs","repos_url":"https://api.github.com/users/yushulx/repos","events_url":"https://api.github.com/users/yushulx/events{/privacy}","received_events_url":"https://api.github.com/users/yushulx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T03:31:52Z","updated_at":"2015-04-12T13:55:33Z","closed_at":null,"body":"If I deploy the generated war file to Tomcat directly, the code can work. But with the Tomcat plugin, it returns null. Why?"},"comment":{"url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/comments/92066015","html_url":"https://github.com/bmuschko/gradle-tomcat-plugin/issues/119#issuecomment-92066015","issue_url":"https://api.github.com/repos/bmuschko/gradle-tomcat-plugin/issues/119","id":92066015,"user":{"login":"bmuschko","id":440872,"avatar_url":"https://avatars.githubusercontent.com/u/440872?v=3","gravatar_id":"","url":"https://api.github.com/users/bmuschko","html_url":"https://github.com/bmuschko","followers_url":"https://api.github.com/users/bmuschko/followers","following_url":"https://api.github.com/users/bmuschko/following{/other_user}","gists_url":"https://api.github.com/users/bmuschko/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuschko/subscriptions","organizations_url":"https://api.github.com/users/bmuschko/orgs","repos_url":"https://api.github.com/users/bmuschko/repos","events_url":"https://api.github.com/users/bmuschko/events{/privacy}","received_events_url":"https://api.github.com/users/bmuschko/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T13:55:33Z","updated_at":"2015-04-12T13:55:33Z","body":"Not sure. Might be a different in the implementation of embedded Tomcat vs. the full container setup."}}