• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.AbstractMethodError

 
Dario Rehman
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error. If I test the code withou Tomcat everything works. But when I deploy it I get this error. How can I fix it? Thanks.


java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredElementImpl.getTextContent()Ljava/lang/String;
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that error is due to your code being compiled with a version of the Xerces library that does not match the one being used by Tomcat. Note that Tomcat will not use your environment classpath to find Xerces but uses its own version.

Bill
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dabd dabd", welcome to JavaRanch.

We're friendly here, but we do require members to have valid display names.

Display names must be at least two words: your first name, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names will be deleted.
 
Dario Rehman
Greenhorn
Posts: 18
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
I suspect that error is due to your code being compiled with a version of the Xerces library that does not match the one being used by Tomcat. Note that Tomcat will not use your environment classpath to find Xerces but uses its own version.

Bill


That was exactly my problem. Thanks!
 
stef ment
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic is old, but I try my question

What did you do concretely in Tomcat configuration
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic