I am using the code below to invoke a servlet from my Java class :
URL url = new URL( "http://localhost:7001/Socket-war/Servlet" );
new BufferedReader(new InputStreamReader(url.openStream()));
Getting an Exception:
java.io.FileNotFoundException: Response: '404: Not Found' for url: 'http://localhost:7001/Socket-war/Servlet'
Everything is fine; I have used it before as well in my other Program; but now raising exception...
Somebody tell me WHY ??? Any advice or suggestion would be highly appreciable.
Thank you!!!