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 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
Author

Why the 404?

Dave Merson
Greenhorn

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

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




Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

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]
 
GeeCON Prague 2014
 
subject: Why the 404?