If you are planning to migrate to a higher version then JBoss AS 5 isn't the right version, IMO. The latest released version is WildFly 8 Downloads · WildFly (JBoss AS has been renamed to WildFly). That's a better version to upgrade to. This might help https://docs.jboss.org/author/display/WFLY8/How+do+I+migrate+my+application+from+AS5+or+AS6+to+WildFly
Thanks jaikiran, but we have a necessity to upgrade only to JBoss5. We are running ATG10.2 which supports only JBoss5.
I think there is no migration document for AS4=>AS5.
I would compare what you change in AS4 against the provided config. In AS5 it might be a different XML but you may find it by ls and grep.
If you have specific questions if you have problems you can ask here and you might get help.