Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Easy way to reflect log4j server configuration changes in Eclipse(Eclipse seems to cache Tomcat's configuration, including log4j. Looking for an easy way to refresh it.)
Easy way to reflect log4j server configuration changes in Eclipse [message #1850977] Wed, 23 March 2022 14:55 Go to next message
Eclipse UserFriend
Java 17, Tomcat 9, Eclipse 2021.12. But this has been an issue for many years, and it seems to apply to any configuration, not just log4j.

Details:

- I have the instance of Tomcat that I use with Eclipse configured to use log4j, including the file tomcat/log4j2/conf/log4j2-tomcat.xml.
- When I first setup Eclipse to use that instance of Tomcat (in preferences/server/runtimeEnvironment it picks up the configuration just fine (for log4j and anything else).
- As I code, I tend to update log4j2-tomcat.xml to silence packages/classes that were originally at debug level as once trusted I no longer need the debug info so I set the corresponding configuration to info.

And here comes the problem.
- It seems that Eclipse caches the old configuration. So those changes are not reflected when Eclipse launches a webapp.
- I ***CAN*** make Eclipse notice the changes if I completely remove Tomcat from Eclipse and then add it back in from scratch. Needless to say that is extremely cumbersome, as it is something I'd want to do often.

QUESTION:
- Is there an easier way to tell Eclipse to completely refresh its server configuration cache so that it reflects the actual server configuration?

I assume the answer is yes, and that I've just never come across it. Thanks in advance for the help.

[Updated on: Wed, 23 March 2022 14:55] by Moderator

Re: Easy way to reflect log4j server configuration changes in Eclipse [message #1869045 is a reply to message #1850977] Tue, 30 July 2024 09:18 Go to previous message
Eclipse UserFriend
Where does the config file in question live, in the Tomcat installation, or in the server instance's folder in the Servers project?
Previous Topic:How to add multiple configure tags supporting different providers in jetty-ssl-context.xml
Next Topic:SQL file
Goto Forum:
  


Current Time: Sun Aug 31 08:24:14 EDT 2025

Powered by FUDForum. Page generated in 0.03553 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top