为什么将jHipster .war应用程序部署到Tomcat 8服务器会不断重启应用程序?

时间:2017-09-17 16:49:33

标签: spring-boot jhipster tomcat8

我开发了简单的jHipster微服务,我试图在Tomcat 8服务器上运行它。似乎tomcat在加载,启动和运行之后开始新的服务实例。

我正在将web应用作为生产应用运行。

spring:
devtools:
    restart:
        enabled: false
    livereload:
        enabled: false

启动几个实例后,服务器崩溃。

编辑(请参阅部署一个实例和另一个实例之间的日志

2017-09-17 18:28:22.472  INFO 16950 --- [ost-startStop-1] pl.kx7.fb.pages.ApplicationWebXml        : Started ApplicationWebXml in 52.059 seconds (JVM running for 66.585)
17-Sep-2017 18:28:22.610 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/pagesmanager-1.0.1-SNAPSHOT.war] has finished in [64,878] ms
17-Sep-2017 18:28:22.611 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/tomcat/webapps/pm]
2017-09-17 18:28:31.973  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2017-09-17 18:28:31.973  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2017-09-17 18:28:31.973  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2017-09-17 18:28:31.974  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application is null : false
2017-09-17 18:28:31.974  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2017-09-17 18:28:31.974  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application version is -1: false
2017-09-17 18:28:31.975  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2017-09-17 18:28:32.077  INFO 16950 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : The response status is 200

[jHipster logo]

:: JHipster đ¤  :: Running Spring Boot 1.5.4.RELEASE ::
:: https://jhipster.github.io ::

2017-09-17 18:28:41.559  INFO 16950 --- [ost-startStop-1] pl.kx7.fb.pages.ApplicationWebXml        : The following profiles are active: prod
2017-09-17 18:28:46.559 DEBUG 16950 --- [ost-startStop-1] p.k.fb.pages.config.AsyncConfiguration   : Creating Async Task Executor
^C2017-09-17 18:28:46.722  WARN 16950 --- [       Thread-9] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1505665726722, current=DOWN, previous=UP]

编辑2 在我为我的应用程序配置主机之后,似乎问题出现了:

<Host name="pm.myhost.com" appBase="webapps" unpackWARs="true" autoDeploy="true">
                        <Alias>pm.myhost.com</Alias>
                        <Context path="" docBase="/opt/tomcat/webapps/pm" reloadable="true">
                        </Context>
        </Host>

0 个答案:

没有答案