try {
File file = this.saveUploadedFile(event.getFile());
// required to run unbbayes gui classes on server
- System.setProperty("java.awt.headless", "false");
+ System.setProperty("java.awt.headless", "true");
ProbabilisticNetwork bn = new ProbabilisticNetwork(null);
XMLBIFIO.loadXML(new File(file.getAbsolutePath()), bn);