-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 2.5.5
-
Component/s: None
-
Environment:
Window Server 2003 , Websphere , Oracle database
Getting the following error when starts up:
java.lang.RuntimeException: Unable to delete working directory at com.atlassian.confluence.plugin.DatabaseClassLoadingPluginLoader.clearWorkDir(DatabaseClassLoadingPluginLoader.java:76) at com.atlassian.confluence.plugin.DatabaseClassLoadingPluginLoader.loadAllPlugins(DatabaseClassLoadingPluginLoader.java:49)
After each restart of Confluence instance, all the plugins installed separately disappear from Plugin Manager.
This is due to Window file locking issue. There's a lock on the plugin-cache directory that isn't being released when Confluence shuts down, and it can't get a new one subsequently.
To resolve this problem, apply the attached patch DatabaseClassLoadingPluginLoader.class and replace it into: <Confluence-installed-directory>\confluence\WEB-INF\classes\com\atlassian\confluence\plugin