Migration to Glassfish 2

I have a glassfish 1 live server. Since redeploying applications in glassfish 1 is very slow, I began considering migration to glassfish 2. I’ve just done that and below are steps I did:

  1. Run asupgrade.bat (I use Windows) located in ${AS_INSTALL}\bin.
    Screenshot of asupgrade
  2. Enter the source domain location.
  3. Enter the target domains location.
  4. Enter your credentials.
  5. Click Next.
  6. Done :)

It was easy steps for me. Just one caveat. The source directory must contains string domains. If it wasn’t, the upgrade wizard will throw a StringIndexOutOfBoundsException in DomainsProcessor.java. I found the cause after looking at the source. I think it should have displayed more developer :) friendly message.