public static String getSerlvetContextPath()
{
String classPath = Thread.currentThread().getContextClassLoader()
.getResource("").getPath();
File file = new File(classPath);
String path = file.getParentFile().getParentFile().getPath();
return path;
}