启动FlowApplication报错

Blade 未结 1 1718
杨彦彬
杨彦彬 2019-11-12 17:50

一、该问题的重现步骤是什么?

  1. 启动FlowApplication有下面的提示:

  2. 同理启动DeskApplication也是报同样的错误

2. 

"C:\Program Files\Java\jdk1.8.0_192\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59485,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\WIN10\.IntelliJIdea2019.2\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath C:\Users\WIN10\AppData\Local\Temp\classpath1714075255.jar org.springblade.flow.FlowApplication
Connected to the target VM, address: '127.0.0.1:59485', transport: 'socket'
----启动中,读取到的环境变量:[dev],jar地址:[/D:/project/idea_workspace/bladex/blade-ops/blade-flow/target/classes/]----
2019-11-13 08:53:45.335  INFO 122820 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$27b8f359] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
            ______  _             _       ___   ___
            | ___ \| |           | |      \  \ /  /
            | |_/ /| |  __ _   __| |  ___  \  V  /
            | ___ \| | / _` | / _` | / _ \   > <
            | |_/ /| || (_| || (_| ||  __/ /  .  \
            \____/ |_| \__,_| \__,_| \___|/__/ \__\

:: BladeX :: blade-flow:dev :: Running SpringBoot 2.1.9.RELEASE :: 

2019-11-13 08:53:47.541  INFO 122820 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade.yaml', group: 'DEFAULT_GROUP'
2019-11-13 08:53:47.565  INFO 122820 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade-dev.yaml', group: 'DEFAULT_GROUP'
2019-11-13 08:53:47.580  INFO 122820 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade-flow-dev.yaml', group: 'DEFAULT_GROUP'
2019-11-13 08:53:47.582  INFO 122820 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='blade-flow-dev.yaml'}, NacosPropertySource {name='blade-flow.yaml'}, NacosPropertySource {name='blade-dev.yaml'}, NacosPropertySource {name='blade.yaml'}]}
2019-11-13 08:53:47.589  INFO 122820 --- [           main] org.springblade.flow.FlowApplication     : The following profiles are active: dev
2019-11-13 08:53:48.596  WARN 122820 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
2019-11-13 08:53:48.645 ERROR 122820 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-5.1.10.RELEASE.jar:5.1.10.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49) [blade-core-launch-2.2.0.RELEASE.jar:na]
	at org.springblade.flow.FlowApplication.main(FlowApplication.java:34) [classes/:na]
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:203) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
	... 8 common frames omitted

Disconnected from the target VM, address: '127.0.0.1:59485', transport: 'socket'

Process finished with exit code 1

麻烦帮忙解决下,谢谢。



1条回答
  •  zhx1994
    zhx1994 (楼主)
    2019-11-13 09:28

    按文档这个章节把seata服务部署下,或者把seata相关的东西去掉启动。

    Z)N`LQSK53N3IW08L5HJDO3.png

    SWCNDA4)7Q59S8AW`MFEKIF.png

    QRE4RN%(AUG$9XO@LQN{Q8Y.png

    60ODZ]@B}HYY1MI)(00H{FT.png

    作者追问:2019-11-13 09:28

    大佬,分布式事务我都去掉了。在启动之前去掉的

    image.png


    image.png


    image.png


    image.png

    0 讨论(0)
提交回复