SAXParserFactory spf = SAXParserFactory.newInstance();
           SAXParser sp = spf.newSAXParser();
           XMLReader xr = sp.getXMLReader();

           URL sourceUrl = new URL("http://localhost:8080/example.xml");
          
           xr.parse(new InputSource(sourceUrl.openStream()));


 로컬호스트에 xml을 넣고 XMLReader로 읽어오려는데 오류가 발생하네요.
 
에러내용은  >>>>      java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused

톰켓에 설정을 해줘야하는건가요??