Hi Anitha,
Thank you very much for the feedback. Finding all the runtime dependencies is
error-prone, and BTW it's the purpose of RC ;)
I'm a bit surprised 284 people download 1.4-RC1 and don't report this mistake...
Thank you again, I will fix it for RC2.
++
Julien
----- Message d'origine ----
De : anitha <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 1 Décembre 2006, 21h03mn 40s
Objet : [Jwebunit-users] Jwebunit 1.4RC1 ClassNotFound Exception
Hi,
I just installed JwebUnit 1.4RC1. When running a
simple test i get the following exception
java.lang.NoClassDefFoundError:
org/apache/commons/lang/ClassUtils
at
com.gargoylesoftware.htmlunit.WebRequestSettings.toString(WebRequestSettings.java:257)
at
java.lang.String.valueOf(String.java:2577)
at
java.lang.StringBuffer.append(StringBuffer.java:220)
at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:314)
at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at
net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog.beginAt(HtmlUnitDialog.java:153)
at
net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:170)
at
net.sourceforge.jwebunit.junit.WebTestCase.beginAt(WebTestCase.java:115)
at
com.jwebunit.tests.sampleTest.testPage(sampleTest.java:49)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
net.sourceforge.jwebunit.junit.WebTestCase.runBare(WebTestCase.java:47)
at
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
I found the reason being
org.apache.commons.lang.ClassUtils class is not part of the jars included. It's
a Maven jar(commons-lang-2.1.jar). I use JwebUnit with ant so it's creating a
problem. Hope you fix this problem soon.
Thanks
Regards
Anitha
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users