我有一个春季启动网络应用程序(嵌入式tomcat),它在我的Windows PC上工作正常。但是,当我将mvn打包的jar文件放到我的ubuntu服务器上时,部署应用程序需要永远。没有错误消息,它只是等待部署的映射阶段。最近的产出低于。
2016-09-25 15:23:19.852 INFO 16780 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2016-09-25 15:23:19.854 INFO 16780 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 11342 ms
2016-09-25 15:23:20.456 INFO 16780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2016-09-25 15:23:20.458 INFO 16780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2016-09-25 15:23:20.459 INFO 16780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2016-09-25 15:23:20.459 INFO 16780 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2016-09-25 15:23:20.466 INFO 16780 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2016-09-25 15:23:20.468 INFO 16780 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
我还试图在我的ubuntu服务器上重新打包整个项目,结果是一样的。
编辑:日志
2016-09-25 22:55:53.554 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment : Adding [servletConfigInitParams] PropertySource with lowest search precedence
2016-09-25 22:55:53.593 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:55:53.599 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:55:53.602 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:55:53.604 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:使用PropertySources初始化StandardServletEnvironment [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment] 2016-09-25 22:55:59.776 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:添加[applicationConfig:[classpath:/application.properties]] PropertySource,搜索优先级立即低于[applicationConfigurationProperties] 2016-09-25 22:55:59.783 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:删除[applicationConfigurationProperties] PropertySource 2016-09-25 22:55:59.783 DEBUG 18207 --- [main] o.s.w.c.s.StandardServletEnvironment:删除[defaultProperties] PropertySource 2016-09-25 22:56:06.859 DEBUG 18207 --- [localhost-startStop-1] o.s.web.context.ContextLoader:发布根WebApplicationContext作为ServletContext属性,名称为[org.springframework.web.context.WebApplicationContext.ROOT] 2016-09-25 22:56:06.861 INFO 18207 --- [localhost-startStop-1] o.s.web.context.ContextLoader:Root WebApplicationContext:初始化在12666 ms完成 2016-09-25 22:56:07.360 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletConfigInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.366 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.374 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:56:07.376 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:56:07.376 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:使用PropertySources初始化StandardServletEnvironment [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment] 2016-09-25 22:56:07.423 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletConfigInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.431 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.432 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:56:07.433 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:56:07.434 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:使用PropertySources初始化StandardServletEnvironment [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment] 2016-09-25 22:56:07.470 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletConfigInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.470 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.471 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:56:07.473 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:56:07.473 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:使用PropertySources初始化StandardServletEnvironment [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment] 2016-09-25 22:56:07.527 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletConfigInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.528 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.528 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:56:07.528 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:56:07.528 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:使用PropertySources初始化StandardServletEnvironment [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment] 2016-09-25 22:56:07.583 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletConfigInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.583 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[servletContextInitParams] PropertySource,搜索优先级最低 2016-09-25 22:56:07.584 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemProperties] PropertySource,搜索优先级最低 2016-09-25 22:56:07.584 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:添加[systemEnvironment] PropertySource,搜索优先级最低 2016-09-25 22:56:07.585 DEBUG 18207 --- [localhost-startStop-1] o.s.w.c.s.StandardServletEnvironment:初始化的StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment]