Glassfish - User [] from host 127.0.0.1 does not have administrative access

Working with Glassfish, everything was in order, then I changed the password (the "Anonymous connection ..." checkbox was checked) and set the password.

Now a set of passwords, the “Anonymous Connection” checkbox is not selected, the application is still working fine, but I spam in Glassfish logs with a huge amount

User [] from host 127.0.0.1 does not have administration access User [] from host 127.0.0.1 does not have administration access User [] from host 127.0.0.1 does not have administration access ... 

and I get one line of this log every 2 seconds.

It looks like a service, thread or something else, trying to figure out my server from saltwater fish, but I can not find the reason for this.

Any ideas?

+4
source share
7 answers

Try starting the server without specifying a username and password. T0 do this in Eclipse, you can go to the server properties, and in Glassfish - an empty username and password field.

+5
source

I thought I solved this problem at some point, but it seems to have recovered again. It does not seem to affect any other instance other than my Windows desktop. This does not prevent me from performing any functions (start, stop, deployment, administrator console, etc. Everything works).

I found a way to disable the message as it constantly populated my logs. If you add the following entry to the logging.properties configuration file, it will disable these messages.

javax.enterprise.system.tools.admin.level = OFF

In the end, I will come back and find out why the error occurred again, but I really have a more important job that is worth doing right now, besides investigating this unpleasant problem.

+2
source

This happened when the default admin port 4848 already occupied by some other application on your computer, so I got rid of this problem by changing the listener admin port to another port (in my case 5353 ) This may solve your problem.

 C:\glassfish3\glassfish\domains\domain1\config\domain.xml network-listener port="5353" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool" 

I solved the same problem this way

Also try doing eclipse > server >right click > properties > glassfish > put username pass as blank

+1
source

WORKAROUND: edit C: \ glassfish3 \ glassfish \ domains \ domain1 \ config \ logging.properties and change

 #javax.enterprise.system.tools.admin.level=INFO #This is a workaround so we do not see #User [] from host 127.0.0.1 does not have administration access ` javax.enterprise.system.tools.admin.level=WARNING 
0
source

Remove and reload the glass fish again, I only found this solution

0
source

In Netbeans, go to

 Tools->Servers->user 

and leave the password and password blank and start your server. Do it and his work is wonderful.

0
source

In case anyone gets this problem again, I decided to delete another configuration in my Eclipse.

The Glassfish 4.0 configuration that I create affected the Glassfish 3.1 configuration that I had before.

Unfortunately, I do not know the cause of this problem.

[] 's

0
source

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


All Articles