https://bugzilla.redhat.com/show_bug.cgi?id=1858613
Bug ID: 1858613
Summary: ant breaks when bsf package is installed
Product: Fedora
Version: 31
OS: Linux
Status: NEW
Component: ant
Assignee: java-maint-sig(a)lists.fedoraproject.org
Reporter: nadav(a)harel.org.il
QA Contact: extras-qa(a)fedoraproject.org
CC: decathorpe(a)gmail.com, jaromir.capik(a)email.cz,
java-maint-sig(a)lists.fedoraproject.org,
java-sig-commits(a)lists.fedoraproject.org,
mizdebsk(a)redhat.com, msrb(a)redhat.com
Target Milestone: ---
Classification: Fedora
In the open-source project git@github.com:scylladb/scylla-tools-java there is a
build.xml for ant. If I try to run "ant" in that directory I get an error:
BUILD FAILED
/home/nyh/scylla.maintainer/tools/java/build.xml:159:
java.lang.ClassNotFoundException:
org.apache.bsf.engines.javascript.JavaScriptEngine
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:696)
at org.apache.bsf.BSFManager.exec(BSFManager.java:485)
at
org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:100)
...
Indeed this build.xml has a bunch of Javascript scripts in them, which it seems
(I'm not an ant expert) aren't really used in a normal build, but is
nevertheless there.
The really weird thing is that this this error message mentions "bsf", so I
looked around and found that the "ant-apache-bsf" and "bsf" packages
*are*
installed on my system. But they don't include this missing JavaScriptEngine
class in their jars. Ironically, the mere existence of these packages on my
system is what causes these error messages: If I remove them (rpm -e --nodeps),
either both of them or even just the "bsf" package, ant in that project begins
to work again!
--
You are receiving this mail because:
You are on the CC list for the bug.