将Jhipster注册表URL部署在tomcat上后,它是什么? [英] What is the Jhipster registry url after deploying it on tomcat?

查看:74
本文介绍了将Jhipster注册表URL部署在tomcat上后,它是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在tomcat上部署jhipster注册表大战,部署成功,但是我无法访问该URL.我尝试了http://localhost:8080/jhipster-registry-2.5.8/http://localhost:8761/#/都没有用.我知道注册表的默认端口是8761,Tomcat是否会覆盖它?

I want to deploy jhipster registry war on tomcat, deployment is successful but I am unable to access the url. I tried http://localhost:8080/jhipster-registry-2.5.8/ and http://localhost:8761/#/ neither worked. I know that default port for registry is 8761, Does Tomcat overwrites it?

2017-02-23 10:19:05.782  INFO 89248 --- [ost-startStop-1] i.g.jhipster.registry.ApplicationWebXml  : The following profiles are active: prod
2017-02-23 10:19:08.230  WARN 89248 --- [ost-startStop-1] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider decl
2017-02-23 10:19:09.221 DEBUG 89248 --- [ost-startStop-1] i.g.j.r.config.MetricsConfiguration      : Registering JVM gauges
2017-02-23 10:19:09.258 DEBUG 89248 --- [ost-startStop-1] i.g.j.r.config.MetricsConfiguration      : Initializing Metrics JMX reporting
2017-02-23 10:19:12.162  INFO 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Web application configuration, using profiles: [prod]
2017-02-23 10:19:12.176 DEBUG 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Initializing Metrics registries
2017-02-23 10:19:12.188 DEBUG 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Registering Metrics Filter
2017-02-23 10:19:12.190 DEBUG 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Registering Metrics Servlet
2017-02-23 10:19:12.198 DEBUG 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Registering Caching HTTP Headers Filter
2017-02-23 10:19:12.200  INFO 89248 --- [ost-startStop-1] i.g.j.registry.config.WebConfigurer      : Web application fully configured
2017-02-23 10:19:12.227  INFO 89248 --- [ost-startStop-1] i.g.jhipster.registry.JHipsterRegistry   : Running with Spring profile(s) : [prod]
2017-02-23 10:19:15.853  INFO 89248 --- [ost-startStop-1] com.netflix.discovery.DiscoveryClient    : Client configured to neither register nor query for data.
2017-02-23 10:19:15.883  INFO 89248 --- [ost-startStop-1] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1487863155883 with initial instances count: 0
2017-02-23 10:19:16.072  INFO 89248 --- [ost-startStop-1] c.n.eureka.DefaultEurekaServerContext    : Initializing ...
2017-02-23 10:19:16.075  INFO 89248 --- [ost-startStop-1] c.n.eureka.cluster.PeerEurekaNodes       : Adding new peer nodes [http://localhost:8761/eureka/]
2017-02-23 10:19:16.313  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2017-02-23 10:19:16.321  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2017-02-23 10:19:16.321  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2017-02-23 10:19:16.322  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2017-02-23 10:19:16.802  INFO 89248 --- [ost-startStop-1] c.n.eureka.cluster.PeerEurekaNodes       : Replica node URL:  http://localhost:8761/eureka/
2017-02-23 10:19:16.836  INFO 89248 --- [ost-startStop-1] c.n.e.registry.AbstractInstanceRegistry  : Finished initializing remote region registries. All known remote regions: []
2017-02-23 10:19:16.838  INFO 89248 --- [ost-startStop-1] c.n.eureka.DefaultEurekaServerContext    : Initialized
2017-02-23 10:19:21.092  WARN 89248 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2017-02-23 10:19:21.097  INFO 89248 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-02-23 10:19:21.116  WARN 89248 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2017-02-23 10:19:21.117  INFO 89248 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-02-23 10:19:23.779  INFO 89248 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Got 1 instances from neighboring DS node
2017-02-23 10:19:23.794  INFO 89248 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Renew threshold is: 1
2017-02-23 10:19:23.801  INFO 89248 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Changing status to UP
2017-02-23 10:19:23.854  INFO 89248 --- [ost-startStop-1] i.g.jhipster.registry.ApplicationWebXml  : Started ApplicationWebXml in 21.486 seconds (JVM running for 40.931)
2017-02-23 10:19:23.938  INFO 89248 --- [ost-startStop-1] c.s.j.s.i.a.WebApplicationImpl           : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
2017-02-23 10:19:24.045  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2017-02-23 10:19:24.052  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2017-02-23 10:19:24.052  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2017-02-23 10:19:24.053  INFO 89248 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
23-Feb-2017 10:19:25.047 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\apache-tomcat-8.0.39\webapps\jhipster-registry-2.5.war has finished in 36,797 ms
23-Feb-2017 10:19:25.060 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\apache-tomcat-8.0.39\webapps\docs
23-Feb-2017 10:19:25.110 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\apache-tomcat-8.0.39\webapps\docs has finished in 50 ms
23-Feb-2017 10:19:25.111 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\apache-tomcat-8.0.39\webapps\examples
23-Feb-2017 10:19:25.530 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\apache-tomcat-8.0.39\webapps\examples has finished in 419 ms
23-Feb-2017 10:19:25.530 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\apache-tomcat-8.0.39\webapps\host-manager
23-Feb-2017 10:19:25.578 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\apache-tomcat-8.0.39\webapps\host-manager has finished in 48 ms
23-Feb-2017 10:19:25.580 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\apache-tomcat-8.0.39\webapps\manager
23-Feb-2017 10:19:25.606 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\apache-tomcat-8.0.39\webapps\manager has finished in 27 ms
23-Feb-2017 10:19:25.607 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\apache-tomcat-8.0.39\webapps\ROOT
23-Feb-2017 10:19:25.636 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\apache-tomcat-8.0.39\webapps\ROOT has finished in 28 ms
23-Feb-2017 10:19:25.644 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
23-Feb-2017 10:19:25.663 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
23-Feb-2017 10:19:25.666 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 41071 ms
2017-02-23 10:20:22.433 DEBUG 89248 --- [apr-8080-exec-9] i.g.j.r.s.Http401UnauthorizedEntryPoint  : Pre-authenticated entry point called. Rejecting access
2017-02-23 10:20:23.804  INFO 89248 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-02-23 10:21:23.804  INFO 89248 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 1ms

推荐答案

我复制了您的设置,并遇到了同样的问题. 奇怪的是,运行

I reproduced your setup and got same problems. Weird thing is that running

curl http://admin:admin@localhost:8080/jhipster-registry-2.5.8/

工作正常:我得到了主页的内容.

works fine: I get the home page contents.

因此,某些内容在浏览器中不起作用.

So something does not work in the browser.

使用另一个端口8761和一个不同于/的上下文路径(在您的情况下为/jhipster-registry-2.5.8/)意味着必须修改注册表的application*.yml中的多个应用程序属性,以及所有服务和服务器上的bootstrap.yml文件.网关在此注册表中注册.

Using another port than 8761 and a context path different than / (in your case /jhipster-registry-2.5.8/) means that you must modify several application properties in registry's application*.yml and also the bootstrap.yml files from all your services and gateways registering with this registry.

为避免这种情况,我将tomcat的端口更改为8761,并将注册表war文件重命名为ROOT.war,但仍然无法正常工作.

To avoid this, I changed tomcat's port to 8761 and renamed the registry war file to ROOT.war but it still does not work.

要使其正常工作,需要在调试上付出大量的努力.因此,我强烈建议您坚持建议的用法:使用java -jar jhipster-registry.war或使用Docker.

To make it work would require some significant effort in debugging. So, I highly recommend that you stick to the recommended usage: either using java -jar jhipster-registry.war or using docker.

这篇关于将Jhipster注册表URL部署在tomcat上后,它是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆