Unable to run DITA-OT 2.0.1 with XEP

62 views
Skip to first unread message

guillaume SEJOURNE

unread,
Apr 2, 2015, 8:44:03 AM4/2/15
to dita-o...@googlegroups.com
Hi,

Short story: I've been using DITA-OT 1.5 for quite a while, and decided to try out switching to 2.0.1.


- I'm using xep as the fo processor (and have always been with prior dita ot versions).

- running the sample pdf transform, I get this error:

[xep] Error: Could not find or load main class com.idiominc.ws.opentopic.fo.xep.Runner
[xep] Java Result: 1


-(Note: the other transtypes I've tried, html, etc. seem to work fine

The environment variables are set properly as far as I can tell, and apart from this issue: https://github.com/dita-ot/dita-ot/issues/1626
which seems to imply the problem was solved in 1.8.6, I haven't found any good indication of what this could mean.

Thanks for your help,

-Guillaume

Jarno Elovirta

unread,
Apr 2, 2015, 1:54:39 PM4/2/15
to guillaume SEJOURNE, dita-o...@googlegroups.com
How did you run OT? How was the classpath set up? Is XEP installed into the correct directory, plugins/org.dita.pdf2/lib/xep?

J

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

guillaume SEJOURNE

unread,
Apr 2, 2015, 2:14:36 PM4/2/15
to dita-o...@googlegroups.com, guillaume...@gmail.com
- Ran OT through the ant CLI (works fine as long as I stick to FOP by the way)
- Classpath was setup through environment variables, as I mentioned above (followed the data guide instructions): they're available in my shell session when I echo them,
- First time I hear about the "proper directory" for xep, so the answer is no, it's not installed under the DITA-OT lib tree, as I didn't think it would make sense, as it's installed system wide already,
but: I just tried it, and it doesn't make any difference: still getting the same error.
By the way, when you list plugins/org.dita.pdf2/lib/xep as the correct path, is it what's supposed to be the xep.dir path ? or the path to the binary (the xep shell launcher actually)?

Thanks,

guillaume SEJOURNE

unread,
Apr 3, 2015, 4:06:52 AM4/3/15
to dita-o...@googlegroups.com, guillaume...@gmail.com
If I may add to this,

When comparing the various versions, I found out that the precompiled fo.jar that's shipped with the client version of DITA_OT 2.0.1 does not contain the 
xep class (only index2 and i18n).

guillaume SEJOURNE

unread,
Apr 3, 2015, 4:44:03 AM4/3/15
to dita-o...@googlegroups.com, guillaume...@gmail.com
Found the reason in the end, why investigating why the xep classes were not in the shipped fo.jar:

1/ Downloaded the 2.0.1 sources for data-ot from github
2/ Compiled the various classes
3/ the fo.jar file did not contain the xep classes.

In the ./src/main/plugins/org.dita.pdf2/buildPackage.xml, looks like the if="xep-available" condition for building the xep class should be removed altogether...
I don't think it makes sense to force copy the XEP directory in the build environment...

So, in the end, I copied my XEP install dir over to the build library path (compile.path), and compiled the classes again: it worked.
Reply all
Reply to author
Forward
0 new messages