Trace.trace(Trace.INFO, "Created " + dest.getAbsolutePath());
}
private String getSharedLibPath() throws Exception {
// locate the path of the first sharedlib library folder
GeronimoServerBehaviourDelegate gsDelegate = (GeronimoServerBehaviourDelegate) server.getAdapter(GeronimoServerBehaviourDelegate.class);
MBeanServerConnection connection = gsDelegate.getServerConnection();
Set result = connection.queryMBeans(new ObjectName("*:j2eeType=GBean,name=SharedLib,*"), null);
if (!result.isEmpty()) {
ObjectInstance instance = (ObjectInstance) result.toArray()[0];
String[] libDirs = (String[]) connection.getAttribute(instance.getObjectName(),"libDirs");
if (libDirs != null && libDirs.length > 0) {