• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URL mapping not triggering controller

 
Ranch Hand
Posts: 67
1
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am following along in the book Spring in Action trying to build the Spittr application. I created my configuration classes and home controller, but when I call localhost:8080/ I get a 404.

Project layout



SpittrWebAppInitializer.java



WebConfig.java



RootConfig.java



HomeController.java



web.xml
(I removed the config that eclipse put in here by default when making a new Spring Web MVC projectbecause it was complaining about multiple context listeners)


I have tried navigating to `http://localhost:8080/Spittr/`, `http://localhost:8080/`, and `http://localhost:8080`. All result in a 404. No exceptions show up in the Java console though, so it's like its not even registering the request.

This is a part of what the console prints when I run my application


What do I need to do to get my application running? Thanks!

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic