Spring + Hibernate + Tomcat Dependency problems

后端 未结 3 1802
夕颜
夕颜 2021-01-21 09:19

when I run tomcat and the war is deployed I get : NoClassDefFoundError : org/apache/commons/collections/map/LRUMap

 Invocation of init method fa         


        
相关标签:
3条回答
  • 2021-01-21 10:00

    I had this exception when I was with xdoclet on dependencies.

    If you are with this dependency, just exclude it.

    0 讨论(0)
  • 2021-01-21 10:08

    I have the same probleme, maybe it's too late to approve the answer but it's still benefitial for people who will have this problem in the futur. So I exclude commons-collections from net.sf.jasperreports, after that the tomcat runs perfectly whithout any problem.

    <dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports</artifactId>
        <version>4.1.1</version>
        <type>jar</type>
        <scope>compile</scope>
        <exclusions>
            <exclusion>
                <artifactId>commons-collections</artifactId>
                <groupId>commons-collections</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    
    0 讨论(0)
  • 2021-01-21 10:23

    Ok so I did put version 3.2.1 of commons-collections and the error disappeared. I unfortunately still don't know which library is depending on this version. Even mvn dependency:tree didn't help ...

    0 讨论(0)
提交回复
热议问题