title: Accessing a folder from ClassLoader
body: <p>I have a JAVA EE app. with this structure:</p>
  
  <pre><code>/iberiaApp
  /iberiaApp/configFiles/hotel
  /iberiaApp/config.jsp
  /iberiaApp/WEB-INF/classes
  </code></pre>
  
  <p>inside <code>config.jsp</code> I have this piece of code:</p>
  
  <pre><code> &lt;%=FileReader.readFiles("configFiles/hotel")%&gt;;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public static List&lt;String&gt; readFiles (String folder) throws URISyntaxException {
  
      ClassLoader classLoader = FileReader.class.getClassLoader();
  
      URI uri = classLoader.getResource(folder).toURI();
  </code></pre>
  
  <p>But I got a nullpointer getting the URI (classLoader.getResource(folder) is returning null)</p>