public void contextInitialized(ServletContextEvent sce){
path=sce.getServletContext().getRealPath(path)//ruta exacta en el disco duro de donde está el fichero
try{
File fichero = new File(path);
if(!fichero.exist()){
System.out.println("Hola");
ObjectOutputStream oos
oos.WriteIbject(new Hashtable<String, ClaseQueGuardaremos>);
oos.clos();
}else{
System.out.println("Error");
}
}
}