Sun GlassFish Enterprise Server 2.1 Upgrade Guide

Applications that Use JavaDB

You have deployed applications that use JavaDB databases in Application Server 8.x. You upgrade your existing installation toEnterprise Server. You run the asadmin start-database command and successfully start JavaDB. In this scenario, you could run into problems while trying to run these applications (that were deployed in Application Server 8.x) in Enterprise Server because the instance directory of JavaDB in Enterprise Server has changed.

To solve this problem, perform the following steps:

  1. After upgrade, start Enterprise Server.

  2. Use the asadmin start-database command with --dbhome option pointing to older (Application Server 8.x) version of JavaDB. Example asadmin start-database --dbhome /home/johnsmith/appserver8.2/databases

  3. Deploy the migrated applications.