I need to access file path on the server in Scalatra application. Without war file the following worked for me where file was stored in /src/main/resources/data location.
this.getClass.getResource("/data").getPath
However the same doesn't work with deployed app. Any ideas how should I get the context.
Thanks,