This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet not found error" Watch "servlet not found error" New topic
Author

servlet not found error

kashyap parekh
Greenhorn

Joined: Dec 26, 2000
Posts: 5
hi
i am a beginner in servlets .
i am facing a problem that when i type
http://localhost:8080/servlet/myservlet1 in the browser
i donot get the output

the servlet class file is in JavaWebServer2.0\servlet directory

though the examples given in the JavaWebServer2.0\servlet\examples run fine
and also the welcome runs fine with
http://localhost:8080/
kashyap parekh
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Is your servlet definied to be in a package in the code?
If so you would need to specify the fully qualified name (including package) within your URL.
I would suggest that you look at Tomcat (jakarta.apache.org/tomcat) for a more up to date web container however.
Cheers
Sam


<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
kashyap parekh
Greenhorn

Joined: Dec 26, 2000
Posts: 5
the servlet i am trying out is a helloworld servlet
there is not compilation error but web i try to call it using the Java Web Server 2.0 the error is 404 - servlet not found error.
please also tell me from where can i get the tomcat server
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
You can download the tomcat servlet engin from http://jakarta.apache.org


Sharing is learning
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Hi
See that ur servlet class is public and try again..
cheers
kashyap parekh
Greenhorn

Joined: Dec 26, 2000
Posts: 5
the class is a public class coz
i copied the java examples given alng with the server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet not found error