Define the proxy for ant:
To do that you can use define ANT_OPTS
export ANT_OPTS="-Dhttp.proxyHost=proxy -Dhttp.proxyPort=81"
should work fro you after replacing the proxy settings of course.
By the way if you just start, you should use 2.4.1-SP1, or 2.6-Beta1 not 2.4.0
Thanks a lot for your reply. I have one more query when I run my server I get a javax.naming.NameAlreadyBoundException although my portal runs fine. Any clues as to why is this.
I know it might be elementary but so is my knowledge of jboss :)