Error creating bean with name 'hostComponentProvider':

Ira Greenfield July 8, 2016

While setting up confluence to connect to a MS SQL DB using the bundled JDBX connection and drivers we received the following error:

HTTP Status 500 - Error creating bean with name 'hostComponentProvider': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.plugin.spring.SpringHostComponentProviderFactoryBean.setSpringHostComponentProviderConfig(com.atlassian.plugin.spring.SpringHostComponentProviderConfig); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Program Files\Atlassian\Application Data\Confluence\plugins-osgi-cache\felix

 

We followed the install instructions exactly from what I can tell.... any insight to how to resolve would be appreciated.

 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2016

That "unable to clean" error almost always means you've (accidentally) changed the ownership of part of the installation, either by running it as a different user, or by trying to "be secure".  Check ownership and permissions and that you're running Confluence as the user you intend to permanently.

Ira Greenfield July 8, 2016

We have Confluence set up to Run as a windows Service using the system account. I checked the Confluence folder security and the local administrator & System have full access to the directory structure

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2016

By "system account" do you mean what you later call "System"?

Could there be something else locking or reading the files in there?

(The usual advice is to run Confluence as a dedicated, minimally privileged user, but that's a minor point and I don't think it matters here)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events