java.lang.NoClassDefFoundError

image.png

image.png

image.png用的包,这是什么问题呢?不能这么用吗

image.png也添加上,tomcat还是无法启动,

java.lang.IncompatibleClassChangeError: Implementing class

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3148)

        at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1388)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1876)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1750)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:264)

        at com.alibaba.druid.util.Utils.loadClass(Utils.java:222)

        at com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker.<init>(MySqlValidConnectionChecker.java:48)

        at com.alibaba.druid.pool.DruidDataSource.initValidConnectionChecker(DruidDataSource.java:1009)

        at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:708)

        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1060)

        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1056)

        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:104)

        at com.jfinal.plugin.activerecord.TableBuilder.build(TableBuilder.java:43)

        at com.jfinal.plugin.activerecord.ActiveRecordPlugin.start(ActiveRecordPlugin.java:226)

        at com.net.hzgeneral.mvp.ActiveRecordDetection.startupActiveRecord(ActiveRecordDetection.java:52)

        at com.net.hzgeneral.mvp.ActiveRecordDetection.contextInitialized(ActiveRecordDetection.java:37)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)



评论区

鼻涕刘o0

2019-06-05 11:15

少这个。

com.alibaba
druid
1.0.29

翌年

2019-06-05 11:24

@鼻涕刘o0 用这个1.0.29的包的话,activerecord-4.1.jar这个包要删掉吗?

热门反馈

扫码入社