java String 转Json报错 java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim

这个问题就是缺少jar包依赖!!!


java.lang.NoClassDefFoundError: org/apache/commons/beanutils/DynaBean

缺少commons-beanutils-1.8.0.jar


java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap

缺少commons-collections.jar

 

java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
缺少commons-lang-2.4.jar

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

缺少commons-logging-1.1.1.jar

 

java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher
缺少ezmorph-1.0.4.jar

 

java.lang.NoClassDefFoundError: net/sf/json/JSONObject
缺少json-lib-2.3-jdk15.jar

以下为maven引入配置:

<dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
        </dependency>
        <dependency>
            <groupId>net.sf.ezmorph</groupId>
            <artifactId>ezmorph</artifactId>
            <version>1.0.6</version>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.2</version>
        </dependency>

        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.4</version>
            <classifier>jdk15</classifier>
        </dependency>

posted @ 2018-10-29 15:51  昊Zz  阅读(3967)  评论(0编辑  收藏  举报