Issues

Select view

Select search mode

 
50 of 70

txw2 should be included in zanata-cli 0install

Ready for Release

Description

0install does not add the txw2.jar library to the installation. Thus xliff translation pull fails with a :

{{Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/txw2/output/IndentingXMLStreamWriter
at org.zanata.adapter.xliff.XliffWriter.writeFile(XliffWriter.java:206)
at org.zanata.adapter.xliff.XliffWriter.write(XliffWriter.java:179)
at org.zanata.client.commands.pull.XliffStrategy.writeTransFile(XliffStrategy.java:64)
at org.zanata.client.commands.pull.PullCommand.writeTargetDoc(PullCommand.java:424)
at org.zanata.client.commands.pull.PullCommand.pullDocForLocale(PullCommand.java:363)
at org.zanata.client.commands.pull.PullCommand.run(PullCommand.java:249)
at org.zanata.client.commands.ConfigurableCommand.runWithActions(ConfigurableCommand.java:110)
at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:48)
at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:170)
at org.zanata.client.ZanataClient.main(ZanataClient.java:95)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.txw2.output.IndentingXMLStreamWriter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
}}

Environment

Ubuntu 15.10

Details

Assignee

Reporter

Labels

Sprint

Fix versions

Affects versions

Priority

More fields

Created 7 February 2016 at 17:58
Updated 27 June 2018 at 02:21
Resolved 2 March 2016 at 04:14

Activity

Show:

Former user9 February 2016 at 23:22

We are using a class that depend on specific jdk internal class. We could fix this by using an alternative library. See http://stackoverflow.com/questions/10105187/java-indentingxmlstreamwriter-alternative

Alex Garel9 February 2016 at 22:20

It's libtxw2-java
But I don't think it's related as the java environment is controlled by 0install.

To make the client work with xliff, I manually edit .cache/0install.net/implementations/sha....
I added txw2.jar to lib/ and edited bin/zanata-cli to add :"$REPO"/txw2.jar to CLASSPATH=

Ding-Yi Chen8 February 2016 at 23:58
Edited

What is the package that contains txw2.jar in Ubuntu 15.10?

Carlos Munoz7 February 2016 at 23:28

Could you please take a look? Sounds like it's trying to use a sun JDK internal class.

Loading...