Hi,
we updated cq 5.6.1 to aem 6.2 recently and came across below issue.
There is a configuration service that need to visible in "system/console/configMgr" but not listed in aem 6.2.
That service looks like below:
@Component(metatype = true, immediate = true)
@Service(DealService.class)
@Properties({
@Property(name = "service.pid", value = "com.me.now.dealer.service.DealService"),
})
public class DealService extends GenericQueryService implements DealerService {}
And i can see below log in error.log and not sure whether these are related:
17.07.2017 11:56:56.620 *ERROR* [qtp529707541-3446] org.apache.felix.metatype Missing element AD in element OCD : bundle://481.6:0/OSGI-INF/metatype/com.me.now.dealer.service.DealService.xml
instance: localhost-author and upgraded dev author
Does anybody know why it happened and how to fix it?
Views
Replies
Total Likes
Did you check bundle is in active state?
And the service is registered.
Views
Replies
Total Likes
Bundle is in active state and service is registered and visible under system/console/services.
Views
Replies
Total Likes
it seems DealerService isn't registered as service. Check in services in console.
Views
Replies
Total Likes
Hi Jitendra,
i checked it, it got registered as service and visible in console/services.
Views
Replies
Total Likes
You should expose DealerService instead of the implementing class.. So annotation should be:
@Service(DealerService.class)
instead of
@Service(DealService.class)
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies