jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject svn commit: r1844956 - in /jmeter/trunk/bin: mirror-server.cmd mirror-server.sh
Date Sat, 27 Oct 2018 12:46:46 GMT
Author: vladimirsitnikov
Date: Sat Oct 27 12:46:46 2018
New Revision: 1844956

URL: http://svn.apache.org/viewvc?rev=1844956&view=rev
Log:
Fix mirror-server scripts to use proper log4j version

Otherwise it fails as follows:

$ ./mirror-server.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
        at org.apache.jmeter.protocol.http.control.HttpMirrorServer.main(HttpMirrorServer.java:234)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 1 more

Modified:
    jmeter/trunk/bin/mirror-server.cmd
    jmeter/trunk/bin/mirror-server.sh

Modified: jmeter/trunk/bin/mirror-server.cmd
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/mirror-server.cmd?rev=1844956&r1=1844955&r2=1844956&view=diff
==============================================================================
--- jmeter/trunk/bin/mirror-server.cmd (original)
+++ jmeter/trunk/bin/mirror-server.cmd Sat Oct 27 12:46:46 2018
@@ -26,8 +26,8 @@ set JMETER_CMD_LINE_ARGS=%*
 cd /D %~dp0
 
 set CP=..\lib\ext\ApacheJMeter_http.jar;..\lib\ext\ApacheJMeter_core.jar;..\lib\jorphan.jar;..\lib\oro-2.0.8.jar
-set CP=%CP%;..\lib\slf4j-api-1.7.25.jar;..\lib\jcl-over-slf4j-1.7.25.jar;..\lib\log4j-slf4j-impl-2.10.0.jar
-set CP=%CP%;..\lib\log4j-api-2.10.0.jar;..\lib\log4j-core-2.10.0.jar;..\lib\log4j-1.2-api-2.10.0.jar
+set CP=%CP%;..\lib\slf4j-api-1.7.25.jar;..\lib\jcl-over-slf4j-1.7.25.jar;..\lib\log4j-slf4j-impl-2.11.0.jar
+set CP=%CP%;..\lib\log4j-api-2.11.0.jar;..\lib\log4j-core-2.11.0.jar;..\lib\log4j-1.2-api-2.11.0.jar
 
 java -cp %CP% org.apache.jmeter.protocol.http.control.HttpMirrorServer %JMETER_CMD_LINE_ARGS%
 

Modified: jmeter/trunk/bin/mirror-server.sh
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/mirror-server.sh?rev=1844956&r1=1844955&r2=1844956&view=diff
==============================================================================
--- jmeter/trunk/bin/mirror-server.sh (original)
+++ jmeter/trunk/bin/mirror-server.sh Sat Oct 27 12:46:46 2018
@@ -21,7 +21,7 @@
 cd "$(dirname "$0")" || exit 1
 
 CP=../lib/ext/ApacheJMeter_http.jar:../lib/ext/ApacheJMeter_core.jar:../lib/jorphan.jar:../lib/oro-2.0.8.jar
-CP=${CP}:../lib/slf4j-api-1.7.25.jar:../lib/jcl-over-slf4j-1.7.25.jar:../lib/log4j-slf4j-impl-2.10.0.jar
-CP=${CP}:../lib/log4j-api-2.10.0.jar:../lib/log4j-core-2.10.0.jar:../lib/log4j-1.2-api-2.10.0.jar
+CP=${CP}:../lib/slf4j-api-1.7.25.jar:../lib/jcl-over-slf4j-1.7.25.jar:../lib/log4j-slf4j-impl-2.11.0.jar
+CP=${CP}:../lib/log4j-api-2.11.0.jar:../lib/log4j-core-2.11.0.jar:../lib/log4j-1.2-api-2.11.0.jar
 
 java -cp $CP org.apache.jmeter.protocol.http.control.HttpMirrorServer "$@"



Mime
View raw message