Sun GlassFish Enterprise Server v3 Upgrade Guide

Applications That Use Java DB

The directory location of Java DB in Enterprise Server v3 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 Enterprise Server v3. 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 Enterprise Server v3.

  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.