When I try to access the admin console using
http:
he says the admin console is loading, but it will not go any further. If I refresh the page as recommended, I get HTTP 404.
There are several other answers to questions about a stack overflow with similar problems, but none of the answers helped. So I set the FINEST global logging level and looked at server.log.
The first and most famous exception:
[#|2013-05-07T11:04:52.187+0200|FINE|glassfish3.1.2|com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter|_ThreadID=81;_ThreadName=Thread-2;ClassName=com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter;MethodName=initRest;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://0.0.0.0:4848/management/domain at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.initRest(AdminConsoleAdapter.java:557) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:372)
( here is the full log from running GlassFish to admin-console access )
This happens on my development machine (Windows XP). I tried several re-installations in different places. My JVM is from JDK 7u21.
This does not happen on my other development machine (Ubuntu 13.04) with a similar configuration. The main difference - in addition to the OS - is a proxy configuration. It is configured for proxies for all protocols, port 8080, except for localhost.
I really have no answers myself ...
EDIT
Extra weird behavior. From time to time (every second restart of glass fish), you can access the login to the administrator console using
http:
Then I can enter and edit any setting. When I log out, I get HTTP 500:
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'sun_html53'. root cause java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'sun_html53'. root cause java.lang.reflect.InvocationTargetException root cause java.lang.IllegalStateException: REST Server Name not set!
After that, I can no longer log in using the aforementioned trick until the glass fish restarts.
Also during access via
http:
maybe, but then I canβt change any value, but I get directly a log error that says the same as above.