Re: JDOM 0.9b Compatibility

"Solana Huertas, Javier" <[email protected]> Thu, 24 May 2012 10:56:25 +0200
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hi all!


I've a problem with jdom 0.9b and it compatibility with jaxen 1.1.3.
When I run Xpath.selectNodes(...,..) internally I get a fail and print the next Exception:

Caused by: java.lang.NoClassDefFoundError: org/jdom/Parent
        at org.jaxen.jdom.JDOMXPath.<init>(JDOMXPath.java:91)
        at org.jdom.xpath.JaxenXPath.setXPath(JaxenXPath.java:284)
        at org.jdom.xpath.JaxenXPath.<init>(JaxenXPath.java:101)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.jdom.xpath.XPath.newInstance(XPath.java:150)


If DocumentNavigator is in WEB-INF/classes, it works fine but if it is in jaxen lib, the execution finishes showing the previous error.

We have in mind the upgrade jdom 0.9b to JDOM 2 in a few months but until this moment, we need to work with 0.9b and jaxen 1.1.3 if it's possible.
Have any idea?

Thanks so much

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]