开发者社区> 问答> 正文

咱们用的spring版本是哪个,是否少jar包?报错

@数通畅联 你好,想跟你请教个问题:

咱们用的spring版本是哪个,是否少jar包,我这边启动报错

严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hotServerManage': Cannot create inner bean 'com.agileai.hotserver.service.HotServerManageImpl#36ad48ff' of type [com.agileai.hotserver.service.HotServerManageImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.agileai.hotserver.service.HotServerManageImpl#36ad48ff' defined in URL [file:/usr/local/tomcat/webapps/HotServer/WEB-INF/classes/JaxWSContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.agileai.hotserver.service.HotServerManageImpl#36ad48ff' defined in URL [file:/usr/local/tomcat/webapps/HotServer/WEB-INF/classes/JaxWSContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
        ... 33 more
Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
        at java.lang.Class.getConstructor0(Class.java:2885)
        at java.lang.Class.getDeclaredConstructor(Class.java:2058)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
        ... 39 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
        ... 45 more


一月 27, 2016 9:44:19 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
一月 27, 2016 9:44:19 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HotServer] startup failed due to previous errors
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /usr/local/tomcat/webapps/HotServer has finished in 8,184 ms
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /usr/local/tomcat/webapps/ROOT
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /usr/local/tomcat/webapps/ROOT has finished in 43 ms
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /usr/local/tomcat/webapps/aeaihr
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
一月 27, 2016 9:44:19 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
一月 27, 2016 9:44:19 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/aeaihr] startup failed due to previous errors
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /usr/local/tomcat/webapps/aeaihr has finished in 447 ms
一月 27, 2016 9:44:19 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
一月 27, 2016 9:44:19 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
一月 27, 2016 9:44:19 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 10242 ms


希望能帮忙解决一下,谢谢

展开
收起
爱吃鱼的程序员 2020-06-10 14:35:09 528 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    <spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,宋体;font-size:13.3333px;background-color:#FFFFFF;">Causedby:java.lang.ClassNotFoundException:org.apache.http.HttpEntity

    2020-06-10 14:35:27
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
云栖社区特邀专家徐雷Java Spring Boot开发实战系列课程(第20讲):经典面试题与阿里等名企内部招聘求职面试技巧 立即下载
微服务架构模式与原理Spring Cloud开发实战 立即下载
阿里特邀专家徐雷Java Spring Boot开发实战系列课程(第18讲):制作Java Docker镜像与推送到DockerHub和阿里云Docker仓库 立即下载

相关实验场景

更多