• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

URL mapping not triggering controller

 
Ranch Hand
Posts: 67
1
Spring Java Linux
  • Mark post as helpful
  • send pies
  • 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!

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!