Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR

Tags:

glassfish-3

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

The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR

I have checked my login credentials (admin/adminadmin) and they are correct (I'm able to login into the admin console on port 4848 with the same user/pass). 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.

like image 664
user999280 Avatar asked Oct 17 '11 13:10

user999280


People also ask

Can I use GlassFish in eclipse?

Installing Glassfish toolsOpen Eclipse Marketplace from Help-> Eclipse Marketplace menu. Type Glassfish in the search box to filter Glassfish plugins. In the search result, find Glassfish tools , click the Install button to install it. After it is installed, restart Eclipse IDE to apply the plugin.


2 Answers

Here is what worked for me - after some googling I saw a post saying the error message is misleading and it might be a port conflict. In my Eclipse I have a proxy server entry which uses port 8080 (same as GF). So I changed port to 9090 in domain.xml and GF started no problem. My system is Win7x64, Eclipse 3.7.1, GF 3.1.1

like image 176
rovski Avatar answered Oct 26 '22 09:10

rovski


In the "Servers" view, right-click on the glassfish server and choose "Open"

Within the section "Application Server", ensure that "Use Anonymous Connection for Administrator Commands" is NOT checked off.


Application Server

You can edit some runtime properties fro the Application Server(GlassFish or Sun)

Domain Directory

Admin Name

Admin Password

Admin Server Port Number

_ Use Anonumous Connection for admin Commands.

^


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

like image 23
masaya Avatar answered Oct 26 '22 10:10

masaya