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
{
			if ( !path.startsWith( "/" ) ) 
				path = "/" + path; 
			realPath = context.getRealPath( path );
			if ( realPath == null )
			{
				URL url = context.getResource( "/" ); 
				if ( url != null )
					realPath = trimString( url.getFile( ) ) + path;
			}
		}
		catch ( Exception e )
		{
			realPath = path;
		}
		return realPath;
	}
	/**
	 * Trim the end separator
	 * 
	 * @param path
	 * @return
	 */
	protected static String trimSep( String path )
	{
		path = trimString( path );
		if ( path.endsWith( File.separator ) )
		{
			path = path.substring( 0, path.length( ) - 1 );
		}