code: private static URL findWebInfClassesPath(ServletContext servletContext) {
          String path = servletContext.getRealPath("/WEB-INF/classes");
          if (path == null) {
              return null;
          }
          File fp = new File(path);
          if (!fp.exists()) {
              return null;
          }
          try {
              return fp.toURI().toURL();
          } catch (MalformedURLException e) {
              throw new ClasspathAccessException(e);
          }
      }
docs: Find the URL pointing to "/WEB-INF/classes" This method may not work in conjunction with
  IteratorFactory if your servlet container does not extract the /WEB-INF/classes into a real
  file-based directory
  @param servletContext
  @return null if cannot determin /WEB-INF/classes