I just installed the latest Glassfish Tools (18.104.22.168308190137) on Eclipse Kepler and Glassfish Server 3.1.2. But when I start the server and open the console ('view log file' button) there is no output displayed (also not during deployment). When I open the server.log file in a text editor I can clearly see the log output. Re-starting Eclipse, re-opening the console view didn't help. I have this bug both on Windows 8 and OSX 10.8.4.
Is there something obvious that I am missing? In my previous pre-kepler Eclipse installation this works like a charm (using the same glassfish server). Also the path to the log file displayed on the top of the console view is correct.
This might be related to the following thread:
Will have to use my old eclipse installation until this is resolved. Any help is appreciated.
Thanks for reporting an issue in a pre-release version of GF Tools. We will investigate. In case you weren't intending to install a pre-release version, make sure to install GF Tools from Eclipse Marketplace rather than from the java.net plugin repository. The latest release is 6.2.0.
I actually had the official release version from the market place installed first, with the same error. I then tried the pre-release version as it was mentioned in GlassFish > View Log File opens in editor instead of console.
I tried to simulate it but without success. When you started the server you should be shown console named as the server. This console shows only the part of the log beginning with the lines related to the current startup process. When you click View Log button you should see whole server.log file from your domain directory in console named as absolute path the file. Is either one of this consoles visible in your case?
Thanks for following up on this. I can see both consoles and also switch between them. But they remain empty at all times, no output is visible. Also in the console shown after clicking 'view log file' the title is the correct path to the server.log file. It's really weird, as far as I see it it should simply watch that file and refresh when it changes. When I open the server.log file in a text editor I can see that there is content and new lines added when I e.g. start the server. So logging in general seems to work. Just the eclipse integration somehow not. Is there some setting/preference I need to adjust?
I can confirm this still happens on v22.214.171.124312191402 for eclipse kepler SR1 / glassfish 4.0.
For me, it refuses to show the contents of server.log when using the setting 'handler=org.slf4j.bridge.SLF4JBridgeHandler' in logging.properties, which I use to forward logging thru logback. When I reset the property back to 'handlers=java.util.logging.ConsoleHandler', it will resume showing glassfish output in the server console, but the server.log console will remain silent. All the while, logs are being recorded in server.log, but the console refuses to show it.
This is extremely frustrating. Anyone help?
Apparently, the GlassFish Tools for eclipse is expecting the log messages in 'ODLLogFormatter' format only, and will refuse to show any logs messages that don't adhere to this format.
I've tried configuring my logback messages to match this format, and that works until an exception is thrown and a log message is entered somewhere using the 'UniformLogFormatter' format, which then causes the server.log parser to refuse to show any more messages.
This is a bug, but I'm unsure where to report bugs now since the move to OEPE. (Was https://java.net/jira/browse/GLASSFISHPLUGINS)