{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/516","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/516/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/516/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/516","id":105267211,"number":516,"title":"ClassNotFoundException: com.netflix.eureka.converters.EntityBodyConverter","user":{"login":"robhinds","id":990789,"avatar_url":"https://avatars.githubusercontent.com/u/990789?v=3","gravatar_id":"","url":"https://api.github.com/users/robhinds","html_url":"https://github.com/robhinds","followers_url":"https://api.github.com/users/robhinds/followers","following_url":"https://api.github.com/users/robhinds/following{/other_user}","gists_url":"https://api.github.com/users/robhinds/gists{/gist_id}","starred_url":"https://api.github.com/users/robhinds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robhinds/subscriptions","organizations_url":"https://api.github.com/users/robhinds/orgs","repos_url":"https://api.github.com/users/robhinds/repos","events_url":"https://api.github.com/users/robhinds/events{/privacy}","received_events_url":"https://api.github.com/users/robhinds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-07T21:05:09Z","updated_at":"2015-10-03T08:48:00Z","closed_at":null,"body":"This is the error first described here: https://github.com/spring-cloud/spring-cloud-netflix/issues/60\r\n\r\nI am trying to setup Spring-Boot microservices with Eureka with a very basic starting point, and the application starts up, but when I attempt to navigate to the Eureka dashboard I get the following error:\r\n\r\n```\r\n2015-09-07 20:55:40.011 ERROR 6792 --- [nio-1111-exec-1] c.n.d.provider.DiscoveryJerseyProvider   : Error creating a serializer.\r\n\r\njava.lang.ClassNotFoundException: com.netflix.eureka.converters.EntityBodyConverter\r\n\tat java.net.URLClassLoader$1.run(Unknown Source)\r\n\tat java.net.URLClassLoader$1.run(Unknown Source)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(Unknown Source)\r\n\tat java.lang.ClassLoader.loadClass(Unknown Source)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)\r\n\tat java.lang.ClassLoader.loadClass(Unknown Source)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Unknown Source)\r\n\tat com.netflix.discovery.provider.DiscoveryJerseyProvider.getSerializer(DiscoveryJerseyProvider.java:207)\r\n\tat com.netflix.discovery.provider.DiscoveryJerseyProvider.writeTo(DiscoveryJerseyProvider.java:152)\r\n\tat com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1448)\r\n...\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:68)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n```\r\n\r\n\r\nHaving looked at the eureka client JAR that is being pulled down as a dependency (eureka-client-1.1.147) I can see it has the updated package names as per this change: https://github.com/Netflix/eureka/commit/539ea4b4f4fa43061f90c836d759ddf7e733ebf8 which is causing the problem. \r\n\r\nI am running the latest STS (3.7.0), Spring Boot 1.2.5 and Java 8.  Looking at the referenced libraries inside STS I can see that it has eureka-core-1.1.147 and eureka-client-1.1.147 - but looking at the source of the classes I can see that those JARs are incompatible (the eureka-client JAR has the .discovery. package names, whilst the eureka-core has the class com.netflix.eureka.util.StatusInfo that still has an incorrect annotation referencing the old package name)\r\n\r\nThis problem only occurs whilst running directly with STS - if I just execute the JAR from the command line the Eureka dashboard works correctly - Possibly related to this: https://github.com/spring-cloud/spring-cloud-netflix/issues/399 - I will continue to investigate to see if I can get to the bottom of the behaviour.\r\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/145220688","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/516#issuecomment-145220688","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/516","id":145220688,"user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T08:48:00Z","updated_at":"2015-10-03T08:48:00Z","body":"Also if it works with the jar but not STS it's possible it's a bug in STS. Try right clicking on the main method and `Run As -> Java Application` (not `Spring Boot Application`)."}}