Hello,
I am using a java application which is written using httpunit, to
test a web application which is written using IBM's Websphere Studio
Application Developer Version 5.1.1
My java application has the following statements:
1) WebResponse resp =
wc.getResponse("http://www.httpunit.org/doc/cookbook.html");
2) WebResponse resp =
wc.getResponse("http://www.microsoft.com");
Statement (1) i.e. "WebResponse resp = wc.getResponse("http://www.httpunit.org/doc/cookbook.html");"
is successful. But statement (2) i.e. "WebResponse
resp = wc.getResponse("http://www.microsoft.com");"
results in java.lang.RuntimeException. The exception reads as follows:
java.lang.RuntimeException:
http://apache.org/xml/properties/dom/current-element-node property not
recognized
May I know what is the correct jar or parser
? (or) how to fix the above error ?
Presently, I am using the following
libraries on Windows XP professional:
1)
httpunit.jar
from C:\httpunit-1.6\lib
2)
js.jar
from C:\httpunit-1.6\jars
3)
junit.jar
from C:\httpunit-1.6\jars
4)
nekohtml.jar from C:\httpunit-1.6\jars
5)
servlet.jar from C:\httpunit-1.6\jars
6)
Tidy.jar from C:\httpunit-1.6\jars
7)
xercesImpl.jar from C:\j2sdk1.4.2_06\lib\endorsed
8)
xml-apis.jar from C:\j2sdk1.4.2_06\lib\endorsed
The directory names are being mentioned to notice the endorsed
directory for xercesImpl.jar and xml-apis.jar.
Sincerely,
Phanendharnadh Kone
Email: Phanendharnadh.kone@xxxxxxxxxxxxxxxx