Hi, The error clearly states that the problem is with Nekohtml (used by HttpUnit) which requires a method that does not exist with the version of Xerces you use.
This is not a Cactus "problem" per see. You may want to try using older versions of nekohtml but I have no idea whether it'll work. -Vincent > -----Original Message----- > From: Mallinath Suralikal (C) [mailto:[EMAIL PROTECTED] > Sent: 27 May 2004 00:28 > To: [EMAIL PROTECTED] > Subject: cactus httpunit with old xerces version doesn't work > > am using Cactus 12-1.6.1 with WebLogic 7.1, JDK 1.31, we are using older > version of xerces in our product. I can't integrate cactus with with our > product unit testing, HTTPUnit module s not able to resolve > XMLParserConfiguration. Please let me know which version of cactus, I > should be using to resolve this issue. > The problem occurs only when I try to use HTTPUnit assertions. > > <error message="org.apache.xerces.parsers.DOMParser.<init> > (Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V" > type="java.lang.NoSuchMethodError">java.lang.NoSuchMethodError: > org.apache.xerces.parsers.DOMParser.<init>(Lorg/apache/xerces/xni/ pa > rs > er/XMLParserConfiguration;)V > at > com.meterware.httpunit.parsing.NekoDOMParser.<init>(NekoDOMParser. ja > va > :113) > at > com.meterware.httpunit.parsing.NekoDOMParser.newParser(NekoDOMParser.jav a: > 65 > ) > at > com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java: 40 > ) > at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244) > at > com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1014 ) > at com.meterware.httpunit.WebResponse.getTables(WebResponse.java:478) > at > com.neoforma.buslayer.contract.appspecific.cm.ejb.MsgJspTest.endMessage( Ms > gJ > spTest.java:74) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at > org.apache.cactus.internal.client.ClientTestCaseCaller.callGenericEndMet ho > d( > ClientTestCaseCaller.java:441) > at > org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aro un > dB > ody2(ClientTestCaseCaller.java:208) > at > org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod_aro un > dB > ody3$advice(ClientTestCaseCaller.java:206) > at > org.apache.cactus.internal.client.ClientTestCaseCaller.callEndMethod(Cli en > tT > estCaseCaller.java) > at > org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes tC > as > eCaller.java:148) > at > org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract Ca > ct > usTestCase.java:215) > at > org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus Te > st > Case.java:133) > </error> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
