title: Inputstream is null, while loading a file from a file path in windows service
body: <p>Im trying to read a file from a path.
  This is my sample code;</p>
  
  <pre><code>String path = "repository"+ File.separator +"resources"+ File.separator +"api_templates";
  
          String fileName = path + TEMPLATE_FILE_PREFIX + type + ".xml";
          InputStream in = null;
          try {
             log.info("##############File path#############"+fileName);
              in = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
  </code></pre>
  
  <p>Here i get inputstream as null. I suspect the system could not load the file. But when i print my filepath, it correctly prints my file path.</p>
  
  <p>This problem occurs only when i try to run my server as windows service, using "yajsw".</p>
  
  <p>What might be the issue? </p>
  
  <p>Edit:</p>
  
  <p>My Sample wrapper-conf file;</p>
  
  <pre><code>#********************************************************************
   # working directory
   #******************************************************************** 
  </code></pre>
  
  <p>wrapper.working.dir=${my_home}</p>
  
  <pre><code> ............
  
   wrapper.java.additional.2 = -Xms256m 
   wrapper.java.additional.3 = -Xmx1024m 
   wrapper.java.additional.4 = -XX:MaxPermSize=256m 
   wrapper.java.additional.5 = -XX:+HeapDumpOnOutOfMemoryError 
   wrapper.java.additional.6 = -XX:HeapDumpPath=${my_home}\\repository\\logs\\heap-dump.hprof  
   wrapper.java.additional.7 = -Djava.endorsed.dirs=${my_home}\\lib\\endorsed;${java_home}\\jre\\lib\\endorsed
  </code></pre>