Service not working on publish instance in AEM | Community
Skip to main content
raunaks49800538
Level 2
November 14, 2018
Solved

Service not working on publish instance in AEM

  • November 14, 2018
  • 2 replies
  • 1168 views

Hi,

   I written one service and then installed as osgi bundle , it is working on author instance, but not working on publish instance

  

   Below is the issue:

Unresolved compilation problems: Only a type can be imported. sample.core.service.FeedbackService resolves to a package Only a type can be imported. sample.core.vo.FeedbackVO resolves to a package FeedbackService cannot be resolved to a type FeedbackService cannot be resolved to a type FeedbackVO cannot be resolved to a type.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Please validate the bundle in OSGi console that the package "sample.core.vo" is exported.

If not, please add a package-info.java in the codebase under this package. 

 

@2892159("1.0.0") package sample.core.vo; import org.osgi.annotation.versioning.Version;

 

2 replies

Feike_Visser1
Adobe Employee
Adobe Employee
November 14, 2018

Can you check if the bundle is active on publish?

Via /system/console/bundles

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
April 24, 2024

Please validate the bundle in OSGi console that the package "sample.core.vo" is exported.

If not, please add a package-info.java in the codebase under this package. 

 

@2892159("1.0.0") package sample.core.vo; import org.osgi.annotation.versioning.Version;

 

Aanchal Sikka