BEAST2 tool fails with ClassNotFoundException on Galaxy

Continuing the discussion from Installation of BEAST on Galaxy Europe:

Dear Galaxy Europe team,

I’m trying to run the BEAST2 tool on usegalaxy.eu and the job fails immediately, before the analysis starts. The same XML file (built with BEAUti) runs without any problem in BEAST2 on my own laptop, so the input file itself is fine, and this looks like a problem with the tool’s environment on the server.

The error from the job is:

Picked up _JAVA_OPTIONS: -Xmx3502m -Xms256m -Duser.home=/data/misc06/tmp -Djava.io.tmpdir=/data/jwd06/main/000/113/170/113170450/tmp
saveBeautiProperty java.io.IOException No such file or directory
java.lang.ClassNotFoundException: beastfx.app.beast.BeastMain
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at beast.pkgmgmt.BEASTClassLoader.forName(Unknown Source)
at beast.pkgmgmt.launcher.BeastLauncher.run(Unknown Source)
at beast.pkgmgmt.launcher.BeastLauncher.main(Unknown Source)

It looks like the launcher can’t find beastfx.app.beast.BeastMain, which is BEAST2’s standard main class from version 2.7 onward. That suggests the BeastFX component may be missing or incomplete in the tool’s installed environment.

Could someone help with debugging.

Thanks!

Welcome @Sawar

I’m glad you asked about this! I was able to reproduce the same message with the tool test case.

I’ve opened a ticket against the repository where we track tool installation issues at the UseGalaxy servers. Please feel free to add more details!

Thanks for reporting the problem! The tool is running in a dedicated container environment but perhaps something still needs to be adjusted. The developers will usually get back to us here, and I’ll also keep and eye on this for updates. You are welcome to let us know too if you notice a correction first. :slight_smile:

I’m going to mark this reply as the “solution” but this is only so the topic will show up at the bottom of the tool form (to alert others about the open issue) – we know this is still pending the full resolution.