I used org.w3c.dom.Node.getTextContent() method in my code. It worked well when I was testing it in Eclipse. But when I deployed those code to JBoss and started the Web-application, that uses that code I got an exception java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String;. I made an investigation of the problem and found that when I had been running my code in Eclipse IDE it had used org.w3c.dom.Node interface from rt.jar (I use JRE1.5), but in JBoss it had used org.w3c.dom.Node interface from xml-apis.jar (this interface doesn't have getTextContent() method). I solved the problem by deleting xml-apis.jar from D:\Work\jboss-4.0.2\lib\endorsed directory. But it is not good solution, I think.
So, does anybody know better solution?