Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring - Build path is incomplete. Cannot find class file for org/springframework/beans/factory/Aware in dispatcher-servlet.xml

Tags:

java

spring

I installed Spring Tool Suite and am now using it for a little sample project. However I keep having an error in my dispatcher-servlet.xml file:

Build path is incomplete. Cannot find class file for org/springframework/beans/factory/Aware

This error is highlighted here:

<bean
    **class="org.springframework.web.servlet.view.InternalResourceViewResolver">**
    <property name="prefix">
        <value>/WEB-INF/pages/</value>
    </property>
    <property name="suffix">
        <value>.jsp</value>
    </property>
</bean>

Any thought?

like image 416
dukable Avatar asked Oct 24 '12 22:10

dukable


2 Answers

I think you may have some old jar files in your configuration. Try using the most current spring libraries.

like image 72
Kevin Bowersox Avatar answered Nov 20 '22 18:11

Kevin Bowersox


I found my self in exactly the same case when I used incompatible maven spring-dependencies i.e check Spring Security Site on the right side where it explains what spring version should be used with what spring security version.

like image 34
George Papatheodorou Avatar answered Nov 20 '22 19:11

George Papatheodorou