[SOLVED] NoSuchBeanDefinitionException when using @OpenmrsProfile

Two things:

  1. Replace the Context.getRegisteredComponent() calls with @Autowired for private ComplexDataHelper complexDataHelper;

  2. These calls are in the api sub project which does not have any implementation of ComplexDataHelper. So you need to have at least one implementation of it in the api sub project if you want the moduleApplicationContext to load it.

1 Like