problems after skipping ContextApplicationFactoryBean


I’m trying to get rid of the deprecated ContextApplicationFactoryBean in my vaadin-context file and instead specify my own SpringContextApplication-class as the bean-class and use the factory-method ‘get’ as described in the javadoc:s. My problem is that other vaadin-components annotated with @Component is no longer able to @Autowire in my SpringContextApplication-class, instead I get a NoSuchBeanDefinitionException.

Any suggestions are welcom!

br Svante