Eclipse plugin cannot communicate with GlassFish server, status: CREDENTIAL_ERROR

I can run Glassfish through the command line. However, when I try to start the server through Eclipse, I encounter the following error:

Eclipse plugin cannot communicate with GlassFish server, status: CREDENTIAL_ERROR

I checked my credentials ( admin / adminadmin ) and they are correct (I can enter the admin console on port 4848 with the same user / password). Here is my system info:

  • OS: OS X 10.6.7
  • Eclipse: Indigo Service Release 1
  • Glassfish V3.0.1
  • Glassfish Plugin: GlassFish Server Open Source Edition 3 (Java EE 6)
  • GlassFish user / pass: admin / adminadmin

Please let me know if there is a solution to the problem.

+6
source share
9 answers

Here's what worked for me - after some Google search, I saw a message in which the error message was misleading, and it could be a port conflict. In my Eclipse, I have a proxy record that uses port 8080 (same as GF). So I replaced the port with 9090 in domain.xml and GF had no problems. My system is Win7x64, Eclipse 3.7.1, GF 3.1.1

+13
source

In the Servers view, right-click on the Glassfish server and select Open

In the "Application Server" section, make sure that "Use anonymous connection for administrator commands" is NOT disabled.


Applications server

You can edit some runtime properties for the application server (GlassFish or Sun)

Domain Directory

Admin name

Admin password

Admin Server Port Number

_ Use an anonymous connection for admin commands.

^


If checked, the eclipse plugin does not use your credentials (admin / adminadmin).

+12
source

kill the java process from the task manager if it does not display the java process and then reboots your computer -> it works for me

+11
source

As mentioned several times, a port conflict will lead to this. I found that I can’t edit the port information in Eclipse, I had to edit the domain.xml file. I searched for 8080, which led me straight to the tag. Here I changed the form of http-listener-1 from 8080 to 8000.

Then I had to remove the GlassFish server from the Servers tab in eclipse and add it back again. (it was many times faster than restarting Eclipse). Now the new port is identified, and I was able to start the GlassFish server.

Note. I am using Oracle Enterprise Pack for Eclipse and not a generic eclipse plugin.

+3
source

In my case, I made "ps -ef | grep java" and realized that a process using glass fish was already running. I think it started as part of the installation. I killed him and started the server again from Eclipse and it worked like a charm

+1
source

There is another service on the 8080 (or the definition of your port in the GF settings). For me, stop this service and try starting GF using Eclipse. Check if Tomcat or other applications are working.

+1
source

Check out the settings for web scanning of Anti-Virus. I had an entry for port 8080 to scan for http traffic. I deleted it, and the server could be started without problems from Eclipse.

Relationship Chris

0
source

This is called for me by the AVG network scanner service. This service occupies port 8080!

0
source

I had a problem. Fixed by changing permissions on the domain folder for recording.

0
source

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


All Articles