Re: Problem with JAXBContext.newInstance

2019-02-13 Thread Alan Bateman
On 13/02/2019 12:05, Oliver Z. wrote: I found the solution. Pretty trivial, but probably unexpected when migrating. It is required to have 2 require entries in the module-info.java. I guess one for the API, and one for the implementation: requires java.xml.bind; requires com.sun.xml.bind; Thi

Re: Problem with JAXBContext.newInstance

2019-02-13 Thread Oliver Z.
I found the solution. Pretty trivial, but probably unexpected when migrating. It is required to have 2 require entries in the module-info.java. I guess one for the API, and one for the implementation: requires java.xml.bind; requires com.sun.xml.bind; Then it works. Thanks for your effort! Am

Re: Problem with JAXBContext.newInstance

2019-02-13 Thread Alan Bateman
On 13/02/2019 11:14, Oliver Z. wrote: Can you tell me where i can download the JAXB 2.4 final module? I only found 2.4.0-b... which does not seem to be a final to me. I also tried to write to that list but i am waiting for approval, which seems pretty long now (maybe the owner is on vacation o

Re: Problem with JAXBContext.newInstance

2019-02-13 Thread Oliver Z.
Can you tell me where i can download the JAXB 2.4 final module? I only found 2.4.0-b... which does not seem to be a final to me. I also tried to write to that list but i am waiting for approval, which seems pretty long now (maybe the owner is on vacation or so..). Do you know any other mailing

Re: Problem with JAXBContext.newInstance

2019-02-11 Thread Lance Andersen
The last time I tried, you could not use JAXB 2.4 as a module but that was before it went final. JAXB has dependencies on JAF so make sure you include that module. If you are still struggling I would follow up on the JAXB dev mailing list https://javaee.groups.io/g/metro for better guidance wit

Re: Problem with JAXBContext.newInstance

2019-02-11 Thread Oliver Z.
Thanks for the documentation link. It says, JPMS is supported when jaxb 2.4.0 comes out. So in that case, this is simply not yet supported, is this correct? For the moment, i can remove the module-info.java, then it works - at least for the moment as workaround, until 2.4.0 is released. I beli

Re: Problem with JAXBContext.newInstance

2019-02-11 Thread Lance Andersen
Using the JAX-B standalone,https://github.com/eclipse-ee4j/jaxb-ri, seems a bit harder than it probably should be given where we are. The following command line with the jars on the classpath: —— java -cp classes/:jars/jaxb-api-2.4.0.jar:jars/jaxb-runtime-2.4.0.jar:jars/jaxb-impl-2.4.0.jar

Problem with JAXBContext.newInstance

2019-02-11 Thread Oliver Z.
Hi, i am trying to create a java 11 application which reads some .xml and that should be mapped to a object. Unfortunately, with java 11 this seems impossible. I created a stackoverflow posting. Maybe someone could take a look at that and help me with my problem. https://stackoverflow.com/quest