Just Write Click

Technical writing with Continuous Integration and docs-as-code

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code
You are here: Home / talk.bmc / Troubleshooting tip for the DITA Open Toolkit installation

June 23, 2006 by annegentle

Troubleshooting tip for the DITA Open Toolkit installation

Finally figured out the fix for my DITA Open Toolkit “resource/messages.xml” not found error

Thanks to David Brainard for figuring out the basic problem! At BMC, we all have a Documentum client installed on our desktops, so with the 4i client, my Classpath contained C:\Program Files\Documentum\Shared\dfc.jar. Apparently there is a collision of some sort between Documentum’s dfc.jar and DITA’s lib\dost.jar in the classpath which prevented the DITA Open Toolkit from running, manifesting itself as errors finding resource\messages.xml.

In my case, the fix was to remove the reference to C:\Program Files\Documentum\Shared\dfc.jar from my Classpath environment variable. Since this discovery, I’ve upgraded to Documentum 5 client, and there is no longer a collision. The Documentum 5 client inserted “C:\Program Files\Documentum\dctm.jar” in my classpath, but the DITA Open Toolkit doesn’t seem to mind that.

Apparently other applications can be “classpath hogs” so to speak, so if you get a “can’t find resource\messages.xml” error message, remove other items from your Classpath variable one-by-one until you find the culprit. In my case, we created a simple “run.bat” file that contained only:

set CLASSPATH=C:\saxon\saxon.jar;C:\ant\apache-ant-1.6.5;\lib\dost.jar;.

ant demo.faq

Couple of notes about this batch file – the dot at the end is for your current directory. We chose to do ant demo.faq rather than ant all because it won’t take as long if the build is successful. An “ant all” build can take anywhere from 2-13 minutes.

By setting the classpath just for this session and running this batch file within the DITA-OT-1.2.2 directory, we could pinpoint that it was my Classpath that was the issue, and then remove entries one by one. It’s a handy troubleshooting tip. Thanks again Dave!

Related

Filed Under: talk.bmc Tagged With: DITA, DITA Open Toolkit

More reading

Bubble graph showing sources of developer support data

I’ve been thinking a lot about developer support at Cisco recently, especially for the way the world works today with multiple cloud providers. This post is a re-publish of my talk from over five years ago, but the techniques and tools for listening and helping others are still true today. At Rackspace, we watched several […]

Cisco DevNet is our developer program for outreach, education, and tools for developers at Cisco. From the beginning, the team has had a vision for how to run a developer program. Customers are first, and the team implements what Cisco customers need for automation, configuration, and deployment of our various offerings. Plus, the DevNet team […]

I had a great talk with Ellis Pratt of Cherryleaf Technical Writing consulting last week. Here are the show notes, full of links to all the topics we covered. Podcasts are great fun to listen to and participate in, if a bit nerve-wracking to think on your feet and make sure you answer questions succinctly […]

At the beginning of this year, I worked hard to summarize my thoughts on API documentation, continuous publishing, and technical accuracy for developer documentation. The result is an article on InfoQ.com, edited by Deepak Nadig, who also was forward-thinking in having me speak to a few teams at Intuit about API documentation coupled with code. Always […]

Recently on Just Write Click

  • A Flight of Static Site Generators: Sampling the Best for Documentation
  • Try a GPT about “Docs Like Code” to ask questions
  • Discipline and Diplomacy: Docs in the Open
  • Let’s Find Out: When Do Static Site Generators Do Rendering?
  • GitHub for Managing Tech Docs

Just Write Click in your Inbox

Enter your email address to subscribe to Just Write Click and receive notifications of new posts by email.

Read More

  • Privacy Policy
  • About Anne Gentle, developer experience expert
  • Books by Anne Gentle
    • Conversation and Community
    • Docs Like Code, a Book for Developers and Tech Writers
  • Woman in Tech Speaker Profile
  • Contact

Books

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code

Copyright © 2025 · WordPress · Log in