This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
URLConnection.getInputStream Exception when connecting to JRun Servlet
Posted by Franklin Perez on October 26, 2000 at 10:38 AM
I have a simple java application that opens a URLConnection to a servlet, which for testing purposes acts as a echo server. This combination works using JavaWebServer2.0, however, I'm trying to migrate to JRun over IIS. I have been successful at accessing the Servlet via a browser, but when my java application tries to open a URLConnection the following is returned:
Exception in thread "main" java.io.FileNotFoundException: http://localhost:8100/demo/servlet/EchoServlet at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:530) at TestApp.main(TestApp.java, Compiled Code)
Is this a bug or just a configuration issue? I am new to JRun and have run into a brick wall. I have tried configuring virtual paths and I have verified that the web-connector is valid. I've restarted the server several times, and nothing i do seems to help.
Thanks,
Franklin Perez
Replies:
|