Most GlassFish users are application developers who are primarily interested in using it as a binary as opposed to work with its source-code. This guide is intended to get Java EE developers up and running by providing an example application and instructions about deploying and running on GlassFish.
Here are some simple steps for
deploying applications on GlassFish. The application chosen is a
sample of the new features in the Serlvet spec. GlassFish is an
implementation of the Java EE 5 specifications and has implemented the
features in JSR 154 today. You can also deploy your
favorite J2EE 1.4 based application as Java EE is backward compatible. Let
us know how your application runs on GlassFish and if you run into
We recommend that you use a promoted build since those have passed at a set of Quicklook, CTS and functional tests. Follow
the instructions on the download page to install and configure the
server. To start the server on the command line type
The default administration values are as follows:
Download examplesFor your convience the servlet examples are provided as a war file. If you would like to build them yourself you can find the code in the GlassFish workspace. Simply build the servlet-api module and the examples will be built also. These examples were selected because they demonstrate the latest features in JSR 154, Servlet Specification. There is a pointer to the source code which is available in the GlassFish repository and the jakarta project on Apache.
Deploy the example application
For now the easiest way to deploy on GlassFish is to use the autodeploy feature. We are working on plugins for both NetBeans and Eclipse.
You can simply copy the war file in the following directory <glassfish-install>/domains/domain1/autodeploy and the
server will automatically deploy the application. There is no need to restarted the server.