Hefei19881002 2019-05-20 17:47 采纳率: 47.6%
浏览 4302
已结题

springcloud eureka在tomcat中运行 无法访问eureka首页

使用springboot启动一切正常 run on server 跑起来无法访问 eureka首页

2019-05-20 17:38:53.768  INFO 7884 --- [           main] com.example.demo.ServletInitializer      : No active profile set, falling back to default profiles: default
2019-05-20 17:38:55.377  WARN 7884 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2019-05-20 17:38:56.471  INFO 7884 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=526ac23a-b26e-3353-b9ab-50e7bcf72d48
2019-05-20 17:38:56.706  INFO 7884 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$976b1f47] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-20 17:38:56.714  INFO 7884 --- [           main] o.a.c.c.C.[.[localhost].[/eureka]        : Initializing Spring embedded WebApplicationContext
2019-05-20 17:38:56.714  INFO 7884 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2914 ms
2019-05-20 17:38:57.117  WARN 7884 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-05-20 17:38:57.117  INFO 7884 --- [           main] 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.
2019-05-20 17:38:57.151  INFO 7884 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@5d0b5f31
2019-05-20 17:38:59.724  WARN 7884 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-05-20 17:38:59.725  INFO 7884 --- [           main] 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.
2019-05-20 17:39:00.103  INFO 7884 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-05-20 17:39:01.714  INFO 7884 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2019-05-20 17:39:01.804  INFO 7884 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2019-05-20 17:39:01.806  INFO 7884 --- [           main] com.netflix.discovery.DiscoveryClient    : Client configured to neither register nor query for data.
2019-05-20 17:39:01.829  INFO 7884 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1558345141827 with initial instances count: 0
2019-05-20 17:39:01.930  INFO 7884 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initializing ...
2019-05-20 17:39:01.935  WARN 7884 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : The replica size seems to be empty. Check the route 53 DNS Registry
2019-05-20 17:39:01.975  INFO 7884 --- [           main] c.n.e.registry.AbstractInstanceRegistry  : Finished initializing remote region registries. All known remote regions: []
2019-05-20 17:39:01.976  INFO 7884 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initialized
2019-05-20 17:39:02.009  INFO 7884 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2019-05-20 17:39:02.227  INFO 7884 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application service-eureka with eureka with status UP
2019-05-20 17:39:02.235  INFO 7884 --- [      Thread-13] o.s.c.n.e.server.EurekaServerBootstrap   : Setting the eureka configuration..
2019-05-20 17:39:02.237  INFO 7884 --- [      Thread-13] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka data center value eureka.datacenter is not set, defaulting to default
2019-05-20 17:39:02.239  INFO 7884 --- [      Thread-13] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka environment value eureka.environment is not set, defaulting to test
2019-05-20 17:39:02.269  INFO 7884 --- [      Thread-13] o.s.c.n.e.server.EurekaServerBootstrap   : isAws returned false
2019-05-20 17:39:02.270  INFO 7884 --- [      Thread-13] o.s.c.n.e.server.EurekaServerBootstrap   : Initialized server context
2019-05-20 17:39:02.270  INFO 7884 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Got 1 instances from neighboring DS node
2019-05-20 17:39:02.270  INFO 7884 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Renew threshold is: 1
2019-05-20 17:39:02.270  INFO 7884 --- [      Thread-13] c.n.e.r.PeerAwareInstanceRegistryImpl    : Changing status to UP
2019-05-20 17:39:02.272  INFO 7884 --- [           main] com.example.demo.ServletInitializer      : Started ServletInitializer in 11.507 seconds (JVM running for 19.123)
2019-05-20 17:39:02.291  INFO 7884 --- [      Thread-13] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2019-05-20 17:39:02.465  INFO 7884 --- [           main] org.apache.jasper.servlet.TldScanner     : 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
2019-05-20 17:39:02.690  INFO 7884 --- [           main] c.s.j.s.i.a.WebApplicationImpl           : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
2019-05-20 17:39:02.885  INFO 7884 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2019-05-20 17:39:02.885  INFO 7884 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2019-05-20 17:39:02.885  INFO 7884 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2019-05-20 17:39:02.885  INFO 7884 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2019-05-20 17:39:03.458  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of deployment descriptor [E:\apache-tomcat-9.0.17\conf\Catalina\localhost\eureka.xml] has finished in [18,757] ms
2019-05-20 17:39:03.459  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.17\webapps\docs]
2019-05-20 17:39:03.487  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of web application directory [E:\apache-tomcat-9.0.17\webapps\docs] has finished in [28] ms
2019-05-20 17:39:03.488  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.17\webapps\examples]
2019-05-20 17:39:03.764  INFO 7884 --- [           main] o.a.c.c.C.[.[localhost].[/examples]      : ContextListener: contextInitialized()
2019-05-20 17:39:03.764  INFO 7884 --- [           main] o.a.c.c.C.[.[localhost].[/examples]      : SessionListener: contextInitialized()
2019-05-20 17:39:03.766  INFO 7884 --- [           main] o.a.c.c.C.[.[localhost].[/examples]      : ContextListener: attributeAdded('StockTicker', 'async.Stockticker@60157e9c')
2019-05-20 17:39:03.772  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of web application directory [E:\apache-tomcat-9.0.17\webapps\examples] has finished in [284] ms
2019-05-20 17:39:03.772  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.17\webapps\host-manager]
2019-05-20 17:39:03.805  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of web application directory [E:\apache-tomcat-9.0.17\webapps\host-manager] has finished in [33] ms
2019-05-20 17:39:03.805  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.17\webapps\manager]
2019-05-20 17:39:03.839  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of web application directory [E:\apache-tomcat-9.0.17\webapps\manager] has finished in [34] ms
2019-05-20 17:39:03.840  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.17\webapps\ROOT]
2019-05-20 17:39:03.863  INFO 7884 --- [           main] org.apache.catalina.startup.HostConfig   : Deployment of web application directory [E:\apache-tomcat-9.0.17\webapps\ROOT] has finished in [22] ms
2019-05-20 17:39:03.884  INFO 7884 --- [           main] org.apache.coyote.ajp.AjpNioProtocol     : 开始协议处理句柄["ajp-nio-8009"]
2019-05-20 17:39:03.892  INFO 7884 --- [           main] org.apache.catalina.startup.Catalina     : Server startup in [19,245] milliseconds
2019-05-20 17:39:05.298  INFO 7884 --- [p-nio-80-exec-3] o.a.c.c.C.[.[localhost].[/eureka]        : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-05-20 17:39:05.302  INFO 7884 --- [p-nio-80-exec-3] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-05-20 17:39:05.336  INFO 7884 --- [p-nio-80-exec-3] o.s.web.servlet.DispatcherServlet        : Completed initialization in 33 ms
2019-05-20 17:39:05.997 ERROR 7884 --- [p-nio-80-exec-3] o.s.b.w.servlet.support.ErrorPageFilter  : Cannot forward to error page for request [/] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

  • 写回答

1条回答

  • 暖风很暖 2019-05-21 03:13
    关注

    1,关闭server,通过静态页面尝试显示是否正常;
    2,启动server,确认是否有启动错误日志;
    3,启动后访问页面报错内容“ by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false”,查看tomcat配置文件,修改对应参数。

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。