Bug 161501 [Smoke] Chart can not be previewed in Web Viewer & HTML
Chart can not be previewed in Web Viewer & HTML Steps to reproduce: 1. Create a chart. 2. Preveiw in Web Viewer/ HTML. Expected result: Chart can be previewed. Actual result: No chart is shown.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
if ( out == null )
			out = new ByteArrayOutputStream( );
		
		IRenderTask renderTask = engine.createRenderTask( reportDocument );
		
		BirtUtility.addTask( request, renderTask );
		HashMap context = new HashMap( );
		String format = ParameterAccessor.getFormat( request );
		if ( format.equalsIgnoreCase( ParameterAccessor.PARAM_FORMAT_PDF ) )
		{
			context.put( EngineConstants.APPCONTEXT_PDF_RENDER_CONTEXT,
					createPDFrenderContext( request.getServletPath( ) ) );
		}
		else
		{
			context
					.put( EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
							createHTMLrenderContext( svgFlag, request
									.getServletPath( ) ) );
		}
		context.put( EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST,
				request );
		context.put( EngineConstants.APPCONTEXT_CLASSLOADER_KEY,
				ReportEngineService.class.getClassLoader( ) );
		
		ParameterAccessor.pushAppContext( context, request );
		renderTask.setAppContext( context );
		
		HTMLRenderOption setting = new HTMLRenderOption( );
		setting.setOutputStream( out );