Hi I hope to get rid of the dependency completely since we shouldn't need it at all but for now the way to have it working is to use --add-modules. Feel free to do a PR to remove it completely if you want, it would be very welcomed.
side note: we also need to upgrade OWB when released to support java 9. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> 2017-12-18 12:08 GMT+01:00 Ravisankar Challa <[email protected]>: > Meecrowave not working with java 9 (using latest snapshot of openwebbeans) > > Caused by: org.apache.webbeans.exception.WebBeansException: > java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException > at > org.apache.webbeans.event.ObserverMethodImpl.notify( > ObserverMethodImpl.java:371) > ~[openwebbeans-impl-2.0.3-SNAPSHOT.jar:2.0.3-SNAPSHOT] > > JEP - http://openjdk.java.net/jeps/320 - Removes the below modules > > java.xml.ws (JAX-WS, plus the related technologies SAAJ and Web Services > Metadata) > java.xml.bind (JAXB) > java.activation (JAF) > java.xml.ws.annotation (Common Annotations) > java.corba (CORBA) > java.transaction (JTA) > > java.se.ee (Aggregator module for the six modules above) > jdk.xml.ws (Tools for JAX-WS) > jdk.xml.bind (Tools for JAXB) > > Adding --add-modules java.xml.bind or java.se.ee will work for now but it > would be nice if we have dependencies part of meecrowave. > > Starts after adding these below 2 dependencies to pom.xml > > <dependency> > <groupId>javax.xml.bind</groupId> > <artifactId>jaxb-api</artifactId> > <version>2.3.0</version> > </dependency> > <dependency> > <groupId>javax.activation</groupId> > <artifactId>activation</artifactId> > <version>1.1.1</version> > </dependency> > > <!--<dependency> > <groupId>com.sun.xml.bind</groupId> > <artifactId>jaxb-impl</artifactId> > <version>2.3.0</version> > </dependency> > <dependency> > <groupId>com.sun.xml.bind</groupId> > <artifactId>jaxb-core</artifactId> > <version>2.3.0</version> > </dependency>--> >
