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

0 votes

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
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

259 views 1 4
Join discussion

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