Bug 168304 Context root issue when set to other BIRT Web Project.[0603]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
}
		
		imageBaseUrl = IBirtConstants.SERVLET_PATH_PREVIEW + "?__imageID="; 
		
		String logDirectory = servletConfig.getServletContext( )
				.getInitParameter( ParameterAccessor.INIT_PARAM_LOG_DIR );
		if ( logDirectory == null
				|| logDirectory.trim( ).length( ) <= 0
				|| ParameterAccessor.isRelativePath( logDirectory ) )
		{
			logDirectory = ParameterAccessor.getRealPath( servletConfig.getServletContext( ),
					"/logs" ); 
		}
		
		String logLevel = servletConfig.getServletContext( )
				.getInitParameter( ParameterAccessor.INIT_PARAM_LOG_LEVEL );
		Level level = logLevel != null && logLevel.length( ) > 0 ? Level.parse( logLevel )
				: Level.OFF;
		config.setLogConfig( logDirectory, level );
		
		String scriptLibDir = servletConfig.getServletContext( )
				.getInitParameter( ParameterAccessor.INIT_PARAM_SCRIPTLIB_DIR );
		if ( scriptLibDir == null
				|| scriptLibDir.trim( ).length( ) <= 0
				|| ParameterAccessor.isRelativePath( scriptLibDir ) )
		{
			scriptLibDir = ParameterAccessor.getRealPath( servletConfig.getServletContext( ),
					"/scriptlib" ); 
		}
		ArrayList jarFileList = new ArrayList( );