I have java ee6 web profile sdk & I am using eclipse ee. I installed Glassfish plugin for eclipse using Download additional server adapters in the New Serve
Eclipse doesn't have domain path setting for glassfish server. This error comes when domain path is not correct. Make sure when you run your application on eclipse give glassfish credentials user/password
Go to <Glassfish-install-directory>/glassfish/config
directory.
Edit asenv
and point to your JDK installation for set AS_JAVA=C:\Java\jdk
.
Now you should be able to run asadmin
.
Create a new domain using asadmin create-domain domain1
(inside bin directory).
Server setup in eclipse will now find your newly created domain.