Bug 211081 log4j not working with preview
I am using log4j in the scripting Database source. I place my log4j-1.2.15.jar file in the folder C:\eclipse\plugins\org.eclipse.birt. report.viewer_2.2.1.r22x_v20070920\ birt\WEB-INF\lib However when I try to preview I get an error Http Status 500. When I check the log files I see the following exceptions java.lang.NoClassDefFoundError: org/apache/log4j/Category
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
.getInitParameter( ParameterAccessor.INIT_PARAM_LOG_LEVEL );
		if ( logLevel == null )
			logLevel = IBirtConstants.DEFAULT_LOGS_LEVEL;
		
		String initScriptlibFolder = context
				.getInitParameter( ParameterAccessor.INIT_PARAM_SCRIPTLIB_DIR );
		if ( isDesigner && initScriptlibFolder == null )
			initScriptlibFolder = workingPath
					+ IBirtConstants.DEFAULT_SCRIPTLIB_FOLDER;
		scriptLibDir = processRealPath( context, initScriptlibFolder,
				IBirtConstants.DEFAULT_SCRIPTLIB_FOLDER, false );
		
		webAppLocale = getLocaleFromString( context
				.getInitParameter( INIT_PARAM_LOCALE ) );
		if ( webAppLocale == null )
			webAppLocale = Locale.getDefault( );
		isWorkingFolderAccessOnly = Boolean
				.valueOf(
						context
								.getInitParameter( INIT_PARAM_WORKING_FOLDER_ACCESS_ONLY ) )
				.booleanValue( );
		
		String s_maxRows = context.getInitParameter( INIT_PARAM_VIEWER_MAXROWS );
		try
		{
			maxRows = Integer.valueOf( s_maxRows ).intValue( );
		}
		catch ( NumberFormatException e )
		{
			maxRows = -1;