zanata-cli init return error

Description

I got this error message for "zanata-cli init":
zanata-cli -e init
[ERROR] Execution failed:
javax.xml.bind.JAXBException

  • with linked exception:
    [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:241)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:477)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:656)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
    at org.zanata.client.commands.OptionsUtil.readProjectConfigFile(OptionsUtil.java:157)
    at org.zanata.client.commands.OptionsUtil.applyProjectConfigToProjectOptions(OptionsUtil.java:87)
    at org.zanata.client.commands.OptionsUtil.applyConfigFiles(OptionsUtil.java:55)
    at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:42)
    at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:182)
    at org.zanata.client.ZanataClient.main(ZanataClient.java:103)
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:594)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:239)
    ... 9 more

Tested with v4.4.0 and v4.6.1.

zanat.xml and config/zanata.ini are just downloaded from the website.

Environment

None

Status

Assignee

Unassigned

Reporter

Gábor Kiss-Vámosi

Labels

None

Tested Version/s

None

Priority

unspecified
Configure