question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not build with jdk 11

See original GitHub issue

Tried JDK 11 with the complete repository out of the box:

[WARNING] The POM for org.glassfish.jaxb:jaxb-runtime:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.glassfish.jaxb:jaxb-xjc:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Error injecting: org.jvnet.mjiip.v_2.XJC2Mojo
java.lang.NoClassDefFoundError: com/sun/xml/bind/api/ErrorListener

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
gregturncommented, Oct 10, 2019

If you add this ONE dependency to gs-producing-web-service:

<dependency>
	<groupId>org.glassfish.jaxb</groupId>
	<artifactId>jaxb-runtime</artifactId>
	<version>2.3.2</version>
</dependency>

…then you can bump it’s java.version to 11 and run it.

That, combined with the changes found in https://github.com/edevil/spring-test/pull/2 should do the trick.

0reactions
edevilcommented, Oct 10, 2019

@dsyer Yeah, I had already bumped that version. I was completely unaware that this new problem was on the server side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to compile simple Java 10 / Java 11 project with Maven
The answer is now obsolete. See this answer. maven-compiler-plugin depends on the old version of ASM which does not support Java 10 (and...
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
In this article. The toolbox; Running on Java 11; Next steps. There's no one-size-fits-all solution to transition code from Java 8 to Java ......
Read more >
JDK 11 Release Notes, Important Changes, and Information
In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered. Users can use jlink to create...
Read more >
Building Java & JVM projects - Gradle User Manual
If you don't have much experience with building JVM-based projects with Gradle, ... java { toolchain { languageVersion = JavaLanguageVersion.of(11) } ...
Read more >
Selecting the JDK version the IDE will run under
Our IDEs will not run on the older Java versions like Java 8. ... the latest Oracle JDK or OpenJDK build available on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found