Spring应用程序无法正常启动 - 不显示错误

时间:2015-09-18 07:19:14

标签: java spring

我是Spring Boot框架的新手。我创建了Spring Boot应用程序,它在一台机器上运行良好。我将jar文件移植到具有相同版本的Java的另一台机器,即1.8。它第一次工作,现在它没有正确启动。以下是调试输出:

java -Ddebug -Dserver.port=8089 -jar pentaho_webservices.jar 

Spring Output

它什么也没做,而且卡在那里。我如何调试出错的地方,如果我在另一台机器上运行它,它会显示如下的其他步骤:

Spring Output - II

如果取消作业,则会出现以下错误:

2015-09-18 03:11:19.219  WARN 3125 --- [       Thread-1] ationConfigEmbeddedWebApplicationContext : Exception thrown from LifecycleProcessor on context close

java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2df32bf7: startup date [Fri Sep 18 02:58:23 EDT 2015]; root of context hierarchy
    at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357)
    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:877)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:150)
    at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:804)

任何建议都将受到高度赞赏!

堆栈跟踪截图:

enter image description here enter image description here 问候, Pratikshya

0 个答案:

没有答案