Heads up! These docs are for Portofino 3, which is a legacy product. Check out Portofino 4!

We will assume that GlassFish V2 is installed in GLASSFISH_HOME and that a "domain1" domain is configured and running on your local machine on the standard port 8080.

Before you start you should choose the context name, i.e., the relative URL of your application. E.g., if the context name you choose is "myapp" then the application will be accessible at http://localhost:8080/myapp/ 

Using the admin console

Open a browser and connect to http://localhost:4848/. Provide the login/password of the GlassFish admin user. The default ones are admin/adminadmin. The admin console will open. From the menu on the left, open the "Applications" folder and select "Web Applications".


Click "Deploy...". A "Deploy Enterprise Applications/Modules" page will appear. Set the application type to "Web Application (.war)". In the section "Packaged file to be uploaded to the server" click on "Browse..." and select the portofino-war-3.1.war file on your machine. Change the value of "Application Name" and "Context Root" to myapp.

Click "Ok". Verify from the "Web Applications" page that your application appears in the list.

The application is now ready and available at the specified URL.

Using the asadmin command

Asadmin is a shell command included in the GlassFish distribution to perform a number of administrative tasks. To deploy Portofino:

$ ./asadmin deploy --name myapp \
  --contextroot myapp /absolute/path/to/portofino-war-3.1.war

The application will be deployed and made available at the specified URL.

Previous: Deploying on JBoss Application Server 

Next: Deploying on OC4J