File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Why the 404? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why the 404?" Watch "Why the 404?" New topic

Why the 404?

Dave Merson

Joined: Nov 01, 2013
Posts: 2
Jelle Klap wrote:Read this, specifically the section on "Importing an Entire Package".
Then have a look at the import statements at the very top of your Servlet's .java file and see if you can spot the odd one out.

Oh, and by the way, welcome to JavaRanch!

Thanks for the welcome and for the helpful post.

I see that I only specified the jar and not the class types within in (so solved by using .*)

Can I perhaps make myself a bother to you one last time? It's on the same code so I'd hate to post another topic and clog up the forum. I'm attempting to run the page locally but for some reason it's not finding the files (404 not found)

//directory structure

WEB-INF -> web.xml
classes -> HelloWorld.class

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

See the ServletsFaq for a list of things to check.

One such item you will find is that servlet classes must be in a package other than the default.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Why the 404?
It's not a secret anymore!