0

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?

kenlukas
  • 3,616
  • 9
  • 25
  • 36
rahul
  • 67
  • 4
  • 11
  • is netbenas runing on the same server as glassfish? if so then it is a local domain. – Dinnerspy Jul 16 '19 at 16:14
  • ok but how to connect client java netbeans to remote glassfish server – rahul Jul 17 '19 at 14:39
  • you click the remote switch and put the server ip or hostname with the port glassfish is running on. Along with the user info for logining as a admin. Make sure you glassfish server is enabled for remote admin access. – Dinnerspy Jul 17 '19 at 14:41
  • i did as you said :- right click on servers -> add server -> glassfish server -> install location : /usr/local/glassfish-4.1.1, clicked on remote location -> next -> domain : doamin1, host: serverora11gr2.db.net, DAS port : 4848, http Port : 8080, user name : admin, password : passwd -> finish but after right click in glassfish in service pane -> there is start, stop restart are inactive. what to do next. – rahul Jul 18 '19 at 17:13
  • is you server enabled for remote admin? – Dinnerspy Jul 19 '19 at 03:00

1 Answers1

0

i did like this :-

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

but it has no effect

rahul
  • 67
  • 4
  • 11