Ben
Ben

Reputation: 62384

java.lang.ClassNotFoundException: org.springframework.web.context.support.AnnotationConfigApplicationContext

org.springframework.spring-webmvc includes spring-context so I'm not sure why I'm not seeing org.springframework.web.context.support.AnnotationConfigApplicationContext in may application.

What am I missing?

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework-version}</version>
        <exclusions>
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

Upvotes: 0

Views: 1269

Answers (1)

Kevin Bowersox
Kevin Bowersox

Reputation: 94459

Make sure your maven dependencies are included in the deployment assembly. See: servlet packages not importing after converting project to maven project in eclipse

Upvotes: 2

Related Questions