Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load Logmanager "org.glassfish.main.jul.GlassFishLogManager" in CI console #25337

Closed
pzygielo opened this issue Jan 21, 2025 · 4 comments · Fixed by #25339
Closed

Comments

@pzygielo
Copy link
Contributor

https://ci.eclipse.org/glassfish/job/glassfish_build-and-test-using-jenkinsfile/job/master/1643/

[2025-01-21T08:22:30.568Z] [INFO] -------------------------------------------------------
[2025-01-21T08:22:30.568Z] [INFO]  T E S T S
[2025-01-21T08:22:30.569Z] [INFO] -------------------------------------------------------
[2025-01-21T08:22:30.569Z] [0.002s][info][gc] Using G1
[2025-01-21T08:22:30.828Z] Could not load Logmanager "org.glassfish.main.jul.GlassFishLogManager"
[2025-01-21T08:22:30.828Z] java.lang.ClassNotFoundException: org.glassfish.main.jul.GlassFishLogManager
[2025-01-21T08:22:30.828Z] >----at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
[2025-01-21T08:22:30.828Z] >----at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[2025-01-21T08:22:30.828Z] >----at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
[2025-01-21T08:22:30.828Z] >----at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:222)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.Logger.demandLogger(Logger.java:649)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.Logger.getLogger(Logger.java:718)
[2025-01-21T08:22:30.828Z] >----at java.logging/java.util.logging.Logger.getLogger(Logger.java:702)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.setupJunitLogger(JUnitPlatformProvider.java:133)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:116)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
[2025-01-21T08:22:30.828Z] >----at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
[2025-01-21T08:22:31.084Z] [INFO] Running org.glassfish.appclient.client.acc.config.util.XMLTest
[2025-01-21T08:22:31.084Z] [0.494s][info][gc] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 21M->3M(258M) 3.015ms
[2025-01-21T08:22:31.084Z] Testing with /sun-acc.xml 
[2025-01-21T08:22:31.339Z] Testing with /glassfish-acc.xml
[2025-01-21T08:22:31.339Z]   Testing with /sun-acc.xml
[2025-01-21T08:22:31.339Z]   Testing with /glassfish-acc.xml
[2025-01-21T08:22:31.339Z] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 s -- in org.glassfish.appclient.client.acc.config.util.XMLTest

Currently we keep only few runs, so it's hard to tell when this started. But such CNFEx was not present in 1488 build (2024-07-07T10:18:42.617Z).

This seems to have no impact on test result, but I'm submitting it with the hope to collect more information.

Looks it's in mvn-tests stage (as it was also present in 1642 which had all ant-tests failed), so perhaps shall be reproducible locally.

@pzygielo
Copy link
Contributor Author

@pzygielo
Copy link
Contributor Author

pzygielo commented Jan 21, 2025

@ acc-config
@ applicationDispatcher 
@ connectors-ra-redeploy-rars
@ dirListing 
@ filterURIMapping 
@ index 
@ jmxUndeployEvent 
@ jsptest 
@ libpam4j 
@ multipleApps 
@ queryString 
@ report-builder
@ securewebapp 
@ sessionDestroyed 
@ standalonewar 

@dmatej
Copy link
Contributor

dmatej commented Jan 22, 2025

ACC is yet much worse, but OK, I "rolled over it with a buldozer" in #25183 which fixes this issue as a side effect. It is not so simple - the problem is classloading, LogManager must be loaded extremely early, because even some garbage collectors use it. The way I did it for GF7 works for standard standalone GF, but fails when you enable ie. GC logging as it is reported in #25133 .

Surprisingly is (and with some relief) that when we follow Java standards as I do in #25183 , so the log manager is simply set using the command line system option, all related issues are resolved. And we also get on track with JPMS. I will get to it this week again.

ACC had a lot of issues and their workarounds, so I spent a lot of time with that.

@dmatej
Copy link
Contributor

dmatej commented Jan 22, 2025

Honestly I forgot why I did it this way, when I approved your PR, I should have to write a better comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants