log4j upgrade #92
michaelwechner
started this conversation in
Show and tell
Replies: 2 comments
-
you should also do the following change git diff src/build/pom-core.xml
whereas I have committed the changes now Thanks Michael |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think with the current version of Yanel you also have to comment out the following resources in
Otherwise you get the old log4j version in the final WEB-INF/lib. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Together
Please do the following steps.
Upgrade to log4j 2.17.0
git diff src/build/dependencies.xml
diff --git a/src/build/dependencies.xml b/src/build/dependencies.xml
index f6b9640..8335316 100644
--- a/src/build/dependencies.xml
+++ b/src/build/dependencies.xml
@@ -54,8 +54,8 @@
Get log4j 2.17.0 from https://repo1.maven.org/maven2/
git diff src/build/build.properties
diff --git a/src/build/build.properties b/src/build/build.properties
index 5a21348..6b6103e 100644
--- a/src/build/build.properties
+++ b/src/build/build.properties
@@ -153,7 +153,8 @@ local.config.dir=conf/local
#local.config.home=/path/to/project/yanel-configuration
Wyona Maven Repo URL
-maven.url=http://maven2.wyona.org/
+#maven.url=http://maven2.wyona.org/
+maven.url=https://repo1.maven.org/maven2/
Tomcat version shipped with Yanel, whereas it will be downloaded from http://maven2.wyona.org/apache-org/apache-tomcat/
tomcat.version=7.0.25
Update ThreadContext
git diff src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java b/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
index 2f1bac521..92ce4fa41 100644
--- a/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
+++ b/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
@@ -437,7 +437,7 @@ public class YanelServlet extends HttpServlet {
log.error(e, e);
throw new IOException(e.getMessage());
} finally {
Remove old libs
rm local/apache-tomcat-7.0.25/webapps/yanel/WEB-INF/lib/log4j-api-2.0-beta8.jar
rm local/apache-tomcat-7.0.25/webapps/yanel/WEB-INF/lib/log4j-core-2.0-beta8.jar
Restart Yanel
Hope that helps
Michael
Beta Was this translation helpful? Give feedback.
All reactions