Amit,
Rather than Red Hat AS/ES 4.0, I would recommend using CentOS 4.4, which is essentially a free version of Red Hat AS/ES 4.0 Update 4. I've used this in several installations with great success. This way, you also won't have to worry about the library and glibc issues you'll encounter while trying to get everything working on RH 9.0.
www.centos.org - The Community ENTerprise Operating System
Hope this helps!
--Chris