Bug 155178 [Deploy] Preview report failed on war deployed weblogic server
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
* @param locale
	 * @param rtl
	 * @throws RemoteException
	 */
	public void renderReport( OutputStream os, HttpServletRequest request,
			IReportDocument reportDocument, long pageNumber,
			boolean masterPage, boolean svgFlag, List activeIds, Locale locale,
			boolean rtl ) throws RemoteException
	{
		assert reportDocument != null;
		assert pageNumber > 0 && pageNumber <= reportDocument.getPageCount( );
		OutputStream out = os;
		if ( out == null )
			out = new ByteArrayOutputStream( );
		
		IRenderTask renderTask = engine.createRenderTask( reportDocument );
		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( ) ) );
		}