2 qq 27422325 qq_27422325 于 2015.06.07 09:16 提问

springmvc 工程报错,不知道原因求解答。

报的是这个错,请问哪位大神知道,跪求解决。
六月 07, 2015 9:22:40 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/FailingHttpStatusCodeException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:384)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:844)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
... 27 more

六月 07, 2015 9:22:40 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
六月 07, 2015 9:22:40 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/controller] startup failed due to previous errors
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Sun Jun 07 09:22:38 CST 2015]; root of context hierarchy
六月 07, 2015 9:22:40 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext

14个回答

qidaorenzhe
qidaorenzhe   2015.06.07 10:09

全黑字看的好不习惯,ClassNotFoundException八成是因为包没导全

qq_27422325
qq_27422325 大神,求救啊
2 年多之前 回复
jiuqiyuliang
jiuqiyuliang   2015.06.07 10:27

java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/少这个jar包

qq_27422325
qq_27422325 大神,帮我看看。
2 年多之前 回复
qq_27422325
qq_27422325   2015.06.07 10:40

图片说明

qq_26971305
qq_26971305   2015.06.07 11:15

com/gargoylesoftware/htmlunit/少这个jar包

qq_27422325
qq_27422325 大神,求救啊
2 年多之前 回复
qq_27422325
qq_27422325   2015.06.07 12:32

![图片说明图片说明

qq_27422325
qq_27422325   2015.06.07 12:32

图片说明

qq_27422325
qq_27422325   2015.06.07 12:36

图片说明

qq_27422325
qq_27422325   2015.06.07 12:38

图片说明

qq_26971305
qq_26971305   2015.06.07 14:03

在这个包下面,你有看到WebClient类吗?再看看啊

qq_26971305
qq_26971305   2015.06.07 14:05

应该是依赖jar没有导全吧

qq_27422325
qq_27422325 导了包啊,帅哥,你看下面
2 年多之前 回复
共14条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片