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?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912820#3912820

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912820


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to