Open glassfox opened 2 years ago
When loading resource from classpath, current process are:
InputStream inputStream = this.getClass().getResourceAsStream( classPath );
This typo suitable only when actual Resource and Jolt jar managed with the same Classloader. In case when Resource managed by another ClassLoader, more suitable to use:
ClassLoader cl = Thread.currentThread().getContextClassLoader(); InputStream inputStream = cl.getResourceAsStream( classPath );
When loading resource from classpath, current process are:
This typo suitable only when actual Resource and Jolt jar managed with the same Classloader. In case when Resource managed by another ClassLoader, more suitable to use: