AbstractAnnotationConfigDispatcherServletInitializer is missing from my Maven build

For whatever reason, maven did not build the

AbstractAnnotationConfigDispatcherServletInitializer 

class. Bellow are the relevant parts of my pom.xml that contains necessary spring dependencies:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${org.springframework-version}</version>
        <exclusions>
            <!-- Exclude Commons Logging in favor of SLF4j -->
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
             </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework-version}</version>
    </dependency>

The build as shown in eclipse for the relevant directory looks like:

It should be built under the package org.springframework.web.servlet.support. Am I missing something? How can rebuild maven dependencies to get this class?

Answers


The convenience subclasses for WebAplicationInitializers were added in Spring 3.2.x so upgrade so one of the 3.2 version. (Currently 3.2.5.RELEASE is the latest).


Need Your Help

Hierarchical Enums in C++

c++ templates design-patterns enums cross-platform

I'm working on a message parser/generator subsystem. I'm creating an auto-generator that uses a database that contains all of the information about this protocol, including enum lists, to generate ...

Table View updates faster when scrolled

ios objective-c uitableview

I have a table view in my view controller, and when I hit a button, it should search for data online and fill in the table view cells. For some reason when I run the following code, it takes ~10 se...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.