[ 
https://issues.apache.org/jira/browse/GROOVY-8631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502404#comment-16502404
 ] 

Eric Milles commented on GROOVY-8631:
-------------------------------------

Solution is discussed here: 
http://groovy-lang.org/releasenotes/groovy-2.5.html#Groovy2.5releasenotes-Knownissues
 (second bullet point from the end) and 
http://groovy.329449.n5.nabble.com/jaxb-dependency-issue-with-groovy-2-5-b3-and-java-10-td5751139.html#a5751140

> Groovy 2.5.0 broken with Java 10.0.1 on MacOS
> ---------------------------------------------
>
>                 Key: GROOVY-8631
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8631
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime, Groovysh
>    Affects Versions: 2.5.0
>         Environment: Groovy Version: 2.5.0 JVM: 10.0.1 Vendor: "Oracle 
> Corporation" OS: Mac OS X
>            Reporter: Phil Mitchell
>            Priority: Major
>         Attachments: groovysh_stacktrace.txt, hello.groovy, 
> hello_stacktrace.txt
>
>
> Running groovy 2.5.0 on Java 10.0.1 appears broken due to module 
> dependencies. Groovy 2.4.15 runs fine with the same Java version on the same 
> machine, and moving back to 2.4.15 fixes the issue.
> The issue is seen running groovy, groovyc or groovysh, which result in the 
> attached stack traces. 
> The missing dependency is on JAXB. The specific class not found depends on 
> what I'm running.
> For groovysh this results in java.lang.NoClassDefFoundError: Unable to load 
> class groovy.xml.jaxb.JaxbGroovyMethods due to missing dependency 
> javax/xml/bind/JAXBContext
> For groovy (running the very trivial script attached) this results in 
> java.lang.NoClassDefFoundError: Unable to load class 
> groovy.xml.jaxb.JaxbGroovyMethods due to missing dependency 
> javax/xml/bind/Unmarshaller
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to