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:
- Run asupgrade.bat (I use Windows) located in ${AS_INSTALL}\bin.

- Enter the source domain location.
- Enter the target domains location.
- Enter your credentials.
- Click Next.
- 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.