Error creating bean with name 'hostComponentProvider':

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

This widget could not be displayed.

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.

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

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 14, 2018 in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

172 views 12 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you