NoSuchBeanDefinitionException in Jira plugin when using Active Objects

Not sure if it is the correct way but I’ve tried every fix/workaround I could find. I’m using Confluence and finally got it to work by using the solution in this topic:

Confluence NoSuchBeanDefinitionException com.atlassian.sal.api.*