The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
May 2000

Advertisement

Advertisement

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 FileNotFound exception

Posted by ratna on April 11, 2001 at 2:45 PM

Hi,
I am trying to connect to servlet using Tomcat server.
Code:
java.net.URL url = new java.net.URL("http://localhost:8080/servlet/ObjectEchoServlet");

java.net.URLConnection con = url.openConnection();
ObjectEchoServlet is in jakarta/webapps/examples/web-inf/classes

I am getting FileNotFound exception.
Please help.
ratna



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us