会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132432个问题
Python 全系列/第一阶段:Python入门/编程基本概念 33691楼
Python 全系列/第七阶段:网页编程基础/CSS 样式 33695楼

为什么我启动tomcat7:run错误一大堆

image.png

1.我的zookeeper集群注册中心搭起来了,私服也搭起来了发布是成功的

2.所有代码是老师的源码,因为我自己写一样的效果

全部内容如下:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ego-manager-web 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ ego-manager-web >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ ego-manager-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ ego-manager-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to D:\workspace\ego-manager-web\target\classes
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ ego-manager-web <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ ego-manager-web ---
[INFO] Running war on http://localhost:8080/
[INFO] Using existing Tomcat server configuration at D:\workspace\ego-manager-web\target\tomcat
[INFO] create webapp with contextPath: 
三月 24, 2020 12:17:11 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 24, 2020 12:17:11 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
三月 24, 2020 12:17:11 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
三月 24, 2020 12:17:13 上午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
三月 24, 2020 12:17:13 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
三月 24, 2020 12:17:14 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'managerItemServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bjsxt.ego.rpc.service.ItemService com.bjsxt.ego.manager.service.impl.ManagerItemServiceImpl.itemServiceProxy; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemServiceProxy': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.ego.rpc.service.ItemService. No provider available for the service com.bjsxt.ego.rpc.service.ItemService from the url zookeeper://192.168.21.133:2181/com.alibaba.dubbo.registry.RegistryService?application=ego-manager-web-consumer&dubbo=2.5.3&interface=com.bjsxt.ego.rpc.service.ItemService&methods=selectItemList&pid=12176&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1584980234049 to the consumer 192.168.21.1 use dubbo version 2.5.3
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bjsxt.ego.rpc.service.ItemService com.bjsxt.ego.manager.service.impl.ManagerItemServiceImpl.itemServiceProxy; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemServiceProxy': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.ego.rpc.service.ItemService. No provider available for the service com.bjsxt.ego.rpc.service.ItemService from the url zookeeper://192.168.21.133:2181/com.alibaba.dubbo.registry.RegistryService?application=ego-manager-web-consumer&dubbo=2.5.3&interface=com.bjsxt.ego.rpc.service.ItemService&methods=selectItemList&pid=12176&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1584980234049 to the consumer 192.168.21.1 use dubbo version 2.5.3
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:558)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
	... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemServiceProxy': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.ego.rpc.service.ItemService. No provider available for the service com.bjsxt.ego.rpc.service.ItemService from the url zookeeper://192.168.21.133:2181/com.alibaba.dubbo.registry.RegistryService?application=ego-manager-web-consumer&dubbo=2.5.3&interface=com.bjsxt.ego.rpc.service.ItemService&methods=selectItemList&pid=12176&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1584980234049 to the consumer 192.168.21.1 use dubbo version 2.5.3
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1506)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:250)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:530)
	... 24 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.ego.rpc.service.ItemService. No provider available for the service com.bjsxt.ego.rpc.service.ItemService from the url zookeeper://192.168.21.133:2181/com.alibaba.dubbo.registry.RegistryService?application=ego-manager-web-consumer&dubbo=2.5.3&interface=com.bjsxt.ego.rpc.service.ItemService&methods=selectItemList&pid=12176&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1584980234049 to the consumer 192.168.21.1 use dubbo version 2.5.3
	at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
	at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
	at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
	at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
	... 32 more

三月 24, 2020 12:17:14 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
三月 24, 2020 12:17:14 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
三月 24, 2020 12:17:14 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
三月 24, 2020 12:17:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.
三月 24, 2020 12:17:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [ZkClient-EventThread-18-192.168.21.133:2181,192.168.21.133:2182,192.168.21.133:2183] but has failed to stop it. This is very likely to create a memory leak.
三月 24, 2020 12:17:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [localhost-startStop-1-SendThread(192.168.21.133:2182)] but has failed to stop it. This is very likely to create a memory leak.
三月 24, 2020 12:17:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [localhost-startStop-1-EventThread] but has failed to stop it. This is very likely to create a memory leak.
三月 24, 2020 12:17:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DubboSaveRegistryCache-thread-1] but has failed to stop it. This is very likely to create a memory leak.
三月 24, 2020 12:17:14 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]

自己水平实在有限,难以解决都是一步一步跟着走的!

一般错误都能百度出来这个我百度了看不太懂!

JAVA 全系列/(旧的隐藏)第八阶段:电商高级项目_架构/编码/电商ego-基于SOA架构_Dubbo使用_逆向工程_分页插件完成商品查询 33696楼
人工智能/第二阶段:人工智能基础-Python基础/Python基础语法-旧 33699楼
Python 全系列/第一阶段:Python入门/控制语句 33700楼
JAVA 全系列/(旧的隐藏)第十五阶段:百战商城项目(Spring Cloud最新架构)/百战商城项目 33701楼
JAVA 全系列/第三阶段:数据库编程/JDBC技术(旧) 33703楼

captcha_study.zip

老师,你好这是我照着老师的步骤来的,为什么我的验证码输入正确还是显示验证码错误,能帮我看看哪里出错了吗?为啥我的request.post.get()这个函数没获取到值

Python 全系列/第十二阶段:Python_Django3框架/Django进阶 33704楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637