I am using
dom4j as my xml library in conjunction with my Selenium/Java project. It seemed simple enough, until I got the following stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException
I tried a lot of things to resolve this, and finally figured it out: dom4j has a dependency on the jaxen jar. If you grab just the dom4j jar, obviously you don't get that. You have to grab the jaxen jar, put it in your buildpath and have it included before your dom4j jar.
A simple thing that took me a little while to figure out.
Print | posted on Friday, February 27, 2009 3:13 PM