I am working on writing an openfire plugin, but ran into an issue when attempting to load a new version via the web console. I am not able to unload any plugins from the console - they all hang when deleting the jars within the lib directory for the plugin. This includes the search plugin downloaded from this site, as well as a trivial one that I created that does nothing - it still hangs and the jar is locked until the server is restarted.
I thought this was an issue with my code and holding on to some class (because of static instances, etc), but this is not the case when the entire plugin is nothing more than two empty methods - see below. This
---------------------
package com.tdkc.openfire.xmind.collaboration.server;
import java.io.File;
import org.jivesoftware.openfire.container.Plugin;
import org.jivesoftware.openfire.container.PluginManager;
public class EmptyPlugin implements Plugin {
public void destroyPlugin() {
}
public void initializePlugin(PluginManager arg0, File arg1) {
}
}
----------------------
I am running on Windows 7, however our server is running Linux. I'm having this problem with 3.6.4, but was able to duplicate it on 3.7.0 as well.
Mike Carter
Senior Software Engineer
The Design Knowledge Company