i'm a bit late to the party, but if you having the same problem as the above try :
1. KISS (Keep It Simple and Stupid)
server.xml :
<Host name="host-localhost">
<Alias>localhost</Alias>
</Host>
jboss-web.xml :
<Virtual-host>host-localhost</Virtual-host>
C:\WINDOWS\system32\drivers\etc\hosts :
127.0.0.1 localhost
2. If you what to do your own one to make your programming not boring and to get the feel of what it will look like live :
server.xml :
<Host name="host-bhavesh">
<Alias>bhavesh</Alias>
</Host>
jboss-web.xml :
<Virtual-host>host-bhavesh</Virtual-host>
C:\WINDOWS\system32\drivers\etc\hosts :
127.0.0.1 localhost
127.0.0.1 bhavesh
i haven't checked but i don't think .com at the end would work as to my current understanding if it was added then
bhavesh would be checked on the domain registry of .com and not on your local server.. how ever i could be wrong.
the naming is important, we all make the mistake, so double check
hope this helps