there was a typo in the checked in files for the 'public-id'
the correct dtd specification for any of user created xml files should be as
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application
JBoss will try to resolve the public-id ("Sun Microsys...") in it's
org.jboss.deploymen.JBossEntityResolver class and since we had a typo it
couldn't find it and that is why it was going to the internet
("http://java.sun.com"), otherwise it loads the dtd file from jboss.jar which
is in the classpath.