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
if ( node == null )
		{
			throw new ReportServiceException( "Invalid TOC query." ); 
		}
		doc.close( );
		return transformTOCNode( node );
	}
	public long getPageCount( String docName, InputOptions options )
			throws ReportServiceException
	{
		IReportDocument doc = ReportEngineService.getInstance( )
				.openReportDocument( getReportDesignName( options ), docName );
		long count = doc.getPageCount( );
		doc.close( );
		return count;
	}
	public Collection getParameterDefinitions(
			IViewerReportDesignHandle design, InputOptions runOptions )
			throws ReportServiceException
	{
		String reportDesignName = design.getFileName( );
		try
		{
			IGetParameterDefinitionTask task = getParameterDefinitionTask( reportDesignName );
			return task.getParameterDefns( false );
		}
		catch ( EngineException e )
		{
			throw new ReportServiceException( e.getLocalizedMessage( ) );
		}