File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes 404 error. Can't find resource? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "404 error. Can Watch "404 error. Can New topic
Author

404 error. Can't find resource?

Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40
I'm using Tomcat 5. Java SDK 1.4.2

I have a Query input html form and a processing servlet for the form.



When I hit Enter, I get a 404 error saying that "/jdbc/servlet/coreservlets.NorthwindServlet" is not found. I've already included in my web.xml of this path.

What might I have missed?
[ September 22, 2004: Message edited by: Parka Teoh ]

Do you have a parka?<br /> <br /><a href="http://sg.geocities.com/inschooool" target="_blank" rel="nofollow">Visit my homepage</a> | <a href="http://parka.deviantart.com/" target="_blank" rel="nofollow">Parka Deviantart gallery</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

What this has to do with JDBC is beyond me so I'm shuffling this along to the Servlets forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Parka,

Did u try shutting your server down and restarting it?

And also ensure that you .class file is placed in the directory towhich u r refering.

Cheers,
Swamy.
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi,

Did you try these,

1. Is there any empty service method?
2. Try packaging ur servlet.

Cheers,
Swamy
Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40
The service method is not empty. And I've put the servlet in the correct package in the correct class.

I've also repackaged the servlet. But still doesn't work.

I got the code from a textbook's CD, so can't think of what other things that could go wrong.

Here's the code.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: 404 error. Can't find resource?
 
Similar Threads
getting 404 error.. this is not struts application
Servlet URL Pattern problem
How do i correct this error
Problem occuring in calling servlet
Problem seeing my servlet from JSP