Oracle GlassFish Server 3.0.1 Upgrade Guide

Applications That Use Java DB

The directory location of Java DB in GlassFish Server 3.0.1 has changed from its location in previous installations. Suppose that you have deployed applications that use Java DB databases in your previous server installation, and you upgrade your existing installation to GlassFish Server 3.0.1. If you run the asadmin start-database command and successfully start Java DB, you could run into problems while trying to run applications that were deployed on your previous server installation.

To solve this problem, you can copy the databases directory from your previous installation to as-install/databases. Make sure the database is not running when you do this.

    Alternatively, you can perform these steps:

  1. After upgrade, start GlassFish Server 3.0.1.

  2. Use the asadmin start-database command with the --dbhome option pointing to the databases directory in the older version of Java DB. For example:


    asadmin start-database --dbhome c:\glassfish\databases
    
  3. Deploy the migrated applications.