[jdom-interest] JDOM 0.9b Compatibility

Solana Huertas, Javier jsolana at indra.es
Thu May 24 05:04:27 PDT 2012


Hi Again

I'm answer to myself. I haven't idea about Maven and the build of 1.1.3 distribution of jaxen   (jaxen_1.1.3.jar) is on Maven and defines the dependency with jdom 1.0. If I build a .jar from it java resources, all works "fine" (im not sure at all).

Thanks and sorry




Javier Solana Huertas
Indra Software Labs




-----Mensaje original-----
De: Solana Huertas, Javier
Enviado el: jueves, 24 de mayo de 2012 10:56
Para: 'Rolf Lear'
CC: jdom-interest at jdom.org
Asunto: RE: [jdom-interest] JDOM 0.9b Compatibility

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.



More information about the jdom-interest mailing list