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