This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Machine Learning with R: Expert techniques for predictive modeling and have Brett Lantz on-line!
See this thread for details.
Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Spring MVC Simple Project. Where am I going wrong ?

 
Ranch Hand
Posts: 46
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get some version of this issue pretty much every time I create an App whether I use Spring or Simple Web Apps

I am getting a 404 on the web page and this error and I cant tell why :

Sep 26, 2019 5:40:31 P.M. org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Sep 26, 2019 5:40:31 P.M. org.apache.catalina.startup.Catalina start
INFO: Server startup in 3015 ms
Sep 26, 2019 5:40:52 P.M. org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/Spring_Udemy_01_-_SpringMVC/] in DispatcherServlet with name 'offers'
Sep 26, 2019 5:41:17 P.M. org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/Spring_Udemy_01_-_SpringMVC/] in DispatcherServlet with name 'offers'


Note : The Index.jsp page loads fine when I pull it out of the folder to the root folder as expected. But I want the home.jsp within the 'jsps' folder to be the page shown when starting the app.

I cant see any configuration issues :


 
Ranch Hand
Posts: 87
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not a good idea to make your Bean ID with spaces in it: jsp view resolver.   Try making it one word: view-resolver or viewresolver.
 
Kevin Mckeon
Ranch Hand
Posts: 46
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Nachreiner wrote:Probably not a good idea to make your Bean ID with spaces in it: jsp view resolver.   Try making it one word: view-resolver or viewresolver.



True but my own stupidity was the  real problem here

was spelt wrong so it wasnt picking up the right class to when scanning for annotations

also a typo in means it was searching for a folder that doesnt exist.

Need to be more careful
 
Beware the other head of science - it bites! Nibble on this message:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!