Expand my Community achievements bar.

Spring dependencies are not registering in the AEM services

Avatar

Level 2

Hi All,

We are using spring related API's in our AEM bundle. The below services needs to be registered as Services in Felix console. As the springframework API's are not getting registered as Services, we are getting Service java.lang.NullPointerException: Specified service reference cannot be null.

 

 DelegatedExecutionOsgiBundleApplicationContext springContext

                = (DelegatedExecutionOsgiBundleApplicationContext) 
                ViewHelperUtil.getService(DelegatedExecutionOsgiBundleApplicationContext.class);

 

We also deployed all the spring bundles in felix console, but still we have issue. Does any one faced this issue. 

Thanks.

0 Replies