Tomcat Not Starting Through Eclipse (Timeout)

后端 未结 27 2523
终归单人心
终归单人心 2020-12-01 06:41

I am trying to run Tomcat through Eclipse. This is something that I have done for the past several years. It was working yesterday and now it is not. The error I get is

27条回答
  •  隐瞒了意图╮
    2020-12-01 07:08

    For those of you trying to start heavy-loaded application, with a lot of INFO level logging to console. Be aware Eclipse console printer can be confused by amount of data to print and hang Eclipse for a long time, while server actually will be started and can be accessed via browser.

    This problem happened to me and took me quite a while to figure out what's happening. I'm running Eclipse Mars and Tomcat 7. In my case app was trying to print all singleton bean names to console, about several thousand bean names thus Eclipse was going crazy.

    org.springframework.beans.factory.support.DefaultListableBeanFactory#preInstantiateSingletons
    
        if (this.logger.isInfoEnabled()) {
           this.logger.info("Pre-instantiating singletons in " + this);
        }
    

    Give it a try, put the app logging level=ERROR. Hopefully this will help someone.

提交回复
热议问题