Hi, Recently we have upgraded the one of application from tomcat6.x to tomcat8.0.36 version. In tomcat6, i was able to read the property/resource file from the jar file but certain reasons after upgrading to the tomca8.0.36 its failing to load.
My jar: auth.jar com/trianz/auth/*.java com/trianz/auth/auth.properties //failing code, here url always getting null value. URL url = Auth.class.getClassLoader().getResource("com/trianz/auth/auth.properties"); I am sure by looking at the tomcat catalina.startup logs the auth.jar is loading properly Is there any way to confirm the file in classpath "com/trianz/auth/auth.properties"? How do I fix this? Many Thanks in advance.