Re: [JWebUnit-users] JWebUnit 3.0 released
Brought to you by:
henryju
From: Julien H. <he...@ya...> - 2011-08-19 07:32:52
|
Hi Tim, HtmlUnit is using a method (startsWithIgnoreCase) from commons-lang that was introduced in commons-lang 2.4. If you declare only jwebunit deps you should have commons-lang 2.6 in your classpath. Please check that you have not overriden the version of commons-lang to something under 2.4. I can't check by myself because your CVS repository is not accessible (at least the web interface). Regards, Julien >________________________________ >De : Tim Pizey <ti...@pa...> >À : Julien HENRY <he...@ya...>; Usage problems for JWebUnit <jwe...@li...> >Envoyé le : Vendredi 19 Août 2011 1h11 >Objet : Re: [JWebUnit-users] JWebUnit 3.0 released > >Hi Julien, > >On 18 August 2011 13:23, Julien HENRY wrote: >> Hi all, >> >> JWebUnit 3.0 is released and should be already available for download on >> Maven >> central and Sourceforge. > >Congratulations, and thankyou for your rapid responses on this list. > >I have updated http://melati.org/ , which is built using Maven, from >2.2 to 3.0 and have a lot of new failures eg: > >java.lang.NoClassDefFoundError: Could not initialize class >com.gargoylesoftware.htmlunit.WebClient > at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.createWebClient(HtmlUnitTestingEngineImpl.java:804) > at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.initWebClient(HtmlUnitTestingEngineImpl.java:813) > >also : > >java.lang.NoSuchMethodError: >org.apache.commons.lang.StringUtils.startsWithIgnoreCase(Ljava/lang/String;Ljava/lang/String;)Z > at com.gargoylesoftware.htmlunit.util.URLCreator$URLCreatorStandard.toUrlUnsafeClassic(URLCreator.java:66) > at com.gargoylesoftware.htmlunit.util.UrlUtils.toUrlUnsafe(UrlUtils.java:193) > at com.gargoylesoftware.htmlunit.util.UrlUtils.toUrlSafe(UrlUtils.java:171) > at com.gargoylesoftware.htmlunit.WebClient.<clinit>(WebClient.java:162) > at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.createWebClient(HtmlUnitTestingEngineImpl.java:804) > at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.initWebClient(HtmlUnitTestingEngineImpl.java:813) > > >I have not looked deeply into this, is this what you would expect? How >much work will I have to do to upgrade? > >thanks again >Tim >-- >Tim Pizey >http://pizey.net/~timp > > > |