Glassfish 3.1.2.2: admin console does not load

When I try to access the admin console using

http://localhost:4848 

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://127.0.0.1:4848/j_security_check 

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://localhost:4848/login.jsf 

maybe, but then I can’t change any value, but I get directly a log error that says the same as above.

+4
source share
3 answers

Good afternoon!!!!

I had the exact same problem that the publisher talked about and tried everything !!!, but after receiving feedback from different friends, I took the following steps:

Before starting ... my environment worked fine (everything, if possible, was set to 64 bits), until some kind of web page required 32 bits of JRE, I downloaded and installed it, after that the glass fish just went crazy and started to do what is described in this discussion. I tested, installed, uninstalled, unzipped and uninstalled the JDK, Glassfish versions .... nothing worked until one of my friends said to search users (due to the fact that each version is only broken glass fish); Here I searched for the names of each folder "java" or "Oracle", and I found on the route:

  • C: \ Users \\ AppData \ LocalLow \ Sun \ Java \ Deployment

The file is "deployment.properties", inside I found the properties:

 1. deployment.javaws.jre.0.path=C\:\\Program Files (x86)\\Java\\jre7\\bin\\javaw.exe 2. deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre7\\bin\\javaw.exe 

Then I removed property 1

 (deployment.javaws.jre.0.path=C\:\\Program Files (x86)\\Java\\jre7\\bin\\javaw.exe) 

and modified property 2:

 + deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre7\\bin\\javaw.exe 

It just solved the problem !! Hope this helps you guys.

+2
source

There seems to be something wrong with the installation of your glass fish.

These lines in your log:

 [#|2013-05-07T11:04:59.953+0200|FINE|glassfish3.1.2|org.apache.naming.resources.FileDirContext|_ThreadID=82;_ThreadName=Thread-2;ClassName=org.apache.naming.resources.FileDirContext;MethodName=file;|PWC4451: File cannot be read D:\glassfish3\glassfish\lib\install\applications\__admingui\WEB-INF\classes\com\sun\webui\jsf\component\Label.class|#] [#|2013-05-07T11:04:59.953+0200|FINE|glassfish3.1.2|org.apache.naming.resources.FileDirContext|_ThreadID=82;_ThreadName=Thread-2;ClassName=org.apache.naming.resources.FileDirContext;MethodName=file;|PWC4451: File cannot be read D:\glassfish3\glassfish\lib\install\applications\__admingui\WEB-INF\classes\com\sun\webui\jsf\component\CheckboxGroup.class|#] [#|2013-05-07T11:04:59.968+0200|FINE|glassfish3.1.2|org.apache.naming.resources.FileDirContext|_ThreadID=82;_ThreadName=Thread-2;ClassName=org.apache.naming.resources.FileDirContext;MethodName=file;|PWC4451: File cannot be read D:\glassfish3\glassfish\lib\install\applications\__admingui\WEB-INF\classes\com\sun\webui\jsf\component\RbCbSelector.class|#] 

indicate that the Glassfish admin GUI files cannot be downloaded ... you will have to fix it.

There may be something wrong with your user rights.

0
source

Not sure if you decided to solve this situation. I came here with the same problem.

By reading here, I was able to access admin gui using the link you gave. I saw that one portlet that I deployed as an application caused hawok. Undeployed "portlet" and everything was fine.

0
source

Source: https://habr.com/ru/post/1479502/


All Articles