Author Message
JNemani
Joined: Apr 6, 2017
Messages: 56
Offline
Upgraded OD from 8.1 to 8.1.2
at the same time I changed the JVM from oracle jre 1.8_091 to Eclipse Adoptium 11.0.21+9 (open jdk).
 
In the tomcat9-stdout file I see

VPAppLogClientBase:initLog4j -->
2024-01-02 09:35:58,128 http-nio-8080-exec-1 WARN No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
VPAppLogClientBase:getLogFilePath - E:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\Australia\\..\..\logs
VPAppLogClient:initLog4j: LOG4J_FILEPATH (logpath): null to E:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\Australia\\..\..\logs
VPAppLogClientBase:initLog4j <--

tomcat9-stderr log shows all good until
02-Jan-2024 09:35:24.872 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [49542] milliseconds
log4j:WARN No appenders could be found for logger (org.apache.axiom.locator.DefaultOMMetaFactoryLocator).
log4j:WARN Please initialize the log4j system properly.

Since I was unable to get logging working I did update the runtimesupport files as well as the runtimeconfig file and neither of those seemed to help.

Apache has been restarted a few times as well as full reboot of this dev server, nothing helped the logging issue.

Applications appear to be working and answering properly but with no logging I can't see what is transpiring. I want to get this rectified in my dev environment before I have to update both my prod servers to the new JRE.

I've attached a zip of the tomcat logs

thanks for your time
Filename ApacheLogs.zip [Disk] Download
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
Hi. I see just warnings on Tomcat logs, no error messages.

While upgrading, did you move from Log4j to Log4j2 ?
Note: If I remind fine, the OD 8.1.0 was still using the old Log4j, Log4j2 was introduced in the OD 8.1.1

If the answer to the above question is YES:

- make sure you are using the proper '.properties' file or the '.xml' file. Log4j2 supports
'.properties' files but they have changed the property syntax. You can check the official
documentation

https://logging.apache.org/log4j/2.0/manual/configuration.html#Properties

it covers all you need to create new configuration.


- check if, while your code does not use Log4j 1.x, your legacy libraries do.

- make sure the logj4.properties or the log4j2,xml is the classpath

longo10 [Avatar]

Joined: Jul 14, 2014
Messages: 12
Location: Mexico
Offline
Hi,
Did you find the solution to this problem?
Go to:   
Mobile view