hi Chris...

   I have achieved (a parcial solution) to solve my problem... I have used
the methods "getFirstChild().getNodeValue()"  instead of
"getTextContent()"... I know that this isn't a final solution, but I needed
it...

   I promise to continue working with this... and improve my English too.


2006/11/7, Christopher Schultz <[EMAIL PROTECTED]>:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Juanjo,

> In the development environment all works fine, but when I try to deploy
it
> (the application) in a
> pre-production environment(with Tomcat 5.0.27 and jdk 1.5), Tomcat give
me
> the follow error:
> java.lang.NoSuchMethodError: org.w3c.dom.Element.getTextContent()

This looks like a DOM library library mismatch. If you really are using
JDK 1.5, then you don't need Tomcat's compatibility library (in fact, it
will break your stuff if you do use it).

If you don't have the compatibility library installed, then you need to
look at your other XML libraries. It also might help to look at the NSME
above and inspect the stack trace. For instance, if you get that
exception in, say, dom4j, then you ought to check the versions of both
your dom4j library and the XML processing libraries you are bundling
with your application, or that come with Tomcat.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIe39CaO5/Lv0PARAlxyAKCn/vqo1rgityxSZ5aE3Z1ZCKqU2wCfaEmQ
UArxoMfb+6TohFhmdQYNcUc=
=8CJ8
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to