Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Common error found in java servlets

Posted on 1999-07-18
Medium Priority
Last Modified: 2013-11-24
Hi ,
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 as

But today morning when i did run that link servlet i got the output without making any changes.
And i wrote new servlet from where i am calling method defined in
In im implementing the interface BarInterface.This BarInterface has been defined
as public & stored as in a separate file where i have defined bar() method which is
defined in 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
any changes!!!.

I am unable  to figure out what is the root of the problem.Coz everything is fine,classpath,path,in file i have registered both & as follows

Please help me in this regard
Question by:pointi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 16

Expert Comment

ID: 1246389
what is your 'servlet runner' enviroment ?
probably you haven't 'register' this servlet...
or not in classpath ...
or does not extend any servlet class ...

check your 'servlet runner' logs if you can.

Expert Comment

ID: 1246390
To elaborate on what heyhey said:
Different servers have different ways of "registering" servlets.
For servletrunner you need to register it with a file called
You would put something like this in it:


Author Comment

ID: 1246391
Edited text of question.
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!


Author Comment

ID: 1246392
Edited text of question.

Author Comment

ID: 1246393
I am using javawebserver1.1.3 & i also registered servlet in as u said.Even then it was giving  404 Not FOund Error.Now it is working fine ,but facing the same kind of problem in new servlet!!!!!!
LVL 16

Expert Comment

ID: 1246394
browser caching ?
LVL 16

Expert Comment

ID: 1246395
or better - restart the server ?

Accepted Solution

Veena85 earned 160 total points
ID: 1246396
well restarting the server didn't work out

Featured Post

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question