Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The hierarchy of type HomeController is inconsistent

 
VenkataPrasad Regula
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a controller class named HomeController which extends AbstractController. I am getting the message
The hierarchy of the type HomeController is inconsistent
. I faced the similar error a few days back when I was trying a controller which was extending SimpleFormController. Could someone kindly guide me what actually went wrong, what I am supposed to do. Thanks.
 
Preetesh Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my case I got this error while creating a Spring MVC Project. I missed to add related JAR files (spring-context-4.1.0.RELEASE.jar & spring-web-4.1.0.RELEASE.jar) in the build path.

Although other Spring JARs (Core, Beans, AOP & MVC) were already added but above mentioned JAR files were also required. Once I added other JARs, the error disappeared.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic