Sun GlassFish Enterprise Server v2.1.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 Serverv2.1.1. 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 Serverv2.1.1 because the instance directory of JavaDB in Enterprise Serverv2.1.1 has changed.

To solve this problem, perform the following steps:

  1. After upgrade, start Enterprise Serverv2.1.1.

  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.