Eureka Service Registration not working

121 views
Skip to first unread message

leva...@gmail.com

unread,
Jun 28, 2017, 4:03:58 PM6/28/17
to eureka_netflix
Hi everyone,

I have my Spring application (not Spring Boot), which has the following IVY dependencies:


<!-- https://mvnrepository.com/artifact/com.netflix.eureka/eureka-client -->
<dependency org="com.netflix.eureka" name="eureka-client" rev="1.4.12">
<exclude org="com.netflix.servo" />
</dependency>

<!-- https://mvnrepository.com/artifact/com.netflix.servo/servo-core -->
<dependency org="com.netflix.servo" name="servo-core" rev="0.10.0"/>


*Note the specific servo version for jdk 1.7 compatibility.

My eureka-client.properties is as follows:

src/main/resources/eureka-client.properties (on my classpath).

eureka.registration.enabled=true
eureka.preferSameZone=true
eureka.shouldUseDns=false
eureka.serviceUrl.default=http://localhost:8761
eureka.decoderName=JacksonJson
eureka.name=eureka
eureka.port=8761


My Eureka server is running with Spring Boot, it picks up other SpringBoot applications but not my non Spring Boot application.

The Eureka Spring boot application.yaml file is as follows:

server.port=8761

eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

logging.level.com.netflix.eureka=OFF
logging.level.com.netflix.discovery=OFF


I don't need this application to view the registry, only register itself as a service. I've been following the github documentation for configuration and my understanding is all I need to do to register myself as a service is:
- Include the erueka-client depency
- Configure the eureka-client.properties file

The app in question in not outputting any logs of any kind. It's asif the jar is never even seen. I've confirmed that the eureka/netflix jars are in my build folder.

Wondering if I'm missing anything. Thanks for any help!

Reply all
Reply to author
Forward
0 new messages