Bug 200777 [Firefox]Fail to show svg bar chart using chart deploy package.[0601][13]
Description: Fail to show svg bar chart using chart deploy package. Build number:2.2.1.v200708220927 Steps to reproduce: 1. Deploy chart-viewer-sample.war to Tomcat5.5.23. 2. Preview index.jsp Expected result: Display three charts. Actual result: Fail to display svg bar chart. see attached. Error log:n/a
chart/org.eclipse.birt.chart.viewer/src/org/eclipse/birt/chart/viewer/internal/util/ChartImageManager.java
}
	/**
	 * Process folder settings with absolute path. If path is a relative path,
	 * first relative to context. If set canWrite to true, then check the folder
	 * if writable.If not, relative to ${java.io.tmpdir} folder.
	 * 
	 * @param context
	 * @param path
	 * @param defaultPath
	 * @param canWrite
	 * @return
	 */
	private static String processRealPath( ServletContext context, String path,
			boolean canWrite )
	{
		String realPath = null;
		
		if ( !new File( path ).isAbsolute( ) )
		{
			if ( !path.startsWith( "/" ) ) 
				path = "/" + path; 
			realPath = getRealPath( path, context );
			if ( realPath != null && makeDir( realPath ) )
			{
				if ( !canWrite )
					return trimSep( realPath );
				
				try
				{
					if ( canWrite && new File( realPath ).canWrite( ) )