A directory containing an unpackaged module is sometimes called an exploded directory. To deploy a directory instead of an EAR or WAR, you can do one of the following:
Use the Administration Console as described in The Administration Console Deployment Pages and enter a path to an exploded directory instead of a path to an archive file.
Use the asadmin deploy command and specify a path to an exploded directory instead of a path to an archive file. See the Sun GlassFish Enterprise Server v3 Prelude Reference Manual.
The contents of the directory must match the contents of a corresponding Java EE archive file. For example, if you deploy a Web application from a directory, the contents of the directory must be the same as a corresponding WAR file. In addition, the directories holding the modules must be named with _jar and _war suffixes. For information about the required directory contents, see the appropriate specifications.
The directory must be accessible to the machine on which the Enterprise Server runs.
You can change the deployment descriptor files directly in the exploded directory. If your environment is configured to use dynamic reloading, you can also dynamically reload modules deployed from the directory. For more information, see Dynamic Reloading.
On Windows, if you are deploying a directory on a mapped drive, you must be running the Enterprise Server as the same user to which the mapped drive is assigned, or the Enterprise Server won’t see the directory.