How to add java.xml.bind (jaxb) as a module in java 11? [duplicate]
This question already has an answer here:
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
19 answers
Replacements for deprecated JPMS modules with Java EE APIs
4 answers
I'm already switching java version from 8 to 11 in one of the project and facing with the problem with removed ee modules (jeps320).
I'm using gradle to build the project and added as a runtime dependency
'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438
'
and I have this jar inside created project spring boot fat jar in the library. Unfortunatelly I got th following expcetion
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
(I didn"t add java.xml.bind to the module-info and when I'm trying to start an app from command line with the switche --add-modules="java.xml.bind" I got an error.
java.lang.module.FindException: Module javax.xml.bind not found
Any idea? How to solve this?
java spring-boot gradle jigsaw
marked as duplicate by nullpointer
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 18:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
19 answers
Replacements for deprecated JPMS modules with Java EE APIs
4 answers
I'm already switching java version from 8 to 11 in one of the project and facing with the problem with removed ee modules (jeps320).
I'm using gradle to build the project and added as a runtime dependency
'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438
'
and I have this jar inside created project spring boot fat jar in the library. Unfortunatelly I got th following expcetion
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
(I didn"t add java.xml.bind to the module-info and when I'm trying to start an app from command line with the switche --add-modules="java.xml.bind" I got an error.
java.lang.module.FindException: Module javax.xml.bind not found
Any idea? How to solve this?
java spring-boot gradle jigsaw
marked as duplicate by nullpointer
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 18:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42
add a comment |
This question already has an answer here:
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
19 answers
Replacements for deprecated JPMS modules with Java EE APIs
4 answers
I'm already switching java version from 8 to 11 in one of the project and facing with the problem with removed ee modules (jeps320).
I'm using gradle to build the project and added as a runtime dependency
'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438
'
and I have this jar inside created project spring boot fat jar in the library. Unfortunatelly I got th following expcetion
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
(I didn"t add java.xml.bind to the module-info and when I'm trying to start an app from command line with the switche --add-modules="java.xml.bind" I got an error.
java.lang.module.FindException: Module javax.xml.bind not found
Any idea? How to solve this?
java spring-boot gradle jigsaw
This question already has an answer here:
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
19 answers
Replacements for deprecated JPMS modules with Java EE APIs
4 answers
I'm already switching java version from 8 to 11 in one of the project and facing with the problem with removed ee modules (jeps320).
I'm using gradle to build the project and added as a runtime dependency
'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438
'
and I have this jar inside created project spring boot fat jar in the library. Unfortunatelly I got th following expcetion
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
(I didn"t add java.xml.bind to the module-info and when I'm trying to start an app from command line with the switche --add-modules="java.xml.bind" I got an error.
java.lang.module.FindException: Module javax.xml.bind not found
Any idea? How to solve this?
This question already has an answer here:
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
19 answers
Replacements for deprecated JPMS modules with Java EE APIs
4 answers
java spring-boot gradle jigsaw
java spring-boot gradle jigsaw
asked Nov 14 '18 at 13:07
user6778654user6778654
1,17983058
1,17983058
marked as duplicate by nullpointer
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 18:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by nullpointer
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 14 '18 at 18:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42
add a comment |
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maybe look at stackoverflow.com/questions/52502189/….
– Ralf Renz
Nov 14 '18 at 13:15
I did it but got milons of error like below. 14:27:48.086 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API. 14:27:48.997 [ERROR] [system.err] error: the unnamed module reads package javax.xml.stream from both stax.api and java.xml
– user6778654
Nov 14 '18 at 13:29
@user6778654 You're possibly moving to the modular world of java for the first time. This is where you would find such issues like module not found, split packages etc commonly. You would need to have some patience and gradually solve for them one at a time.
– nullpointer
Nov 14 '18 at 18:42