1 Reply Latest reply on Oct 11, 2010 8:30 AM by ssilvert

    Getting Started Doco - issues

    kragoth

      I have been meaning to write something about the doco located http://www.jboss.org/jsfunit/gettingstarted.html

       

      The list of libraries given do not seem to actually be compatable.

       

      The version of cactus there is trying to find a method org.apache.httpclient.HttpMethod but the httpclient library given in the list has a different package structure org.apache.http.client (or something like that).

       

      So, if a user wants to actually follow the doco they are never going to get a working environment. In fact, I ended up giving up trying to get JSFUnit 1.3 working because I got tired of trying to find the combination of libs that would allow me to use it.

       

      Could we get this doco updated to reflect a combination of libs that actually work with each other?

       

      Obviously, there is always a possibility that my app is causing the problem but...I couldn't get it working even on a small example app.

       

      I'm using.

      Java 1.6_04

      JSF 1.2

      htmlunit 2.5

      httpclient 3.1

      cactus 1.7.2

      cargo 0.5

      jsf 1.1.0 GA snapshot

      nekohtml 1.9.12-(some daily build)

      richfaces 3.3.1 BETA 3 (yeah I need to update this *sigh*

      Seam 2.0.1 CR1

        • 1. Re: Getting Started Doco - issues
          ssilvert

          I believe that the list on the Getting Started page is correct.  It is the list for JSFUnit 1.3.  It now requires both commons-httpclient-2.0.2 and the new httpcomponents-httpclient 4.0.1.  Cactus needs the old one and the latest HtmlUnit needs the new one.

           

          If you are using JSFUnit 1.3 then you need to update HtmlUnit to 2.8 and Neko to 1.9.14.

           

          Here is the Maven dependency tree from one of the sample apps:

          [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ jboss-jsfunit-examples-hellojsf-jsfunit ---
          [INFO] org.jboss.jsfunit:jboss-jsfunit-examples-hellojsf-jsfunit:war:1.4.0.Final-SNAPSHOT
          [INFO] +- org.jboss.jsfunit:jboss-jsfunit-core:jar:1.4.0.Final-SNAPSHOT:compile
          [INFO] |  +- net.sourceforge.htmlunit:htmlunit:jar:2.8:compile
          [INFO] |  |  +- commons-codec:commons-codec:jar:1.4:compile
          [INFO] |  |  \- xerces:xercesImpl:jar:2.9.1:compile
          [INFO] |  |     \- xml-apis:xml-apis:jar:1.3.04:compile
          [INFO] |  +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.8:compile
          [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:compile
          [INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:compile
          [INFO] |  +- org.apache.httpcomponents:httpmime:jar:4.0.1:compile
          [INFO] |  +- org.apache.james:apache-mime4j:jar:0.6:compile
          [INFO] |  +- commons-lang:commons-lang:jar:2.4:compile
          [INFO] |  +- commons-collections:commons-collections:jar:3.2.1:compile
          [INFO] |  +- commons-io:commons-io:jar:1.4:compile
          [INFO] |  +- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
          [INFO] |  |  \- org.w3c.css:sac:jar:1.3:compile
          [INFO] |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.14:compile
          [INFO] |  +- xalan:xalan:jar:2.7.1:compile
          [INFO] |  |  \- xalan:serializer:jar:2.7.1:compile
          [INFO] |  \- cactus:cactus:jar:13-1.7.1:compile
          [INFO] |     +- cactus:cactus-ant:jar:13-1.7.1:compile
          [INFO] |     +- commons-httpclient:commons-httpclient:jar:2.0.2:compile
          [INFO] |     +- junit:junit:jar:3.8.1:compile
          [INFO] |     +- aspectj:aspectjrt:jar:1.2.1:compile
          [INFO] |     \- cargo:cargo:jar:0.5:compile
          [INFO] +- org.jboss.jsfunit:jboss-jsfunit-examples-hellojsf-webapp:war:1.4.0.Final-SNAPSHOT:runtime
          

           

          Of course, where you see JSFUnit 1.4.0.Final-SNAPSHOT you should use 1.3.0.Final.

           

          Stan