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

Error Connect Glassfish Password #22

Open
juliomartini opened this issue Sep 16, 2013 · 5 comments
Open

Error Connect Glassfish Password #22

juliomartini opened this issue Sep 16, 2013 · 5 comments

Comments

@juliomartini
Copy link

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

@AdamBien
Copy link
Owner

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
Copy link
Contributor

baztian commented Mar 25, 2015

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
Copy link
Contributor

baztian commented Mar 25, 2015

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
Copy link

ciz88 commented Oct 13, 2015

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
Copy link

rds76 commented Oct 19, 2016

Remote monitoring via https+auth still doesnt work :(

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

No branches or pull requests

5 participants