InputStream inputStream = classLoader.getResourceAsStream(PROPERTIES_FILE) ĬlassLoader classLoader = getClass().getClassLoader() InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE) ĬlassLoader classLoader = Thread.currentThread().getContextClassLoader() ![]() Private static final Properties PROPERTIES = new Properties() I tried all the 3 approaches below and all of them throws a : inStream parameter is null at the line PROPERTIES.load(inputStream) Ĭode: private static final String PROPERTIES_FILE = "aws.properties" I am having difficulties loading the properties file - getting a NullpointeException ![]() And I have a properties file to be read( aws.properties) - which is located right under WEB-INF. ![]() I have created a ZK web application project in Eclipse, and deployed the same in Apache Tomcat 9.0.37.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |