首页

类加载过程报"java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/AjaxController"异常

标签:NoClassDefFoundError,htmlunit,AjaxController,htmlunit-2.15-OSGi.jar     发布时间:2018-03-27   

一、异常描述

类加载过程时候报“java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/AjaxController”,错误日志详情如下

Exception in thread "DefaultQuartzScheduler_Worker-6" java.lang.NoClassDefFoundE@b@rror: com/gargoylesoftware/htmlunit/AjaxController@b@        at com.xwood.pms.core.schedule.db.dbBack.main(dbBack.java:44)@b@        at com.xwood.pms.core.schedule.db.dbBack.executeInternal(dbBack.java:36)@b@        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJob@b@Bean.java:66)@b@        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)@b@        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j@b@ava:520)@b@Caused by: java.lang.ClassNotFoundException: com.gargoylesoftware.htmlunit.AjaxC@b@ontroller@b@        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa@b@der.java:1680)@b@        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa@b@der.java:1526)@b@        ... 5 more

二、解决办法

这个是因为缺少htmlunit-2.x.x.jar依赖包导致问题,可以到本站相关jar页下载

<<热门下载>>