Skip to main content

Glassfish 3.1 Admin Console Login

15 replies [Last post]
bob63
Offline
Joined: 2011-03-24
Points: 0

Here's the specifics:
Oracle Glassfish Server 3.1 (build 43), Java 1.6.0_24-b07
Sun SPARC v440, Solaris 10 (u8), 8GB RAM, Not a Zone. Administration is done from a workstation remote from the server.
I am able to create and start a domain with no problems. However, I can never get the admin console to function properly after the domain is started. The console starts and makes it to the login prompt. After the credentials are entered, nothing happens. After a half-hour, a blank page finally comes up. The server.log isn't giving me any clues and it's not throwing any exceptions. This one just has me puzzled.
Here's the good parts of the log (immediately before and after the console appears):
[#|2011-03-11T15:42:00.939+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=81;_ThreadName=Thread-1;|SEC1011: Security Service(s) Started Successfully|#]

[#|2011-03-11T15:42:05.551+0000|INFO|oracle-glassfish3.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=Thread-1;|Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context ''|#]

[#|2011-03-11T15:42:11.454+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=81;_ThreadName=Thread-1;|WEB0671: Loading application [__admingui] at [/]|#]

[#|2011-03-11T15:42:11.457+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=81;_ThreadName=Thread-1;|CORE10010: Loading application __admingui done in 16,220 ms|#]

[#|2011-03-11T15:42:11.458+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=81;_ThreadName=Thread-1;|The Admin Console application is loaded.|#]

[#|2011-03-11T15:42:17.311+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=59;_ThreadName=Thread-1;|User [] from host localhost does not have administration access|#]

[#|2011-03-11T15:42:20.823+0000|WARNING|oracle-glassfish3.1|org.apache.catalina.connector.Request|_ThreadID=22;_ThreadName=Thread-1;|PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

[#|2011-03-11T15:42:20.884+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=33;_ThreadName=Thread-1;|User [] from host localhost does not have administration access|#]

[#|2011-03-11T15:42:41.141+0000|INFO|oracle-glassfish3.1|com.sun.jersey.server.impl.application.WebApplicationImpl|_ThreadID=21;_ThreadName=Thread-1;|Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'|#]

[#|2011-03-11T15:42:48.770+0000|INFO|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=21;_ThreadName=Thread-1;|Listening to REST requests at context: /management/domain|#]

[#|2011-03-11T15:42:49.299+0000|INFO|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=24;_ThreadName=Thread-1;|Admin Console: Initializing Session Attributes...|#]

[#|2011-03-11T15:42:50.807+0000|WARNING|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-1;|Cannot create update center Image for /opt/glassfish3; Update Center functionality will not be available in Admin Console|#]

[#|2011-03-11T15:57:49.302+0000|WARNING|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=14;_ThreadName=Thread-1;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(6).|#]

[#|2011-03-11T16:12:50.030+0000|WARNING|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=14;_ThreadName=Thread-1;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(9).|#]

The above entry is the last line of the log file.

Any clues as to where to go from here greatly appreciated!
Bob

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kris_1
Offline
Joined: 2010-09-14
Points: 0

I have problem to login in admin console.
It was resolved by loading console at startup.
To solve need add line in domain.xml in tag
configs/config name="server-config"/admin-service
<property name="adminConsoleStartup" value="ALWAYS"></property>

It seems console can't start normally on request.

mezrin
Offline
Joined: 2013-04-10
Points: 0

I found how to avoid this bug

From here (http://www.oracle.com/technetwork/java/javaee/downloads/index.html) we can download different versions of JavaEE SDK.
I use "Java EE 6 SDK Update 4" (without JDK)
If I download and install java_ee_sdk-6u4-unix.sh - I didn't have such errors
But if I download java_ee_sdk-6u4-unix-ml.sh - I got this error

I used Ubuntu 12.10

For more info see here
http://java.net/jira/browse/GLASSFISH-20348

anilam
Offline
Joined: 2005-03-29
Points: 0

> However, I can
> never get the admin console to function properly after the domain is
> started. The console starts and makes it to the login prompt.

Did you specify the password for the admin user when creating the domain ?
If you didn't, you shouldn't see this login page.
Can you get to the REST page by going to
http://:4848/management/domain ?

Anissa.

On 3/11/11 8:19 AM, forums@java.net wrote:
> Here's the specifics:
>
> Oracle Glassfish Server 3.1 (build 43)
> Sun SPARC v440, Solaris 10 (u8), 8GB RAM, Not a Zone. Administration is
> done from a workstation remote from the server.
>
> I am able to create and start a domain with no problems. However, I can
> never get the admin console to function properly after the domain is
> started. The console starts and makes it to the login prompt. After the
> credentials are entered, nothing happens. After a half-hour, a blank
> page
> finally comes up. The server.log isn't giving me any clues and it's not
> throwing any exceptions. This one just has me puzzled.
>
> Here's the good parts of the log (immediately before and after the
> console
> appears):
>
> [#|2011-03-11T15:42:00.939+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=81;_ThreadName=Thread-1;|SEC1011:
>
> Security Service(s) Started Successfully|#]
> [#|2011-03-11T15:42:05.551+0000|INFO|oracle-glassfish3.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=Thread-1;|Initializing
>
> Mojarra 2.1.0 (FCS 2.1.0-b11) for context ''|#]
> [#|2011-03-11T15:42:11.454+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=81;_ThreadName=Thread-1;|WEB0671:
>
> Loading application [__admingui] at [/]|#]
> [#|2011-03-11T15:42:11.457+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=81;_ThreadName=Thread-1;|CORE10010:
>
> Loading application __admingui done in 16,220 ms|#]
> [#|2011-03-11T15:42:11.458+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=81;_ThreadName=Thread-1;|The
>
> Admin Console application is loaded.|#]
> [#|2011-03-11T15:42:17.311+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=59;_ThreadName=Thread-1;|User
>
> [] from host localhost does not have administration access|#]
> [#|2011-03-11T15:42:20.823+0000|WARNING|oracle-glassfish3.1|org.apache.catalina.connector.Request|_ThreadID=22;_ThreadName=Thread-1;|PWC4011:
>
> Unable to set request character encoding to UTF-8 from context , because
> request parameters have already been read, or
> ServletRequest.getReader() has
> already been called|#]
> [#|2011-03-11T15:42:20.884+0000|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=33;_ThreadName=Thread-1;|User
>
> [] from host localhost does not have administration access|#]
> [#|2011-03-11T15:42:41.141+0000|INFO|oracle-glassfish3.1|com.sun.jersey.server.impl.application.WebApplicationImpl|_ThreadID=21;_ThreadName=Thread-1;|Initiating
>
> Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'|#]
> [#|2011-03-11T15:42:48.770+0000|INFO|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=21;_ThreadName=Thread-1;|Listening
>
> to REST requests at context: /management/domain|#]
> [#|2011-03-11T15:42:49.299+0000|INFO|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=24;_ThreadName=Thread-1;|Admin
>
> Console: Initializing Session Attributes...|#]
> [#|2011-03-11T15:42:50.807+0000|WARNING|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-1;|Cannot
>
> create update center Image for /opt/glassfish3; Update Center
> functionality
> will not be available in Admin Console|#]
> [#|2011-03-11T15:57:49.302+0000|WARNING|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=14;_ThreadName=Thread-1;|GRIZZLY0023:
>
> Interrupting idle Thread: admin-thread-pool-4848(6).|#]
> [#|2011-03-11T16:12:50.030+0000|WARNING|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=14;_ThreadName=Thread-1;|GRIZZLY0023:
>
> Interrupting idle Thread: admin-thread-pool-4848(9).|#]
> The above entry is the last line of the log file.
>
> Any clues as to where to go from here greatly appreciated!
>
> Bob
>
>

bob63
Offline
Joined: 2011-03-24
Points: 0

Anissa,
Thank you for replying!
I did specify a password when I created the domain and can get to the REST page at /management/admin.
Bob

rkonkimalla
Offline
Joined: 2011-03-21
Points: 0

I am exactly in the same situation. I have installed glassfish server open source edition 3.1 in solaris node and trying to open the admin console remotely. I have also set the password and could able to get to the REST page at /management/admin. I do not have any problems in accessing the admin console remotely when I have installed the server on windows node.
I have seen three people having this problem in the forum. Looks like this is a bug and I think we should report this bug. Now, I am planning to install 3.0.1 version instead as I am not sure how many more bugs will be there in 3.1

rkonkimalla
Offline
Joined: 2011-03-21
Points: 0

Looks like this is a bug and fortunately there is work around as given in the following link
http://java.net/jira/browse/GLASSFISH-13885
Start the server in the following way and everything works fine.
asadmin --host <glassfishinstalledhostname> --port 4848 start-domain

bob63
Offline
Joined: 2011-03-24
Points: 0

It looks like my server runs ok, but I'm just not able to run the admin console. Although I haven't tried it yet, I imagine I should be able to manage all of the elements through the command line. It would just be a little more cumbersome. I'm going to try setting up things up on a Linux server just to see what will happen. This may be something specific to Solaris and/or SPARC. I'll have to do some testing over the weekend and see what happens. I've spent a couple of days trying to figure out the admin console issue and I think my brain blue-screened a few hours ago.

fredmestre
Offline
Joined: 2008-10-21
Points: 0

It doesnt works for me...
I got the "user [] from host localhost doesnt have adminitration access" error...

farble1670
Offline
Joined: 2006-01-06
Points: 0

it'd be nice if someone could chime in. this is clearly a simple configuration issue but we can't find the magic incantation. i guess i need to add a user, or set a password, or something. can anyone help?

bob63
Offline
Joined: 2011-03-24
Points: 0

I've been able to successfully create a domain, start the domain, and sign into the domain without any problems. However, only on Linux (CentOS 5.4). On SPARC Solaris, it still seems to be a no-go (my fresh-install Sun v440). I upgraded two other domains from 3.01 (on a v480, and a T5120) and those are running correctly. I should try to create a new domain from scratch on one of those servers and see if I'm able to login to the admin console. I've tried the Oracle version, the Open Source version, and the Oracle '.sh' (graphical install) version. Everything installs just fine. I create a domain using the 'asadmin create-domain --adminport=4848 --savemasterpassword=true --savelogin=true domain' and that all goes successfully. Starting the domain is successful and no Java exceptions are thrown. The admin console gets all the way to the login page. Still no errors in the 'server.log'. After I enter the username and password, that's where the trail goes cold. I've used jconsole and jvisualvm to try to get a look at what's going on. After a brief period of activity after entering the username and password, all processor activity drops back to around zero. The glassfish process continues to run, but still no console.
As I mentioned, this one really has me perplexed!

bob63
Offline
Joined: 2011-03-24
Points: 0

Sucess !
On the Sun v440, I think I *may* have found the trick to get it to work. In the domain.xml file, I manually added the following JVM options:
<jvm-options>-Xmn1024m</jvm-options> (added this parameter)
<jvm-options>-Xms4096m</jvm-options> (added this parameter)
<jvm-options>-Xmx4096m</jvm-options> (updated this parameter)
<jvm-options>-server</jvm-options>
<jvm-options>-d64</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-XX:+UseParallelGC</jvm-options>
<jvm-options>-XX:+AggressiveOpts</jvm-options>
I removed : <jvm-options>-client</jvm-options>

I then started the server, went the the http://hostname.x.x:4848, signed in, and was able to get all the way to the admin console. Now, which line did the trick, I'm not 100% sure. Could have been the '-server' or the '-d64' line. I may try experimenting at some point, but I'm just glad to get the console working.

jclingan
Offline
Joined: 2003-06-12
Points: 0

Thanks for the feedback. This is a bug regardless. It would really help if you could narrow down the root cause if you can find the cycles.

Thanks again!

On Mar 22, 2011, at 7:51 AM, forums@java.net wrote:

> Sucess !
>
> On the Sun v440, I think I *may* have found the trick to get it to work.
> In the domain.xml file, I manually added the following JVM options:
>
> -Xmn1024m (added this parameter)
> -Xms4096m (added this parameter)
> -Xmx4096m (updated this parameter)
> -server
> -d64
> -XX:NewRatio=2
> -XX:+UseParallelGC
> -XX:+AggressiveOpts
>
> I removed : -client
> I then started the server, went the the http://hostname.x.x:4848, signed in,
> and was able to get all the way to the admin console. Now, which line did
> the trick, I'm not 100% sure. Could have been the '-server' or the '-d64'
> line. I may try experimenting at some point, but I'm just glad to get the
> console working.
>
>
> --
>
> [Message sent by forum member 'bob63']
>
> View Post: http://forums.java.net/node/780458
>
>

anilam
Offline
Joined: 2005-03-29
Points: 0

Reading all the replies, i am seeing:

bob63: create new domain with username/password. can't access console
if DAS is on SPARC Solaris, Linux works fine
rkonkimalla: same experience if DAS is on Solaris, Window works
fine. Solve the issue by starting the server specifying --host.
asadmin --host --port 4848 start-domain.
fredmestre: experience issue, but didn't specify which platform
farble1670: experience issue, but didn't specify which platform

All of you are seeing "user [] from host localhost doesnt have
adminitration access" in server log.

@bob63/fredmestre/farble1670, Can you access the console out-of-box ?
ie, without any password required.
Have you tried specifying the host name when starting up the server like
rkonkimalla did ?
Have you tried creating the domain without any password and see if that
works ? Just want to isolate the problem.

If there is any info about how that Solaris machine is configured, that
may help too.

thanks
Anissa.

On 3/17/11 8:34 PM, forums@java.net wrote:
> I've been able to successfully create a domain, start the domain, and
> sign
> into the domain without any problems. However, only on Linux (CentOS
> 5.4). On SPARC Solaris, it still seems to be a no-go (my
> fresh-install Sun
> v440).

bob63
Offline
Joined: 2011-03-24
Points: 0

Anissa,
I am seeing user [] from host localhost doesnt have adminitration access on both the Linux and Solaris machines. The Linux machine logs into the console with no problems, but the Solaris machine never gets to the console screen after entering credentials. I've tried it with/without passwords, with/without '--host' etc.
The Solaris machine is configured pretty generically. Java 1.6u24 is what I'm currently using on all platforms. Parameters umask=077, ulimit -s = 8192, max-shm-memory=8G, max-sem-nsems=4096. If there's anything that you're specifically looking for, let me know.

fredmestre
Offline
Joined: 2008-10-21
Points: 0

fredmestre: experience issue, but didn't specify which platform
SO: Debian 5 64bits
Java: 1.6.0_22