Skip to content

Commit

Permalink
updated log4j with log4j.2.24.3 jars
Browse files Browse the repository at this point in the history
  • Loading branch information
unni1972 committed Dec 27, 2024
1 parent 93b45b2 commit 0282f6c
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 30 deletions.
30 changes: 21 additions & 9 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/javassist.jar"/>
<classpathentry kind="lib" path="D:/apache-tomcat-8.5.46/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/log4j-api-2.6.2.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/log4j-core-2.6.2.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/gson-2.3.1.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/spring-mock.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/testng-6.8.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/spring-core.jar"/>
<classpathentry kind="lib" path="D:/Git_repo/buggy-app/webroot/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/commons-cli-1.3.1.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/commons-lang3-3.5.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/dnsjava-2.1.8.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/dnssec4j-0.1.6.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/google-collect-0.5.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/gson-2.3.1.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/guava-20.0.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/littleproxy-1.1.2.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/log4j-api-2.24.3.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/log4j-core-2.24.3.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/mysql-connector-java-5.1.46.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/netty-all-4.0.25.Final.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/netty-all-4.0.44.Final.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/slf4j-api-1.7.24.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/slf4j-api-2.0.11.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/slf4j-log4j12-1.7.24.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/spring-core.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/spring-mock.jar"/>
<classpathentry kind="lib" path="webroot/WEB-INF/lib/testng-6.8.jar"/>
<classpathentry kind="output" path="dist"/>
</classpath>
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<path id="compile.classpath">
<pathelement location="${lib}/"/>
<pathelement path="${lib}\servlet-api.jar;${lib}\log4j-core-2.6.2.jar;${lib}\log4j-api-2.6.2.jar; ${lib}\gson-2.3.1.jar;${lib}\mysql-connector-java-5.1.46.jar;${lib}\littleproxy-1.1.2.jar;${lib}\netty-all-4.0.44.Final.jar"/>
<pathelement path="${lib}\servlet-api.jar;${lib}\log4j-core-2.24.3.jar;${lib}\log4j-api-2.24.3.jar; ${lib}\gson-2.3.1.jar;${lib}\mysql-connector-java-5.1.46.jar;${lib}\littleproxy-1.1.2.jar;${lib}\netty-all-4.0.44.Final.jar"/>
</path>

<path id="test.classpath">
Expand Down
3 changes: 1 addition & 2 deletions src/com/buggyapp/io/IODemo.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.buggyapp.io;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


/**
*
Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/io/IOThread.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.buggyapp.io;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.buggyapp.cpuspike.CPUSpikerThread;
import com.buggyapp.util.FileUtil;
Expand Down
4 changes: 0 additions & 4 deletions src/com/buggyapp/memoryleakthread/MapManager.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package com.buggyapp.memoryleakthread;

import java.util.HashMap;
import java.util.Map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
*
Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/oomcrash/OOMCrash.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
*
Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/sampleapp/Consumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import static com.buggyapp.sampleapp.SampleAppDemo.THRESHOLD;
import static com.buggyapp.sampleapp.SampleAppDemo.s_map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.buggyapp.references.SimpleExample;

Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/sampleapp/Producer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import static com.buggyapp.sampleapp.SampleAppDemo.*;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Producer extends Thread {

Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/sampleapp/SampleAppDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
*
Expand Down
6 changes: 4 additions & 2 deletions src/com/buggyapp/servlet/LaunchBuggyAppServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
//import org.apache.log4j.LogManager;
//import org.apache.log4j.Logger;

import com.buggyapp.LaunchPad;
import com.buggyapp.cpuspike.CPUSpikerThread;
import com.buggyapp.util.ExceptionUtil;
import com.buggyapp.util.StringUtil;
import com.google.gson.Gson;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class LaunchBuggyAppServlet extends HttpServlet {

Expand Down
2 changes: 0 additions & 2 deletions src/com/buggyapp/stackoverflow/StackOverflowDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.buggyapp.slowfinalize.SlowFinalizeDemo;

Expand Down
Binary file removed webroot/WEB-INF/lib/log4j-1.2.17.jar
Binary file not shown.
Binary file added webroot/WEB-INF/lib/log4j-api-2.24.3.jar
Binary file not shown.
Binary file removed webroot/WEB-INF/lib/log4j-api-2.6.2.jar
Binary file not shown.
Binary file added webroot/WEB-INF/lib/log4j-core-2.24.3.jar
Binary file not shown.
Binary file removed webroot/WEB-INF/lib/log4j-core-2.6.2.jar
Binary file not shown.

0 comments on commit 0282f6c

Please sign in to comment.