Hi Freeman, thanks for the reply. Yes in JDK 11 javax.activation package need to be listed as a dependency. What I'm finding is that there are 2 packages/modules that are requiring javax.activation and if I remove CXF from the dependencies the compiler is not asking for java.activation as a module anymore; this error:
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:3.8.1:compile (default-compile) on project ebinocle-web: Compilation failure [ERROR] module not found: java.activation We have loads of dependencies than I will look if I can reproduce it in a smaller example project. I'm pointing at cxf because looking at mvn dependency:tree I was wondering if it should have jakarta.activation in the tree more than the others activation packages: [INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.3.2:runtime [INFO] | +- org.apache.cxf:cxf-core:jar:3.3.2:compile [INFO] | | +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile [INFO] | | | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile [INFO] | | | +- com.sun.istack:istack-commons- runtime:jar:3.0.7:compile [INFO] | | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile [INFO] | | +- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile [INFO] | | +- org.apache.ws.xmlschema:xmlschema- core:jar:2.2.4:compile [INFO] | | \- org.glassfish.jaxb:jaxb-xjc:jar:2.3.1:compile [INFO] | | +- org.glassfish.jaxb:xsom:jar:2.3.1:compile [INFO] | | +- org.glassfish.jaxb:codemodel:jar:2.3.1:compile [INFO] | | +- com.sun.xml.bind.external:rngom:jar:2.3.1:compile [INFO] | | +- com.sun.xml.dtd-parser:dtd-parser:jar:1.4:compile [INFO] | | +- com.sun.istack:istack-commons- tools:jar:3.0.7:compile [INFO] | | | \- org.apache.ant:ant:jar:1.10.2:compile [INFO] | | | \- org.apache.ant:ant-launcher:jar:1.10.2:compile [INFO] | | \- com.sun.xml.bind.external:relaxng- datatype:jar:2.3.1:compile [INFO] | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.5:runtime [INFO] | +- org.apache.cxf:cxf-rt-transports-http:jar:3.3.2:runtime [INFO] | +- org.apache.cxf:cxf-rt-security:jar:3.3.2:runtime [INFO] | +- javax.xml.ws:jaxws-api:jar:2.3.1:compile [INFO] | | \- javax.xml.soap:javax.xml.soap-api:jar:1.4.0:compile [INFO] | +- com.sun.activation:javax.activation:jar:1.2.0:compile [INFO] | +- org.apache.geronimo.specs:geronimo-ws- metadata_2.0_spec:jar:1.1.3:compile [INFO] | +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.0:compile [INFO] | | +- org.jvnet.mimepull:mimepull:jar:1.9.11:compile [INFO] | | \- org.jvnet.staxex:stax-ex:jar:1.8:compile [INFO] | | \- javax.activation:activation:jar:1.1:compile [INFO] | +- org.jacorb:jacorb-omgapi:jar:3.7:compile [INFO] | +- org.apache.geronimo.specs:geronimo- jta_1.1_spec:jar:1.1.1:compile [INFO] | \- org.jboss.spec.javax.rmi:jboss-rmi- api_1.0_spec:jar:1.0.6.Final:compile I will let you know if I'm able to reproduce elsewhere. Nicola On Thu, 2019-06-06 at 07:36 -0400, Freeman Fang wrote: > Btw, how you see this error? > > If you can append a test project I will take a close look. > ------------- > Freeman(Yue) Fang > > Red Hat, Inc. > > > > > > > On Jun 6, 2019, at 7:35 AM, Freeman Fang <freeman.f...@gmail.com> > > wrote: > > > > Hi Nicola, > > > > Since JDK11, java.activation module was removed from JDK, so you > > shouldn’t use this module anymore. Instead, you should use 3rd > > party lib one. > > > > ------------- > > Freeman(Yue) Fang > > > > Red Hat, Inc. > > > > > > > > > > > > > On Jun 6, 2019, at 4:23 AM, Nicola Buso <nb...@ebi.ac.uk> wrote: > > > > > > Hi everyone, > > > > > > in our application we started looking at updating to OpenJDK 11 > > > (from a > > > Fedora distro for now) > > > > > > --- > > > Apache Maven 3.5.4 (Red Hat 3.5.4-5) > > > Java version: 11.0.3, vendor: Oracle Corporation, runtime: > > > /usr/lib/jvm/java-11-openjdk-11.0.3.7-5.fc30.x86_64 > > > --- > > > > > > I'm compiling against CXF 3.3.2 and getting the following error: > > > > > > [ERROR] Failed to execute goal org.apache.maven.plugins:maven- > > > compiler- > > > plugin:3.8.1:compile (default-compile) on project ebinocle-web: > > > Compilation failure > > > [ERROR] module not found: java.activation > > > > > > If I 'require' java.activation in my java module I will get in > > > trouble > > > because all other dependencies are using jakarta.activation as a > > > requirement. > > > > > > What is the plan for CXF? are you going to move to > > > jakarta.activation > > > or do you have different suggestions? > > > > > > > > > > > > Nicola > > > > > > > > > -- > > > Nicola Buso > > > Software Engineer - Web Production Team > > > > > > European Bioinformatics Institute (EMBL-EBI) > > > European Molecular Biology Laboratory > > > > > > Wellcome Trust Genome Campus > > > Hinxton > > > Cambridge CB10 1SD > > > United Kingdom > > > > > > URL: http://www.ebi.ac.uk > > > > > > > > > > >