So xpath works if I include jaxen To parse the document: Here is the code I’m using. Hope this helps anyone with a similar problem. In the unlikely event that anyone else should encounter this issue in JBoss Fuse I’ll add what solved my problem:. Your xpath expressions are not even being evaluated so you should stoptweaking those until you have sorted out your classpath issues.
||1 May 2013
||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
||Free* [*Free Regsitration Required]
Subscribe to RSS
You will need to wrap both the jaxen- and the dom4j jars as OSGi-bundles. Hope this helps anyone with a similar problem. Active 2 years, 10 months ago.
Download jaxenjar : jaxen « j « Jar File Download
I jaxenn the distribution included jjaxen jaxen lib as well, but I included the jar now just to see, and it did remove the error message. Remove unneeded jars and add only the ones that are used. NoClassDefFoundError is thrown by the JVM when a dependency that was available at the time a particular class was compiled cannot be found on the classpath when the class is loaded for use by the JVM.
To parse the document: If you are invoking the parser from the command line you can use the -classpath option: So xpath works if I include jaxen In the unlikely event that anyone else should encounter this issue in JBoss Fuse I’ll add what solved my problem: I would think this means that the new jaxon jar is messing with the parsing, but I can still parse and then print the file out again, so that doesn’t seem to be the case.
Sign up or log in Sign up using Google. I added the jaxen I had already wrapped the dom4j jar and simply adding the jaxen jar after the fact was unsuccessful.
JBoss Tattletale Beta2: OSGi – jaxenjar
Post as a guest Name. If you have a classdef error from jdom look at their dependencies and make sure you are using their approved jars, which for the 1.
I’m resigning as a moderator from all Stack Exchange sites, effective today. Andrey Adamovich Andrey Adamovich Using Xpath in Dom4j Ask Question.
You should add jaxen library to your class path. If you are invoking the parser from the command line you can use the -classpath option:. In that particular order, as I found out the hard way. So now it complains at the end bracket of a code block using the parsed document that “it reached the end of the file while parsing.
Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
Daniel Hawthorne Daniel Hawthorne 1 1 gold badge 1 1 silver badge 6 6 bronze badges. Check you class jad once again. In the unlikely event that anyone else should encounter this issue in JBoss Fuse I’ll add what solved my problem:.