The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 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:

I need the same

Posted by Gouri Barve on November 20, 2001 at 4:03 PM

Hi!,

I need to call up a servelt at certain URL from an apllet/application from pc.How u have done that.i am using tomkat.

please send me the code if u have or URL

thanks
gouri

> 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:

Sponsored Links



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