AdamBien / lightfish

Payara / GlassFish Monitoring Utility
122 stars 41 forks source link

Error Connect Glassfish Password #22

Open juliomartini opened 11 years ago

juliomartini commented 11 years ago

Hi,

My configuration:

When access http://192.168.10.19:8080/ no data received. In my server.log Glassfish: Cannot fetch static server information Exception: java.lang.IllegalStateException: Cannot fetch static monitoring data because of: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized]]

Where do I set the username and password for glassfish ligthfish access? Is the bug or error de configure?

Thanks!!!

AdamBien commented 11 years ago

Support for HTTPs was removed in 1.3.0 and is going to be reintroduced in 1.3.1. You could try to deploy lightfish to the target server -- then it should work.

baztian commented 9 years ago

Is HTTPs support back in HEAD again? I'm getting [2015-03-25T18:47:37.669+0100] [glassfish 4.1] [INFO] [] [org.lightfish.business.servermonitoring.control.OneShotProvider] [tid: _ThreadID=33 _ThreadName=http-listener-1(3)] [timeMillis: 1427305657669] [levelValue: 800] [[

User name is not empty, returning https]]

[2015-03-25T18:47:37.825+0100] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=33 _ThreadName=Thread-9] [timeMillis: 1427305657825] [levelValue: 1000] [[

Cannot fetch static server information Exception: java.lang.IllegalStateException: Cannot fetch static monitoring data because of: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized]]

baztian commented 9 years ago

BTW, to avoid the SSLHandshakeException: Export the certificate via browser. Then keytool -import -noprompt -trustcacerts -alias myserver -file "C:\Users\me\Downloads\myserver.crt" -keystore "C:\Software\glassfish41\glassfish\domains\domain1\config\cacerts.jks" -storepass changeit

ciz88 commented 9 years ago

Thank you for such great tool! Facing the same issue, just wondering if this issue is ever solved yet? How? When i tried to remove the username, it logged HTTP 302 instead


Running lightfish on glassfish4 to monitor localhost:4848 on glassfish3.1.2 Sadly, not possible to deploy lightfish on glassfish3.1.2 as well :

SEVERE|glassfish3.1.2|global|_ThreadID=44;_ThreadName=Thread-2;|Class [ javax/websocket/Session ] not found. Error while loading [ class org.lightfish.business.appmonitoring.boundary.ApplicationsSocket ]|#] [ class org.lightfish.business.escalation.control.EscalationMessageProcessor ]|#] [ class org.lightfish.business.administration.boundary.PollingResource ]|#] [ class org.lightfish.business.servermonitoring.control.SessionTokenRetriever ]|#] [ class org.lightfish.business.servermonitoring.boundary.MonitoringAdmin ]|#] [ class org.lightfish.business.appmonitoring.boundary.ApplicationsResource ]|#] [ class org.lightfish.business.administration.boundary.ServerInfoResource ]|#] [ class org.lightfish.business.authenticator.GlassfishAuthenticator ]|#] [ class org.lightfish.business.appmonitoring.boundary.ApplicationMonitoring ]|#] [ class org.lightfish.business.appmonitoring.boundary.ApplicationsSocket ]|#] [ class org.lightfish.business.escalation.control.EscalationMessageProcessor ]|#] [ class org.lightfish.business.administration.boundary.PollingResource ]|#] [ class org.lightfish.business.servermonitoring.control.SessionTokenRetriever ]|#] [ class org.lightfish.business.servermonitoring.boundary.MonitoringAdmin ]|#] [ class org.lightfish.business.appmonitoring.boundary.ApplicationsResource ]|#] [ class org.lightfish.business.administration.boundary.ServerInfoResource ]|#] [ class org.lightfish.business.authenticator.GlassfishAuthenticator ]|#] [ class org.lightfish.business.appmonitoring.boundary.ApplicationMonitoring ]|#] ... org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.lightfish.business.administration.boundary.PollingResource Caused by: java.lang.ClassNotFoundException: javax.json.JsonObject Caused by: java.lang.ClassNotFoundException: javax.json.JsonValue


Sorry for resurrecting old issue

Thanks for the tool! Anyway, i've just downloaded java magazine for your interview , old magz but interesting to read

rds76 commented 8 years ago

Remote monitoring via https+auth still doesnt work :(