Adam Heath wrote: > BJ Freeman wrote: >> so why brake the development environment? >> The trunk should not be a test bed but a development image. >> if something breaks the way people develop, it should be removed and >> tested as a patch. > > It's not ofbiz that is broken, it the ant install that is. > > Classloader heiarchay(guess, but probably pretty accurate) > > SystemLoader -> AntBaseLoader -> build.xml loaders(multiple) > > Any class loaded by a particular loader can only have bytecode level > depends on classes loaded by it's same loader, or a parent. This is > just the way classloaders work. > > What is occuring in these cases, is that the ScriptDefTask.java, > provided by ant, is loaded by the AntBaseLoader, but then the > BSFManager/BSFException class that it needs is not available in either > the AntBaseLoader, nor the SystemLoader. > > The fix is to make certain the ScriptDefTask is not in the global ant > library, or move the bsf.jar into the global ant library. > > If you are having this problem, then its the ant install that is broken. > There's nothing ofbiz can do to fix the global ant.
Or look at http://ant.apache.org/manual/install.html#optionalTasks
