Bug 139343 [regression]Can not use __document to preview report document when deploy birt.
Summary: [regression]Can not use __document to preview report document when deploy birt. Steps to reproduce: 1. Deploy birt 2. Render a report document 3. Preview the report document by using __document Result: The design file C:\apps\jakarta-tomcat-5.5.7\webapps\birt060428\ has error and can not be run.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
}
	}
	public void setContext( Object context, InputOptions options )
	{
		HttpServletRequest request = (HttpServletRequest) options
				.getOption( InputOptions.OPT_REQUEST );
		ServletContext servletContext = (ServletContext) context;
		ReportEngineService.getInstance( ).setEngineContext( servletContext,
				request );
	}
	private Map getParsedParameters( IViewerReportDesignHandle design,
			InputOptions options, Map parameters )
			throws ReportServiceException
	{
		Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );
		Collection parameterList = getParameterDefinitions( design, options );
		Map paramMap = new HashMap( );
		IGetParameterDefinitionTask task = null;
		Map configMap = null;
		Boolean isDesignerBoolean = (Boolean) options
				.getOption( InputOptions.OPT_IS_DESIGNER );
		boolean isDesigner = ( isDesignerBoolean != null ? isDesignerBoolean
				.booleanValue( ) : false );
		try
		{
			task = getParameterDefinitionTask( design.getFileName( ) );
			IReportRunnable runnable = ReportEngineService.getInstance( )
					.openReportDesign( design.getFileName( ) );
			configMap = runnable.getTestConfig( );
		}