-
Notifications
You must be signed in to change notification settings - Fork 145
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
JDK loggers can initialize the JDK LogManager before GlassFishLogManager is set #25133
Comments
Just for sure, do you have write permissions to |
This really broke logging. If anything in your logging configuration breaks, the logging configuration is invalid. However enabling the configuration is not transactional. Maybe we could improve it. The problem with logging is also that set-log-attributes cannot verify your file system because the target server can be on another computer. Maybe it could validate that for the "server" target which should be local from the domain admin point of view.
The file now contains this (the log was not lost):
|
I will close it for now, but if you would find another reason than missing permissions, please reopen the issue. |
Is not a permissions issue. Have you restarted the domain after the changes?
but stops logging. No more lines are written. ¿How can I reopen this ticket? |
Yes, changes were applied immediately and even after restart the server continued to work. |
Can you try to start the domain with --verbose? It should print some logs to your STDOUT so if the server is broken and cannot start, it should print at least something, reason why. Is it listening on port, can you visit the admin console? - Is it just logging or the server did not start for some reason? |
log-verobse.log |
It seems the problem is due to the commands "delete-domain domain1" / "create-domain calypso".
then I run
And the issue occurs within the "calypso" domain. If I skip the domain deletion/creation phase and run "multimode" command directly in domain1, the log is working correctly. I assumed the behavior was the same across all domains regarding this, and therefore, the fact that it was a different domain seemed irrelevant. I'm afraid I had not considered the implications of executing the configuration commands on a different domain, but it is now clear that it has an impact. I hope these investigations will bring us closer to understanding the problem. |
Thanks, now I see the problem - missing dependency. Can you list this directory?
It should contain two jar files:
|
Yes, it does.
|
I was able to reproduce it - it is caused by two lines - when you remove/comment out both of them, GlassFish starts and logging works. I will try to do something about it, it seems that the GC is faster than our main and with these two options it initializes the JDK's LogManager. GlassFish then cannot change it.
|
Just FYi, this hit much bigger issue I already knew for a long time and which basically led to creation of custom log manager in glassfish - now you proved that even this is not enough and it is required to move it yet the last step to the border of "standard usage" - using JVM options to define So here we go with #25183 - it will take yet some time, because it affects a lot of things including TCK, but it should be a part of GlassFish 7.1.0. |
Environment Details
Problem Description
After "start-domain" and executing
$ASADMIN multimode --file calypso.config7.txt
(attached)Glassfish stops logging.
Notes:
calypso.config7.txt
Steps to reproduce
Execute attached configuration
Impact of Issue
Glassfish stops logging
The text was updated successfully, but these errors were encountered: