Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document The Need To Add JAXB Dependencies When Using JDK 11 #3244

Closed
joshlong opened this issue Oct 22, 2018 · 2 comments

Comments

@joshlong
Copy link

commented Oct 22, 2018

@EnableEurekaServer in org.springframework.cloud:spring-cloud-starter-netflix-eureka-server requires JAXB which no longer exists on Java 11

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) ~[na:na]
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
   at java.base/java.lang.Class.forName0(Native Method) ~[na:na]
   at java.base/java.lang.Class.forName(Class.java:398) ~[na:na]
   at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) ~[na:na]
@ryanjbaxter

This comment has been minimized.

Copy link
Contributor

commented Oct 22, 2018

@joshlong we have to support those that use jdk 11 and those that dont. For now if you are using JDK 11 you will have to include the jars in your pom.

@ryanjbaxter ryanjbaxter added this to To do in Greenwich.M2 via automation Oct 22, 2018

@ryanjbaxter ryanjbaxter added this to the 2.1.0.RC1 milestone Oct 22, 2018

@ryanjbaxter ryanjbaxter changed the title `@EnableEurekaServer` in `org.springframework.cloud`:`spring-cloud-starter-netflix-eureka-server` requires JAXB which no longer exists on Java 11 Document The Need To Add JAXB Dependencies When Using JDK 11 Oct 22, 2018

@ryanjbaxter ryanjbaxter removed this from To do in Greenwich.M2 Nov 19, 2018

@ryanjbaxter ryanjbaxter added this to To do in Greenwich.RC1 via automation Nov 19, 2018

@spencergibb spencergibb modified the milestones: 2.1.0.M2, 2.1.0.RC1 Nov 20, 2018

Greenwich.RC1 automation moved this from To do to Done Dec 10, 2018

@DerekWWestAwesomeDeveloper

This comment has been minimized.

Copy link

commented Dec 31, 2018

Looks like that applies to Java 9 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
5 participants
You can’t perform that action at this time.