For EAR and WAR files, the deployment folder is:
$GLASSFISH_HOME/glassfish/domains/[domain_name]/autodeploy
Usually domain_name is domain1, unless you've changed it in the installation process.
For JAR files, the folder is:
$GLASSFISH_HOME/glassfish/lib