From: Rousseau, J. R. <JRR...@Ba...> - 2004-11-23 19:44:10
|
When I added jaxen-1.0-FCS-full.jar it worked ! it was working in my JUnit environment because that jar was part of my project classpath. thanks for your time ! by the way, any plan to have a Fitnesse plugin similar to what jWebUnit provides ? > -----Original Message----- > From: Brad Clarke [mailto:yo...@br...] > Sent: Tuesday, November 23, 2004 1:55 PM > To: htm...@li... > Subject: RE: [Htmlunit-user] XMIException when reading response page > > > Are you sure the html page being returned the same in both cases? > > You could try testing your fixture instead of letting > fitnesse run it to help locate > the problem. You might also try upgrading to 0.9.4 of > nekohtml to see if that fixes > it. Might also be that one of the jars we're listing as > optional isn't so optional > anymore... > > > > --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > > > Fitnesse only use fitnesse.jar in its classpath, and there > is no embedded > > xml apis in that jar. Here the jars on the classpath used to run my > > fixture: > > > > htmlunit-1.3.jar; > > commons-httpclient-2.0.1.jar; > > commons-logging-1.0.4.jar; > > xmlParserAPIs-2.2.1.jar; > > commons-io-1.0.jar; > > saxpath-1.0-FCS.jar; > > xercesImpl-2.6.2.jar; > > nekohtml-0.9.1.jar; > > js-1.5R4.1.jar; > > C:\dev\pca\bin --> no xml API here ! > > > > thanks, > > > > Jean-Rene > > > > > -----Original Message----- > > > From: Brad Clarke [mailto:yo...@br...] > > > Sent: Tuesday, November 23, 2004 1:16 PM > > > To: htm...@li... > > > Subject: Re: [Htmlunit-user] XMIException when reading > response page > > > > > > > > > Sounds like an xml library on the fitnesse classpath is > > > conflicting with htmlunit's > > > classpath. Is there a way to have fitnesse run your fixture > > > in it's own jvm? > > > > > > Brad C > > > > > > --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > > > > > > > Hi All, > > > > > > > > I'm currently evaluating HtmlUnit to perform our > > > inegration testing. When > > > > used insed JUnit, my simple test worked perfectly. I then > > > moved the code > > > > inside a Fitnesse Fixture. Unfortunalely now, my simple > > > test does not work > > > > anymore (when called from Fitnesse). > > > > > > > > The Fitnesse server calls my login method that then perform > > > the following > > > > HtmlUnit code: > > > > > > > > WebClient webClient = new WebClient(); > > > > URL url = new URL("http://banctec-bxx87tc/pca/index.html"); > > > > HtmlPage page = (HtmlPage)webClient.getPage(url); > > > > (...) > > > > > > > > When reading the index page, it throws the following exception: > > > > > > > > org.apache.xerces.xni.XNIException at > > > > org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown > > > Source) at > > > > org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at > > > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > > > org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at > > > > > > > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuild > > > er.parse(HTMLP > > > > arser.java:302) at > > > > > > > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser > > > .java:223) at > > > > > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPag > > > e(DefaultPageC > > > > reator.java:110) at > > > > > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(De > > > faultPageCreat > > > > or.java:82) at > > > > > > > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(We > > > bClient.java:5 > > > > 83) at > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550) > > > > at > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465) at > > > > > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at > > > > > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281) at > > > > > > > web.fitnesse.PCAQueryScreenFixture.login(PCAQueryScreenFixture > > > .java:46) at > > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > > > orImpl.java:39 > > > > ) at > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > > > odAccessorImpl > > > > .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at > > > > fit.ActionFixture.doCells(Unknown Source) at > > > fit.Fixture.doRow(Unknown > > > > Source) at fit.Fixture.doRows(Unknown Source) at > > > fit.Fixture.doTable(Unknown > > > > Source) at fit.Fixture.doTables(Unknown Source) at > > > > fit.FitServer.process(Unknown Source) at > > > fit.FitServer.run(Unknown Source) > > > > at fit.FitServer.main(Unknown Source) > > > > > > > > Any ideas ? > > > > > > > > thanks, > > > > > > > > Jean-Rene Rousseau > > > > > > > > > > > > ------------------------------------------------------- > > > > SF email is sponsored by - The IT Product Guide > > > > Read honest & candid reviews on hundreds of IT Products > > > from real users. > > > > Discover which products truly live up to the hype. Start > > > reading now. > > > > http://productguide.itmanagersjournal.com/ > > > > _______________________________________________ > > > > Htmlunit-user mailing list > > > > Htm...@li... > > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products from > > > real users. > > > Discover which products truly live up to the hype. Start > reading now. > > > http://productguide.itmanagersjournal.com/ > > > _______________________________________________ > > > Htmlunit-user mailing list > > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products > from real users. > > Discover which products truly live up to the hype. Start > reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |