Fix out of classpath file access issue.

Jar files can be served only from the application folder
All the other files cannot be served out of the public folder.