Could not start GlassFish server 4.1.1 : administrator port is occupied by exception

1k Views Asked by At

I've CentOS 6.4 as server and client in VMs. I installed GlassFish server successfully in server. Now I want to connect NetBeans 8.2 client to GlassFish server. I found this error :-

could not start glassfish server 4.1.1 : administrator port is occupied by exception while processing command: org.glassfigh.internal.api.RemoteAdminAccessException

After Googling, I removed the server from the IDE and tried to add server again. This time I entered /usr/local/glassfish-4.1.1 at the server location but I am confused with local domain and remote domain. If I want to connect with GlassFish server ( on a CentOS server ) how to do that?

1

There are 1 best solutions below

0
rahul On

i did like this :-

./asadmin change-admin-password
./asadmin enable-secure-admin
./asadmin stop-domain
./asadmin start-domain

but it has no effect