1、启动dubbo的引用dubbo服务时候报下面这个错误,这是由于去找dubbo的发布服务未找到报的错误,所以先启动dubbo的发布服务即可。

  1. [INFO] Scanning for projects...
  2. [INFO]
  3. [INFO] -------------------< com.taotao:taotao-manager-web >--------------------
  4. [INFO] Building taotao-manager-web 0.0.-SNAPSHOT
  5. [INFO] --------------------------------[ war ]---------------------------------
  6. [INFO]
  7. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web ---
  8. [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target
  9. [INFO]
  10. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-web >>>
  11. [INFO]
  12. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-web ---
  13. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  14. [INFO] Copying resource
  15. [INFO]
  16. [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-web ---
  17. [INFO] Changes detected - recompiling the module!
  18. [INFO] Compiling source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target\classes
  19. [INFO]
  20. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-web <<<
  21. [INFO]
  22. [INFO]
  23. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-web ---
  24. [INFO] Running war on http://localhost:8081/
  25. [INFO] Creating Tomcat server configuration at D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target\tomcat
  26. [INFO] create webapp with contextPath:
  27. 八月 , :: 下午 org.apache.coyote.AbstractProtocol init
  28. 信息: Initializing ProtocolHandler ["http-bio-8081"]
  29. 八月 , :: 下午 org.apache.catalina.core.StandardService startInternal
  30. 信息: Starting service Tomcat
  31. 八月 , :: 下午 org.apache.catalina.core.StandardEngine startInternal
  32. 信息: Starting Servlet Engine: Apache Tomcat/7.0.
  33. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  34. 信息: No Spring WebApplicationInitializer types detected on classpath
  35. log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
  36. log4j:WARN Please initialize the log4j system properly.
  37. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  38. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  39. 信息: Initializing Spring FrameworkServlet 'taotao-manager-web'
  40. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  41. 严重: StandardWrapper.Throwable
  42. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.ItemService com.taotao.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
  43. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:)
  44. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:)
  45. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:)
  46. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:)
  47. at org.springframework.beans.factory.support.AbstractBeanFactory$.getObject(AbstractBeanFactory.java:)
  48. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:)
  49. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
  50. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
  51. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:)
  52. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:)
  53. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:)
  54. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:)
  55. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
  56. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
  57. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:)
  58. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:)
  59. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:)
  60. at javax.servlet.GenericServlet.init(GenericServlet.java:)
  61. at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:)
  62. at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:)
  63. at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:)
  64. at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:)
  65. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:)
  66. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
  67. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  68. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  69. at java.util.concurrent.FutureTask.run(FutureTask.java:)
  70. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:)
  71. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:)
  72. at java.lang.Thread.run(Thread.java:)
  73. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.ItemService com.taotao.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
  74. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:)
  75. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:)
  76. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:)
  77. ... more
  78. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
  79. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:)
  80. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:)
  81. at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:)
  82. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
  83. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
  84. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:)
  85. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:)
  86. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:)
  87. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:)
  88. ... more
  89. Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
  90. at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:)
  91. at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:)
  92. at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:)
  93. at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:)
  94. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:)
  95. ... more
  96.  
  97. 八月 , :: 下午 org.apache.catalina.core.StandardContext loadOnStartup
  98. 严重: Servlet threw load() exception
  99. java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
  100. at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:)
  101. at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:)
  102. at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:)
  103. at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:)
  104. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:)
  105. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:)
  106. at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:)
  107. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
  108. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
  109. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:)
  110. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:)
  111. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:)
  112. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:)
  113. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:)
  114. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:)
  115. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:)
  116. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:)
  117. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:)
  118. at org.springframework.beans.factory.support.AbstractBeanFactory$.getObject(AbstractBeanFactory.java:)
  119. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:)
  120. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
  121. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
  122. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:)
  123. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:)
  124. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:)
  125. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:)
  126. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
  127. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
  128. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:)
  129. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:)
  130. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:)
  131. at javax.servlet.GenericServlet.init(GenericServlet.java:)
  132. at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:)
  133. at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:)
  134. at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:)
  135. at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:)
  136. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:)
  137. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
  138. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  139. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  140. at java.util.concurrent.FutureTask.run(FutureTask.java:)
  141. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:)
  142. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:)
  143. at java.lang.Thread.run(Thread.java:)
  144.  
  145. 八月 , :: 下午 org.apache.coyote.AbstractProtocol start
  146. 信息: Starting ProtocolHandler ["http-bio-8081"]

2、然后发现我的dubbo的发布服务报了这个错误。

  1. [INFO] Scanning for projects...
  2. [INFO] ------------------------------------------------------------------------
  3. [INFO] Reactor Build Order:
  4. [INFO]
  5. [INFO] taotao-manager [pom]
  6. [INFO] taotao-manager-pojo [jar]
  7. [INFO] taotao-manager-dao [jar]
  8. [INFO] taotao-manager-interface [jar]
  9. [INFO] taotao-manager-service [war]
  10. [INFO]
  11. [INFO] ---------------------< com.taotao:taotao-manager >----------------------
  12. [INFO] Building taotao-manager 0.0.-SNAPSHOT [/]
  13. [INFO] --------------------------------[ pom ]---------------------------------
  14. [INFO]
  15. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager ---
  16. [INFO]
  17. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>>
  18. [INFO]
  19. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<<
  20. [INFO]
  21. [INFO]
  22. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager ---
  23. [INFO] Skipping non-war project
  24. [INFO]
  25. [INFO] -------------------< com.taotao:taotao-manager-pojo >-------------------
  26. [INFO] Building taotao-manager-pojo 0.0.-SNAPSHOT [/]
  27. [INFO] --------------------------------[ jar ]---------------------------------
  28. [INFO]
  29. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo ---
  30. [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-pojo\target
  31. [INFO]
  32. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>>
  33. [INFO]
  34. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo ---
  35. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  36. [INFO] Copying resource
  37. [INFO]
  38. [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo ---
  39. [INFO] Changes detected - recompiling the module!
  40. [INFO] Compiling source files to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-pojo\target\classes
  41. [INFO]
  42. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<<
  43. [INFO]
  44. [INFO]
  45. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo ---
  46. [INFO] Skipping non-war project
  47. [INFO]
  48. [INFO] -------------------< com.taotao:taotao-manager-dao >--------------------
  49. [INFO] Building taotao-manager-dao 0.0.-SNAPSHOT [/]
  50. [INFO] --------------------------------[ jar ]---------------------------------
  51. [INFO]
  52. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-dao ---
  53. [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-dao\target
  54. [INFO]
  55. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-dao >>>
  56. [INFO]
  57. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-dao ---
  58. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  59. [INFO] Copying resource
  60. [INFO]
  61. [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-dao ---
  62. [INFO] Changes detected - recompiling the module!
  63. [INFO] Compiling source files to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-dao\target\classes
  64. [INFO]
  65. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-dao <<<
  66. [INFO]
  67. [INFO]
  68. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-dao ---
  69. [INFO] Skipping non-war project
  70. [INFO]
  71. [INFO] ----------------< com.taotao:taotao-manager-interface >-----------------
  72. [INFO] Building taotao-manager-interface 0.0.-SNAPSHOT [/]
  73. [INFO] --------------------------------[ jar ]---------------------------------
  74. [INFO]
  75. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-interface ---
  76. [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-interface\target
  77. [INFO]
  78. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-interface >>>
  79. [INFO]
  80. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-interface ---
  81. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  82. [INFO] Copying resource
  83. [INFO]
  84. [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-interface ---
  85. [INFO] Changes detected - recompiling the module!
  86. [INFO] Compiling source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-interface\target\classes
  87. [INFO]
  88. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-interface <<<
  89. [INFO]
  90. [INFO]
  91. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-interface ---
  92. [INFO] Skipping non-war project
  93. [INFO]
  94. [INFO] -----------------< com.taotao:taotao-manager-service >------------------
  95. [INFO] Building taotao-manager-service 0.0.-SNAPSHOT [/]
  96. [INFO] --------------------------------[ war ]---------------------------------
  97. [INFO]
  98. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service ---
  99. [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target
  100. [INFO]
  101. [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>>
  102. [INFO]
  103. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service ---
  104. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  105. [INFO] Copying resources
  106. [INFO]
  107. [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service ---
  108. [INFO] Changes detected - recompiling the module!
  109. [INFO] Compiling source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\classes
  110. [INFO]
  111. [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<<
  112. [INFO]
  113. [INFO]
  114. [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service ---
  115. [INFO] Running war on http://localhost:8080/
  116. [INFO] Creating Tomcat server configuration at D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\tomcat
  117. [INFO] create webapp with contextPath:
  118. 八月 , :: 下午 org.apache.coyote.AbstractProtocol init
  119. 信息: Initializing ProtocolHandler ["http-bio-8080"]
  120. 八月 , :: 下午 org.apache.catalina.core.StandardService startInternal
  121. 信息: Starting service Tomcat
  122. 八月 , :: 下午 org.apache.catalina.core.StandardEngine startInternal
  123. 信息: Starting Servlet Engine: Apache Tomcat/7.0.
  124. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  125. 信息: No Spring WebApplicationInitializer types detected on classpath
  126. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  127. 信息: Initializing Spring root WebApplicationContext
  128. log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
  129. log4j:WARN Please initialize the log4j system properly.
  130. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  131. 八月 , :: 下午 org.apache.catalina.core.StandardContext listenerStart
  132. 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  133. org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in file [D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\classes\spring\applicationContext-dao.xml]: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
  134. at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:)
  135. at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:)
  136. at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:)
  137. at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:)
  138. at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:)
  139. at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:)
  140. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:)
  141. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:)
  142. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:)
  143. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:)
  144. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:)
  145. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:)
  146. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
  147. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  148. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
  149. at java.util.concurrent.FutureTask.run(FutureTask.java:)
  150. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:)
  151. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:)
  152. at java.lang.Thread.run(Thread.java:)
  153. Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
  154. at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:)
  155. at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:)
  156. at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:)
  157. at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:)
  158. at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:)
  159. at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:)
  160. at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:)
  161. at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:)
  162. at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:)
  163. at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:)
  164. ... more
  165.  
  166. 八月 , :: 下午 org.apache.catalina.core.StandardContext startInternal
  167. 严重: Error listenerStart
  168. 八月 , :: 下午 org.apache.catalina.core.StandardContext startInternal
  169. 严重: Context [] startup failed due to previous errors
  170. 八月 , :: 下午 org.apache.catalina.core.ApplicationContext log
  171. 信息: Closing Spring root WebApplicationContext
  172. 八月 , :: 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  173. 严重: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  174. 八月 , :: 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  175. 严重: The web application [] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  176. 八月 , :: 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  177. 严重: The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  178. 八月 , :: 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  179. 严重: The web application [] registered the JDBC driver [com.alibaba.druid.mock.MockDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  180. 八月 , :: 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
  181. 严重: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
  182. 八月 , :: 下午 org.apache.coyote.AbstractProtocol start
  183. 信息: Starting ProtocolHandler ["http-bio-8080"]

原来是我的db.properties配置文件里面配置错误了。所以还是仔细点吧,避免不少错误,跳过不少坑。

修改,重新启动,先启动dubbo的发布服务,再启动dubbo的引用服务哦。ok,再次启动果然不报错了。

待续......

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"的更多相关文章

  1. springcloud中config启动时候报错Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'config.info' in value "${config.info}"

    -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jm ...

  2. IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

    运行审核流模块: 在ActivitiServiceApplication模块日志报错: Error starting ApplicationContext. To display the auto-c ...

  3. springboot启动异常:java.lang.IllegalArgumentException: Could not resolve placeholder 'xxx.xxx.xxx' in value "${xxx.xxx.xxx}"

    场景: 本地启动正常,部署到服务器上启动时启动tomcat失败,显示上面的问题. 原因: 本地打包的时候没有修改指定的配置文件名称(本地只有一份配置文件). 在打包到服务器上时指定的配置文件命名会去查 ...

  4. mybatis报错:Caused by: java.lang.IllegalArgumentException: Caches collection already contains value for com.crm.dao.PaperUserMapper

    一.问题 eclipse启动时报下面的错误: Caused by: java.lang.IllegalArgumentException: Caches collection already cont ...

  5. 解决Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.geek.dao.ContentDao.Integer

    mybatis报错:Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain val ...

  6. 解决Caused by: java.lang.IllegalArgumentException: A universal match pattern ('/**') is defined before other patterns in the filter chain, causing them to be ignored. Please check the ordering in your

    写项目时应用了SpringSecurity框架来进行登陆验证,之前单独的写简单的SpringSecrity的Demo时并没有报错,但是当和SpringMVC一起整合时却发生了报错 报错如下: Caus ...

  7. Caused by: java.lang.IllegalArgumentException: argument type mismatch

    下面是我的报错信息 at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java: ...

  8. java.sql.SQLException: Error setting driver on UnpooledDataSource.Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for IStudentDaoMapper.Mapperdao.selectcou

    是因为 Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for ...

  9. spring .cloud ------------java.lang.RuntimeException: com.netflix.client.ClientException,Caused by: java.lang.IllegalArgumentException: MIME type may not contain reserved characters

    1.问题的发生 Feign在默认情况下使用的是JDK原生的URLConnection发送HTTP请求,没有连接池,但是对每个地址会保持一个长连接,即利用HTTP的persistence connect ...

随机推荐

  1. Visual Studio 基础设置

    重置开发环境 菜单栏中选择“工具”/“导入和导出设置”/“重置所有设置” 设置行号 菜单栏中选择“工具”/“选项”/“文本编辑器”/“行号” 全屏显示 菜单栏中选择“视图”/“全屏显示” 为程序设置版 ...

  2. 通过重复运行的Microsoft Flow由OAuth认证后获取Access Token并将其更新到实体记录

    我是微软Dynamcis 365 & Power Platform方面的工程师罗勇,也是2015年7月到2018年6月连续三年Dynamics CRM/Business Solutions方面 ...

  3. 从立创EDA,Gratipay看中文编程开发环境和推广运营的一个趋势

    前不久听说立创EDA,对比之前的讨论: 适合中文用户的编程语言和IDE, 侧重于现有语言/IDE不具备的特性 · Issue #11 · program-in-chinese/overview,觉得颇 ...

  4. PLSQL Developer数据库连接和tnsname.ora的配置

    1.将资源解压,打开解压完成目录中的PLSQL Developer文件夹,双击plsqldev.exe图标打开PLSQL Developer. 打开help>>about中找到TNS Fi ...

  5. docker介绍和安装(一)

    虚拟化简介 虚拟化(英语:Virtualization)是一种资源管理技术,是将计算机的各种实体资源,如服务器.网络.内存及存储等,予以抽象.转换后呈现出来,打破实体结构间的不可切割的障碍,使用户可以 ...

  6. Nginx 配置实例-动静分离

    1.什么是动静分离  通过 location 指定不同的后缀名实现不同的请求转发.通过 expires 参数设置,可以使浏 览器缓存过期时间,减少与服务器之前的请求和流量.具体 Expires 定义: ...

  7. 第十二章 WEB渗透

    Web技术发展 • 静态WEB• 动态WEB • 应用程序 • 数据库 • 每个人看到的内容不同 • 根据用户输入返回不同结果 WEB攻击面• Network• OS• WEB Server• App ...

  8. python批量执行脚本,使用unittest.TestSuit(); unittest.TextTestRunner().run(); addTest();unittest.defaultTestLoader.discover();

    #alltest.py中内容如下import unittest,osdef all(): #path="D:\\study\\python_api_test\\test1203" ...

  9. celery 异步发送短信验证码、延迟任务

    短信 celery.py import os, django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "luffy ...

  10. luoguP2178 [NOI2015]品酒大会(后缀数组做法)

    题意 因为一个\(k\)相似必定为\(k-1,k-2....0\)相似,对于一个\(lcp\)为\(k\)后缀对\((i,j)\),我们只用把它的贡献加在\(k\)的答案上,最后求一个后缀和和后缀ma ...