Win a copy of Emmy in the Key of Code this week in the General Computing 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
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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
 
rubbery bacon. crispy tiny ad:
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!