Common error found in java servlets
Posted on 1999-07-18
I am using simple DOS editor & classpath i have given it as c:\javawebserver1.1.3\lib\jws.jar
& path as c:\javawebserver1.1.3\bin.
I had registered my servlet also in servlet.properties as
But today morning when i did run that link servlet i got the output without making any changes.
And i wrote new servlet fooservlet.java from where i am calling method defined in barservlet.java.
In barservlet.java im implementing the interface BarInterface.This BarInterface has been defined
as public & stored as BarInterface.java in a separate file where i have defined bar() method which is
defined in barservlet.java.Every thing is compiled normally.But when I did run the servlet again
following error is occured.
Not Found (404)
The file that you requested could not be found on this server. If you provided the URL, please check
to ensure that it is correct. If you followed a hypermedia link, please notify the administrator of that
server of this error.
I did shut down the system & restarted again.Then again i did run fooservlet .
Now it is giving following error
Document contains no data Try again later or contact the server administrator later .
I dont know what the hell is going on.I wonder Once it gives 404 Not Found & some other time
it gives document contains no data some other time i am getting the output without making
I am unable to figure out what is the root of the problem.Coz everything is fine,classpath,path,in
servlet.properties file i have registered both fooservlet.java & barservlet.java as follows
Please help me in this regard