Load properties file in JAR?
The problem is that you are using getSystemResourceAsStream. Use simply getResourceAsStream. System resources load from the system classloader, which is almost certainly not the class loader that your jar is loaded into when run as a webapp. It works in Eclipse because when launching an application, the system classloader is configured with your jar as … Read more