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
String documentName = null;
		if ( ( filePath == null ) || ( filePath.length( ) == 0 ) )
			return ""; 
		String sessionId = request.getSession( ).getId( );
		String fileSeparator = "\\"; 
		if ( filePath.lastIndexOf( fileSeparator ) == -1 )
			fileSeparator = "/"; 
		
		if ( filePath.lastIndexOf( fileSeparator ) != -1 )
		{
			documentName = filePath.substring( filePath
					.lastIndexOf( fileSeparator ) + 1 );
		}
		else
		{
			documentName = filePath;
		}
		String hashCode = Integer.toHexString( filePath.hashCode( ) );
		return documentFolder + File.separator
				+ ( PREFIX_SUB_DOC_FOLDER + sessionId ) + File.separator
				+ hashCode + File.separator + documentName;
	}
	/**
	 * Clears the report document/image files which had been created last time
	 * the server starts up.
	 */
	protected static void clearTempFiles( )
	{
		
		File file = new File( documentFolder );