Why can't I reach Glassfish admin gui? Why can't I reach Glassfish admin gui? google-chrome google-chrome

Why can't I reach Glassfish admin gui?


Try access the console in this url: http://localhost:4848/login.jsfIn http://localhost:4848 redirect to http://localhost:4848/common/index.jsf and not work because the url not exists.


I noticed this in your log:

[2013-08-04T10:52:12.761+0200] [glassfish 4.0] [WARNING] [] [javax.enterprise.system.container.web.com.sun.web.security] [tid: _ThreadID=34 _ThreadName=admin-listener(2)] [timeMillis: 1375606332761] [levelValue: 900] [[ Context path from ServletContext: differs from path from bundle: /]]

Following that warning, there are a lot of info messages that the server can't find resources that it expects:

[2013-08-04T10:52:16.495+0200] [glassfish 4.0] [INFO] [] [com.sun.jsftemplating] [tid: _ThreadID=133 _ThreadName=admin-listener(6)] [timeMillis: 1375606336495] [levelValue: 800] [[ JSFT0004: The requested resource (/images/button/primary-mini-roll.gif) is not available.]]

...etc.

I'm curious as to how you installed the Glassfish servers. Did you use the windows installer? If you simply used the installer to update an existing Glassfish installation, an incorrect configuration could have been carried over.

The easiest solution to your problem is to download the ZIP distribution. Extract that to a new directory, start the asadmin tool via the command line and run the command:

asadmin> start-domain domain1

That should give you a completely fresh installation and should work without any problems. There's a good blog post here on getting started with Glassfish 4, it would be worth skimming through to make sure there's nothing you've missed.


not sure if this is still a problem but I got something similiar and I could resolve this by setting an admin password and enabling secure-admin (glassfish 3.1). Not sure if the secure-admin is necessary though, so setting a password might be enough.

  1. download and extract glassfish zip
  2. glassfish3/bin/asadmin start-domain
  3. glassfish3/bin/asadmin change-admin-password (default is user "admin" with no password, so just hit [ENTER] two times)
  4. glassfish3/bin/asadmin enable-secure-admin (might be skipped, just see what works for you)
  5. glassfish3/bin/asadmin restart-domain

Now the admin-gui should be available on http://localhost:4848 and also from other machines via http://your.ip.or.address:4848

Good luck