You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue with this different package :
org.glassfish.jaxb:jaxb-xjc:4.0.4
com.sun.xml.bind:jaxb-xjc:4.0.4
The issue is the following.
I'm using org.eclipse.persistence.moxy which need jaxb-xjc.
If I set up my dependency (and module-info.java just to force loading the xjc module) to use the glassfish implementation. I have the following errors
Module org.eclipse.persistence.moxy does not read a module that exports com.sun.tools.xjc
When I use the com.sun implementation, there is no problem.
I want to use the glassfish because my module which use moxy will be required by a bigger project that already have the glassfish implementation and I can not switch it.
When debugging JPMS module resolution, this doesn't give more information except the module name changing
(extract with glassfish):
root com.example.moxy.moxy.xjc.example file:///home/xmourgues/projects/prj-collection/workspace/moxy-xjc-example/target/classes/
com.example.moxy.moxy.xjc.example requires org.eclipse.persistence.moxy file:///home/xmourgues/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.moxy/4.0.4/org.eclipse.persistence.moxy-4.0.4.jar
com.example.moxy.moxy.xjc.example requires org.glassfish.jaxb.xjc file:///home/xmourgues/.m2/repository/org/glassfish/jaxb/jaxb-xjc/4.0.4/jaxb-xjc-4.0.4.jar
...
org.glassfish.jaxb.xjc binds org.eclipse.persistence.moxy file:///home/xmourgues/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.moxy/4.0.4/org.eclipse.persistence.moxy-4.0.4.jar
...
java.lang.module.ResolutionException: Module org.eclipse.persistence.moxy does not read a module that exports com.sun.tools.xjc
I tried adding --add-reads org.eclipse.persistence.moxy=org.glassfish.jaxb.xjc but it doesnt fix the issue
Here is a repository with a minimal test to reproduce : https://github.com/xmourgues/moxy-xjc-example
All you have to do is switch dependency in the pom.xml and change the requires in the module-info.java
Any help is welcomed
Thanks !
The text was updated successfully, but these errors were encountered:
Hello,
I'm having an issue with this different package :
org.glassfish.jaxb:jaxb-xjc:4.0.4
com.sun.xml.bind:jaxb-xjc:4.0.4
The issue is the following.
I'm using org.eclipse.persistence.moxy which need jaxb-xjc.
If I set up my dependency (and module-info.java just to force loading the xjc module) to use the glassfish implementation. I have the following errors
When I use the com.sun implementation, there is no problem.
I want to use the glassfish because my module which use moxy will be required by a bigger project that already have the glassfish implementation and I can not switch it.
When debugging JPMS module resolution, this doesn't give more information except the module name changing
(extract with glassfish):
(same extract with com.sun):
I tried adding
--add-reads org.eclipse.persistence.moxy=org.glassfish.jaxb.xjc
but it doesnt fix the issueHere is a repository with a minimal test to reproduce : https://github.com/xmourgues/moxy-xjc-example
All you have to do is switch dependency in the pom.xml and change the requires in the module-info.java
Any help is welcomed
Thanks !
The text was updated successfully, but these errors were encountered: