package edu.wustl.catissuecore.exceptionformatter;
/**
 * 
 * @author sachin_lale
 * Description: The Factory class to instatiate ExceptionFormatter object of given Exception    
 */

import java.io.FileInputStream;
import java.util.*;

import edu.wustl.catissuecore.util.global.Variables;
import edu.wustl.common.util.logger.Logger;

public class ExceptionFormatterFactory {
	static Properties prop = new Properties();
	static
	{
		try
		{
			/* Load ExceptionFormatter.properties file
			 * property file format is as follows:
			 * Exception_Class_Name = Exception_Formatter_Class_Name
			*/
			
			//prop.load(new FileInputStream("D:\\Example\\catissuecore\\WEB-INF\\classes\\ExceptionFormatter.properties"));
			prop.load(new FileInputStream(Variables.catissueHome+System.getProperty("file.separator")+ "\\WEB-INF\\src\\ExceptionFormatter.properties"));
			
			System.out.println("File Loaded");
		}
		catch(Exception e)
		{
			Logger.out.error(e.getMessage()+" " + e);
		}
	}
	
	// @param Exception excp : The fully qualified class name of excp 
	//  and the Exception_Formatter class name should be in ExceptionFormatter.properties file   
	public static ExceptionFormatter getFormatter(Exception excp)
	{
		ExceptionFormatter expFormatter=null;
		try
		{
			//Get Excxeption Class name from given Object
			String excpClassName = excp.getClass().getName(); 
			
			//Get Exception Formatter Class name from Properties file
			String formatterClassName = prop.getProperty(excpClassName);
			if(formatterClassName==null)
			{
				Logger.out.error("ExceptionFormatter Class not found for " + excpClassName);
			}
			else
			{
				//	Instantiate a Exception Formatter
				Logger.out.debug("exceptionClass: " +excpClassName);
				Logger.out.debug("formatterClass: " +formatterClassName);
				expFormatter = (ExceptionFormatter)Class.forName(formatterClassName).newInstance();
			}
		}
		catch(Exception e)
		{
			Logger.out.error(e.getMessage()+" " + e);
		}
		return expFormatter;
	}

}

package edu.wustl.catissuecore.exceptionformatter;
/**
 * 
 * @author sachin_lale
 * Description: The Factory class to instatiate ExceptionFormatter object of given Exception    
 */

import java.io.FileInputStream;
import java.util.*;

import edu.wustl.catissuecore.util.global.Variables;
import edu.wustl.common.util.logger.Logger;

public class ExceptionFormatterFactory {
	static Properties prop = new Properties();
	static
	{
		try
		{
			/* Load ExceptionFormatter.properties file
			 * property file format is as follows:
			 * Exception_Class_Name = Exception_Formatter_Class_Name
			*/
			
			//prop.load(new FileInputStream("D:\\Example\\catissuecore\\WEB-INF\\classes\\ExceptionFormatter.properties"));
			prop.load(new FileInputStream(Variables.catissueHome+System.getProperty("file.separator")+"WEB-INF"+System.getProperty("file.separator")+"src"+System.getProperty("file.separator")+"ExceptionFormatter.properties"));
			
			System.out.println("File Loaded");
		}
		catch(Exception e)
		{
			Logger.out.error(e.getMessage()+" " + e);
		}
	}
	
	// @param Exception excp : The fully qualified class name of excp 
	//  and the Exception_Formatter class name should be in ExceptionFormatter.properties file   
	public static ExceptionFormatter getFormatter(Exception excp)
	{
		ExceptionFormatter expFormatter=null;
		try
		{
			//Get Excxeption Class name from given Object
			String excpClassName = excp.getClass().getName(); 
			
			//Get Exception Formatter Class name from Properties file
			String formatterClassName = prop.getProperty(excpClassName);
			if(formatterClassName==null)
			{
				Logger.out.error("ExceptionFormatter Class not found for " + excpClassName);
			}
			else
			{
				//	Instantiate a Exception Formatter
				Logger.out.debug("exceptionClass: " +excpClassName);
				Logger.out.debug("formatterClass: " +formatterClassName);
				expFormatter = (ExceptionFormatter)Class.forName(formatterClassName).newInstance();
			}
		}
		catch(Exception e)
		{
			Logger.out.error(e.getMessage()+" " + e);
		}
		return expFormatter;
	}

}

Change for file separator