//Tomcat下获取WEB-INF目录路径
String webHome = this.getServletConfig()
.getServletContext().getRealPath(SystemConstants.WEB_DELIMITER);
//weblogic下获取WEB-INF目录路径
URL initurl = this.getServletContext().getResource("/");
webHome = new File(initurl.toURI()).getAbsolutePath();
logger.debug("webHome:" + webHome);
if (!webHome.endsWith("\\") && !webHome.endsWith("/"))
{
webHome += File.separator;
logger.debug("webHome +=:" + webHome);
}