This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60785

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Why the 404?
Similar Threads
starting two servlets in load on startup
error in servlet due to reasons unknown
Tomcat Set
Tapestry and Tomcat
Not able to display starting jsp page index.jsp