Janice,
I have absolutely no JBOSS or Java Server experience but I do know that if you have the machines ip address allowed in the crossdomain.xml than you have to be using the machines ip address in the url for the map service as will in your app. You can not mix and match IP, machine name, and/or fully qualified machine name. They all have to be the same.