Re: 1.7 now requires Javascript classes in classpath?
Russell Gold <[email protected]> Wed, 21 May 2008 07:24:49 -0400
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, unfortunately. As part of the move to the new javascript-aware DOM, the Rhino classes are now used as a base class. If this is a real problem, I will see if there is some way to do some kind of dynamic classloading trickery. On May 21, 2008, at 6:05 AM, Graeme J Sweeney wrote: > Hi, > > Previously when upgrading, I just dropped the new jar into the > classpath. If I don't have the Javascript classes there I'll get a > warning: > > Rhino classes (js.jar) not found - Javascript disabled > > presumably because Javascript was detected in the response. > > With 1.7 I now get, for example: > > Caused an ERROR > org/mozilla/javascript/ScriptableObject > java.lang.NoClassDefFoundError: org/mozilla/javascript/ > ScriptableObject > > Setting: > > HttpUnitOptions.setScriptingEnabled(false); > HttpUnitOptions.setExceptionsThrownOnScriptError(false); > > didn't fix it. > > Only adding the Javascript classes to classpath fixed it. > > -- > Graeme - > Outlook Express user? - http://home.in.tum.de/~jain/software/oe-quotefix/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/