Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why the 404?

 
Dave Merson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic