{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/252","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/252/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/252/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/252","id":60633401,"number":252,"title":"Eureka Server not working with Jetty","user":{"login":"marcelalburg","id":4396769,"avatar_url":"https://avatars.githubusercontent.com/u/4396769?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelalburg","html_url":"https://github.com/marcelalburg","followers_url":"https://api.github.com/users/marcelalburg/followers","following_url":"https://api.github.com/users/marcelalburg/following{/other_user}","gists_url":"https://api.github.com/users/marcelalburg/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelalburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelalburg/subscriptions","organizations_url":"https://api.github.com/users/marcelalburg/orgs","repos_url":"https://api.github.com/users/marcelalburg/repos","events_url":"https://api.github.com/users/marcelalburg/events{/privacy}","received_events_url":"https://api.github.com/users/marcelalburg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-11T09:50:35Z","updated_at":"2015-07-27T21:06:24Z","closed_at":"2015-07-27T21:06:23Z","body":"Hello,\r\n\r\ni use this sample to test the Eureka Server: https://github.com/spring-cloud-samples/eureka\r\n\r\nbut i don't wanna use tomcat, because of that, i changed to jetty (see pom.xml above).\r\n\r\nThe startup with tomcat it working correctly, but when i try to start with Jetty following error occours:\r\n\r\n```\r\n2015-03-11 10:44:33.448  INFO 20188 --- [           main] c.s.j.api.core.PackagesResourceConfig    : Scanning for root resource and provider classes in the packages:\r\n  com.netflix.discovery\r\n  com.netflix.eureka\r\n\r\n2015-03-11 10:44:33.457  INFO 20188 --- [           main] utoConfigurationReportLoggingInitializer : \r\n\r\nError starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)\r\n\r\n\r\n2015-03-11 10:44:33.463 ERROR 20188 --- [           main] o.s.boot.SpringApplication               : Application startup failed\r\n\r\njava.lang.IncompatibleClassChangeError: Implementing class\r\n\tat java.lang.ClassLoader.defineClass1(Native Method)\r\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:800)\r\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:449)\r\n\tat java.net.URLClassLoader.access$100(URLClassLoader.java:71)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n\tat com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79)\r\n\tat com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104)\r\n\tat com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78)\r\n\tat com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:700)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:678)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:727)\r\n\tat org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)\r\n\tat org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46)\r\n\tat org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext.deferredInitialize(JettyEmbeddedWebAppContext.java:36)\r\n\tat org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.handleDeferredInitialize(JettyEmbeddedServletContainer.java:163)\r\n\tat org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start(JettyEmbeddedServletContainer.java:110)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:320)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:957)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:946)\r\n\tat eurekademo.EurekaApplication.main(EurekaApplication.java:19)\r\n```\r\n\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n\r\n\t<groupId>org.demo</groupId>\r\n\t<artifactId>eureka</artifactId>\r\n\t<version>0.0.1-SNAPSHOT</version>\r\n\t<packaging>jar</packaging>\r\n\r\n\t<name>Eureka Server</name>\r\n\t<description>Eureka Server demo project</description>\r\n\r\n\t<parent>\r\n\t\t<groupId>org.springframework.cloud</groupId>\r\n\t\t<artifactId>spring-cloud-starter-parent</artifactId>\r\n\t\t<version>1.0.0.RELEASE</version>\r\n\t\t<relativePath /> <!-- lookup parent from repository -->\r\n\t</parent>\r\n\r\n\t<dependencies>\r\n\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t<artifactId>spring-boot-starter-web</artifactId>\r\n\t\t\t<exclusions>\r\n\t\t\t\t<exclusion>\r\n\t\t\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t\t\t<artifactId>spring-boot-starter-tomcat</artifactId>\r\n\t\t\t\t</exclusion>\r\n\t\t\t</exclusions>\r\n\t\t</dependency>\r\n\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t<artifactId>spring-boot-starter-jetty</artifactId>\r\n\t\t</dependency>\r\n\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.springframework.cloud</groupId>\r\n\t\t\t<artifactId>spring-cloud-starter-eureka-server</artifactId>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t<artifactId>spring-boot-starter-security</artifactId>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t<artifactId>spring-boot-starter-test</artifactId>\r\n\t\t\t<scope>test</scope>\r\n\t\t</dependency>\r\n\t</dependencies>\r\n\r\n\t<properties>\r\n\t\t<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n\t\t<start-class>eurekademo.EurekaApplication</start-class>\r\n\t\t<java.version>1.8</java.version>\r\n\t</properties>\r\n\r\n\t<build>\r\n\t\t<plugins>\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t\t\t<artifactId>spring-boot-maven-plugin</artifactId>\r\n\t\t\t\t<!-- defined in spring-cloud-starter-parent pom (as documentation hint), \r\n\t\t\t\t\tbut needs to be repeated here -->\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<requiresUnpack>\r\n\t\t\t\t\t\t<dependency>\r\n\t\t\t\t\t\t\t<groupId>com.netflix.eureka</groupId>\r\n\t\t\t\t\t\t\t<artifactId>eureka-core</artifactId>\r\n\t\t\t\t\t\t</dependency>\r\n\t\t\t\t\t\t<dependency>\r\n\t\t\t\t\t\t\t<groupId>com.netflix.eureka</groupId>\r\n\t\t\t\t\t\t\t<artifactId>eureka-client</artifactId>\r\n\t\t\t\t\t\t</dependency>\r\n\t\t\t\t\t</requiresUnpack>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>pl.project13.maven</groupId>\r\n\t\t\t\t<artifactId>git-commit-id-plugin</artifactId>\r\n\t\t\t</plugin>\r\n\t\t\t<plugin>\r\n\t\t\t\t<!--skip deploy (this is just a test module) -->\r\n\t\t\t\t<artifactId>maven-deploy-plugin</artifactId>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<skip>true</skip>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\t\t</plugins>\r\n\t</build>\r\n\r\n\t<repositories>\r\n\t\t<repository>\r\n\t\t\t<id>spring-snapshots</id>\r\n\t\t\t<name>Spring Snapshots</name>\r\n\t\t\t<url>http://repo.spring.io/libs-snapshot-local</url>\r\n\t\t\t<snapshots>\r\n\t\t\t\t<enabled>true</enabled>\r\n\t\t\t</snapshots>\r\n\t\t</repository>\r\n\t\t<repository>\r\n\t\t\t<id>spring-milestones</id>\r\n\t\t\t<name>Spring Milestones</name>\r\n\t\t\t<url>http://repo.spring.io/libs-milestone-local</url>\r\n\t\t\t<snapshots>\r\n\t\t\t\t<enabled>false</enabled>\r\n\t\t\t</snapshots>\r\n\t\t</repository>\r\n\t\t<repository>\r\n\t\t\t<id>spring-releases</id>\r\n\t\t\t<name>Spring Releases</name>\r\n\t\t\t<url>http://repo.spring.io/libs-release-local</url>\r\n\t\t\t<snapshots>\r\n\t\t\t\t<enabled>false</enabled>\r\n\t\t\t</snapshots>\r\n\t\t</repository>\r\n\t</repositories>\r\n\t<pluginRepositories>\r\n\t\t<pluginRepository>\r\n\t\t\t<id>spring-snapshots</id>\r\n\t\t\t<name>Spring Snapshots</name>\r\n\t\t\t<url>http://repo.spring.io/libs-snapshot-local</url>\r\n\t\t\t<snapshots>\r\n\t\t\t\t<enabled>true</enabled>\r\n\t\t\t</snapshots>\r\n\t\t</pluginRepository>\r\n\t\t<pluginRepository>\r\n\t\t\t<id>spring-milestones</id>\r\n\t\t\t<name>Spring Milestones</name>\r\n\t\t\t<url>http://repo.spring.io/libs-milestone-local</url>\r\n\t\t\t<snapshots>\r\n\t\t\t\t<enabled>false</enabled>\r\n\t\t\t</snapshots>\r\n\t\t</pluginRepository>\r\n\t</pluginRepositories>\r\n\r\n</project>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/125342459","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/252#issuecomment-125342459","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/252","id":125342459,"user":{"login":"spencergibb","id":594085,"avatar_url":"https://avatars.githubusercontent.com/u/594085?v=3","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T21:06:23Z","updated_at":"2015-07-27T21:06:23Z","body":"Closed for lack of feedback. Please, reopen if there is something new to add."}}