users@glassfish.java.net

Re: building glassfish with 4.0 features

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Mon, 13 Feb 2012 08:39:37 -0600

It appears that your PATH doesn't include the current directory before
some other directory that has "asadmin" in it. Therefore, when you are
entering the "asadmin" command you are getting some other asadmin for
some other GlassFish install. Try using "./asadmin".

"type asadmin" will tell you what asadmin you are actually getting.

Tom