Hi,I am trying to run a servlet directly from an application (or an Applet ifyou want). Nothing could be more simple I thought, but I always get aFileNotFoundException. However it does seem to work whenever I try to usethis address in my webbroser (I get the proper output of the servlet), andalso it seems to work when I try to connect an outside server serving aservlet. I found many pointers to this problem out on the web, but none witha solution for it (there are even references on the Java Bug Parade).If this does not work, then this could mean a serious problem for whoeverwants to make a B2B integration solution, as this is mostly the work heneeds to do.// case 1:URL url = new URL("http","127.0.0.1",80,"/asn/servlet/SnoopServlet");// case 2:// URL url = newURL("http","www.somerealserveroutthere.com",80,"/asn/servlet/SnoopServlet");HttpURLConnection http = (HttpURLConnection)url.openConnection();http.setDoInput(true);http.setDoOutput(true);http.setUseCaches(false);http.setRequestProperty("Content-Type", "text/plain");PrintWriter writer = new PrintWriter(http.getOutputStream());writer.println("Do Some Output");writer.flush();writer.close();String inputLine;// Gives FileNotFoundException (except case 2):BufferedReader in = new BufferedReader(newInputStreamReader(http.getInputStream()));while ((inputLine = in.readLine()) != null)System.out.println(inputLine);in.close();//Also Would give FileNotFoundException if previous commented out:int ret = http.getResponseCode();if (ret != HttpURLConnection.HTTP_OK) {System.err.println("Could Not Post ASN's");}http.disconnect();