Thursday 28 December 2017

Eureka Dashboard seen as XML instead of expected UI

I had created eureka server springboot module. When I run it with Eclipse or gradle bootRun, eureka server was able to start. But, when I was hitting server and port of eureka server,i was getting response as XML as shown below:



SOLUTION:

I run the eureka server spring boot module by creating jar and running that jar. Now, I am able to see expected UI eureka dashboard.

Steps to run as jar:

sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ gradlew assemble
No command 'gradlew' found, did you mean:
 Command 'gradle' from package 'gradle' (universe)
gradlew: command not found
sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ gradle assemble
Starting a Gradle Daemon, 5 busy Daemons could not be reused, use --status for details
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:findMainClass
:jar
:bootRepackage
:assemble

BUILD SUCCESSFUL

Total time: 6.304 secs
sachin@sachin-E470:~/Microservices/Test/eureka-server-module$ cd build/libs/
sachin@sachin-E470:~/Microservices/Test/eureka-server-module/build/libs$ java -jar ./eureka-server-module-0.0.1-SNAPSHOT.jar 



No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...