ipt icon indicating copy to clipboard operation
ipt copied to clipboard

Logging not working correctly with Java 11

Open MattBlissett opened this issue 4 years ago • 1 comments

When running IPT 2.5.x on Tomcat 9 with Java 11, logging doesn't work. Only these lines appear in debug.log:

DEBUG 22-Nov-2021 19:01:43 [org.gbif.utils.PreemptiveAuthenticationInterceptor] - GET /registry/thesauri.json HTTP/1.1
DEBUG 22-Nov-2021 19:01:43 [org.gbif.utils.PreemptiveAuthenticationInterceptor] - GET /registry/thesauri.json HTTP/1.1
DEBUG 22-Nov-2021 19:01:43 [org.gbif.utils.PreemptiveAuthenticationInterceptor] - GET /registry/organisation/625a5522-1886-4998-be46-52c66dd566c9.json HTTP/1.1

Changing the JRE to Java 8, the usual lines are written:

INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - Reloaded Log4J2 for debugging
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - Logging to /srv/ipt/logs/
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - IPT Data Directory: /srv/ipt/.
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - Configuring http proxy ...
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - No proxy entered, so removing proxy setting on http client
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - Loading user accounts ...
DEBUG 22-Nov-2021 19:03:44 [org.gbif.ipt.service.admin.impl.UserAccountManagerImpl] - Adding admin [email protected]
DEBUG 22-Nov-2021 19:03:44 [org.gbif.ipt.service.admin.impl.UserAccountManagerImpl] - Adding user [email protected]
INFO  22-Nov-2021 19:03:44 [org.gbif.ipt.config.ConfigManagerImpl] - Loading vocabularies ...
DEBUG 22-Nov-2021 19:03:44 [org.gbif.utils.PreemptiveAuthenticationInterceptor] - GET /registry/thesauri.json HTTP/1.1
...

MattBlissett avatar Nov 22 '21 19:11 MattBlissett

Possibly related on the health page under Java 11:

The following has evaluated to null or missing:
==> javaVersion  [in template "WEB-INF/pages/health.ftl" at line 199, column 25]

MattBlissett avatar Nov 26 '21 19:11 MattBlissett

It must be fine now.

mike-podolskiy90 avatar Jun 03 '24 09:06 mike-podolskiy90