Skip to content

NoClassDefFoundError when running Tests or Tomcat targets #28

@hoserdude

Description

@hoserdude

Ran the tomcat7 target and it crashed with the following stack. Tried running a mvn clean install and the tests failed with the same NoClassDefFoundError. I thought that I may have a bad mix of Spring components in my repo so I blew it away and started fresh, same deal.

INFO  ContextLoader - Root WebApplicationContext: initialization started
INFO  XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Aug 09 08:41:44 PDT 2013]; root of context hierarchy
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/business-config.xml]
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/datasource-config.xml]
INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/tools-config.xml]
ERROR ContextLoader - Context initialization failed
java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.6.0_51]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2475) ~[na:1.6.0_51]
at java.lang.Class.getDeclaredMethods(Class.java:1818) ~[na:1.6.0_51]
at org.springframework.core.type.StandardAnnotationMetadata.hasAnnotatedMethods(StandardAnnotationMetadata.java:159) ~[spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions