This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring SEVERE: Allocate exception for servlet  RSS feed

 
Richard Carrot
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have been learning spring from a tutorial and it has all been going ok up until a short while ago. The application was running this morning and then I followed the tutorial a little more and now the whole application wont run. I'm getting the following error:



I removed all this mornings tutorial parts and that has not had an effect. I would have thought that retracing my steps and removing what was added would have made the application run again but no luck.

I'm working with Tomcat8.4, eclipse, building a maven project dependencies pom.xml as follows:



I have commented out the hibernate validator as this was the part of the tutorial where I had got to. Any ideas would be greatly appreciated?
 
Tim Nachreiner
Ranch Hand
Posts: 47
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your web.xml file.  Also, post your .xml file that configures your DispatcherServlet.  That .xml file should be somewhere in your WEB-INF folder, and contain something like this:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!