关于Spring Boot启动时报org.springframework.context.ApplicationContextException: Unable to start EmbeddedWe

关于Spring Boot启动时报org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean错误的解决方法(Eclipse)

Eclipse 启动Spring Boot项目时报错,始终启动启动不了。网上看了很多帖子,比如加注释啊,什么增加依赖啊的。始终不正确。最后发现是Spring Boot的依赖版本问题。
报错信息:

Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:189) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
	... 8 common frames omitted

原先报错的版本配置:

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>1.5.9.RELEASE</version>
</parent>

降低版本后的配置

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>1.5.0.RELEASE</version>
</parent>

我这里用的Maven版本是apache-maven-3.3.9,使用的JDK是1.8
降低版本后重启就OK了

发布了31 篇原创文章 · 获赞 1 · 访问量 4万+
展开阅读全文

sprin boot 启动内嵌tomcat 错。

03-21

[ost-startStop-1] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webMetricsFilter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsConfiguration.class]: Unsatisfied dependency expressed through method 'webMetricsFilter' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]: Factory method 'requestMappingHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logHandlerInterceptor': Unsatisfied dependency expressed through field 'dubboService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dubboService' defined in URL [jar:file:/data/sjdata_tlsy/jars/backend-api/backend-api-1.0.1.jar!/BOOT-INF/classes!/com/shengjie/backend/util/DubboService.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: dubboService; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.shengjie.dubbo.agents.IAgentsService. No provider available for the service com.shengjie.dubbo.agents.IAgentsService:1.0.0 from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=backend-api&dubbo=2.6.0&interface=com.shengjie.dubbo.agents.IAgentsService&methods=findByAgent,findByGameId&pid=3423&register.ip=172.16.0.14&revision=1.0.1&side=consumer&timestamp=1553109052423&version=1.0.0 to the consumer 172.16.0.14 use dubbo version 2.6.0 2019-03-21 03:10:52.828 WARN 3423 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 2019-03-21 03:10:52.844 INFO 3423 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-03-21 03:10:52.853 ERROR 3423 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-5.0.2.RELEASE.jar!/:5.0.2.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:138) ~[spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:751) [spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:387) [spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1245) [spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1233) [spring-boot-2.0.0.M7.jar!/:2.0.0.M7] at com.shengjie.backend.BackendApiApplication.main(BackendApiApplication.java:22) [classes!/:1.0.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [backend-api-1.0.1.jar:1.0.1] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [backend-api-1.0.1.jar:1.0.1] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [backend-api-1.0.1.jar:1.0.1] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [backend-api-1.0.1.jar:1.0.1] Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 问答

Spring整合项目部署到服务器运行时出现的错误

07-04

各位大神帮帮忙,我在把项目部署到tomcat时,运行服务器出现了这样的问题: 七月 04, 2014 4:23:45 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring FrameworkServlet 'dispatcher' [2014-07-04 16:23:45,162 920] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:454)] [FrameworkServlet 'dispatcher': initialization started] [2014-07-04 16:23:45,172 930] [INFO ] [localhost-startStop-1] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:510)] [Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 04 16:23:45 CST 2014]; parent: Root WebApplicationContext] [2014-07-04 16:23:45,172 930] [INFO ] [localhost-startStop-1] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)] [Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]] [2014-07-04 16:23:45,443 1201] [INFO ] [localhost-startStop-1] [org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:598)] [Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@11d0c61: defining beans [mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,alipayAuthController,alipayDemoController,alipayMsgDetailController,alipayMsgPushController,gatewayController,updateMenuController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1530a8a] [2014-07-04 16:23:45,523 1281] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/applyAuth.do],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.AlipayAuthController.doAuthApply(javax.servlet.http.HttpServletRequest,org.springframework.ui.Model)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/commitAuth.do],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.alipay.demo.controller.AlipayAuthController.doAuthCommit(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/demogate.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.AlipayDemoController.doProcess(javax.servlet.http.HttpServletRequest,org.springframework.ui.Model)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/msgDetail.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.AlipayMsgDetailController.handlerDetail(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/msginput.do],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.AlipayMsgPushController.handlerInput(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/push.do],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.alipay.demo.controller.AlipayMsgPushController.handlerPush(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/gateway/gateway.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.GatewayController.doProcess(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/login.do],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.alipay.demo.controller.UpdateMenuController.handluserlogin(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/update.do],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.alipay.demo.controller.UpdateMenuController.handlerUpdateMenu(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,533 1291] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:179)] [Mapped "{[/userlogin.do],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void com.alipay.demo.controller.UpdateMenuController.handlogin(javax.servlet.http.HttpServletRequest)] [2014-07-04 16:23:45,853 1611] [INFO ] [localhost-startStop-1] [org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:473)] [FrameworkServlet 'dispatcher': initialization completed in 691 ms] 七月 04, 2014 4:23:45 下午 org.apache.catalina.startup.HostConfig deployDirectory 问答

编程菜鸟一枚,请问各位大神这是怎么回事。自己搭建spring-boot的时候启动start

09-14

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] Caused by: java.lang.IllegalStateException: java.lang.NullPointerException Caused by: java.lang.NullPointerException: null 2016-09-14 14:07:52.047 ERROR 8912 --- [ restartedMain] org.apache.catalina.core.ContainerBase : A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] Caused by: org.apache.catalina.LifecycleException: A child container failed during start 2016-09-14 14:07:52.047 WARN 8912 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat 2016-09-14 14:07:52.094 ERROR 8912 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat]] Caused by: org.apache.catalina.LifecycleException: A child container failed during start 问答

[ERROR][org.springframework.web.context.ContextLoader] Context initialization failed哪位大神知道这是什么意思,弄了很久了

02-21

2020-02-21 16:54:02 [ERROR][org.springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sendMessageController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageCountService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.dx.mes.facade.uas.service.IPageCountService. No provider available for the service com.dx.mes.facade.uas.service.IPageCountService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer&dubbo=2.5.3&interface=com.dx.mes.facade.uas.service.IPageCountService&methods=savePageCount,isOpenPageCount&pid=1032&revision=0.0.1&side=consumer&timestamp=1582275233160 to the consumer 172.31.253.24 use dubbo version 2.5.3 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:307) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633) 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:410) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:479) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) 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) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageCountService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.dx.mes.facade.uas.service.IPageCountService. No provider available for the service com.dx.mes.facade.uas.service.IPageCountService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-consumer&dubbo=2.5.3&interface=com.dx.mes.facade.uas.service.IPageCountService&methods=savePageCount,isOpenPageCount&pid=1032&revision=0.0.1&side=consumer&timestamp=1582275233160 to the consumer 172.31.253.24 use dubbo version 2.5.3 at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1468) 21-Feb-2020 16:54:02.498 涓ラ噸 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 21-Feb-2020 16:54:02.499 涓ラ噸 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/wms-visionox-web-warehouse-war-exploded] startup failed due to previous errors at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:445) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:419) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:547) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:304) ... 60 more ``` ``` 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览