// defaults to the latest JBossMX XMBean schema
return new JBossXMBean12(mmbClassName, resourceClassName, url, properties).build();
}
else
{
throw new NotCompliantMBeanException("Unknown xmbean type " + versionString);
} // end of else
}
catch (JDOMException e)
{
System.out.println("JDOM Exception: " + e);
e.printStackTrace();
throw new NotCompliantMBeanException("Error parsing the XML file, from XMLMetaData: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
}
catch (IOException e)
{
// FIXME: log the stack trace?
//e.printStackTrace();
//jdk1.4 throw new NotCompliantMBeanException("Error parsing the XML file: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
throw new NotCompliantMBeanException("Error parsing the XML file: " + e.toString());
}
}