lightfish icon indicating copy to clipboard operation
lightfish copied to clipboard

Error Connect Glassfish Password

Open juliomartini opened this issue 11 years ago • 5 comments

Hi,

My configuration:

  • Glassfish 4
  • Ligthfish

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!!!

juliomartini avatar Sep 16 '13 19:09 juliomartini

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.

AdamBien avatar Sep 18 '13 07:09 AdamBien

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 avatar Mar 25 '15 17:03 baztian

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

baztian avatar Mar 25 '15 17:03 baztian

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

ciz88 avatar Oct 13 '15 11:10 ciz88

Remote monitoring via https+auth still doesnt work :(

rds76 avatar Oct 19 '16 14:10 rds76