since ‎23-04-2018
‎03-03-2021
sivas61374651
Level 2
unable to see JMX configuration in JXM console in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,I'm having the below JMX java class with the implementation. Once I build this and deploy it into bundles, in the logs I could see the particular JMX Service is registered successfully. But the particular service is not available in JMX console. The same service which I want to see is available in AEM 6.1 JMX console. Right now I'm working in 6.4 upgrade.In this server I'm unable to see.. any ideas?? Appreciate your help.package ch.sample.aem.core.jmx;import com.adobe.granite.jmx.annotati...

Views

449

Likes

0

Replies

1
Re: OSGI component - unsatisfied Reference, No service bound issue in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Scott,I have used like this below and now the component is active. But not sure is it a correct way to activate the component. @Reference(policyOption = ReferencePolicyOption.GREEDY, cardinality = ReferenceCardinality.OPTIONAL) public void bindHybrisFactory(HybrisFactory hybrisFactory) { this.hybrisFactory = hybrisFactory; } public void unbindHybrisFactory(HybrisFactory hybrisFactory) { this.hybrisFactory = hybrisFactory; }Got the below input from this link,https://osgi.org/specification/osgi...

Views

3.0K

Likes

0

Replies

1
Re: The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Do you have any idea about No services bound? If you see my above screenshot for the unsatisfied service It shows No Services bound.Also I have used policyOption:Greedy for three references Where it is satisfied for HybrisConnection and unsatisfied for HybrisFactory & ImportHandler.Thanks,Vijay

Views

584

Likes

0

Replies

0
OSGI component - unsatisfied Reference, No service bound issue in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,I have an OSGI component and inside that I have used @Reference(policyOption = ReferencePolicyOption.GREEDY) for the below interfaces,protected HybrisConnection connection;protected HybrisFactory hybrisFactory;Once I install the bundle in AEM I'm getting unsatisfied (Reference) error for HybrisFactory (No service bound). The same @Reference I have used for HybrisConnection and its satisfied. For reference I have provide the screen shot. can anyone help me to resolve this?The generated XML...

Views

4.5K

Likes

0

Replies

3
Re: The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Fixed the issue. Changed the order of dependencies and now its pointing to osgi.cmpn. but still I'm getting unsatisfied reference issue.Any Idea? Thanks,vijay

Views

592

Likes

0

Replies

0
Re: The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,As you said I found at the issue with my jar. @Reference is pointing out out to this JAR maven\repository\biz\aQute\bndlib\1.50.0\bndlib-1.50.0.jar and if I see the Reference interface inside the jar policyOption is not available and that's why I'm unable to use policyOption.Now I should pointing to this maven\repository\org\osgi\osgi.cmpn\6.0.0.jar. Inside the jar I'm having Reference interface where I can see the policyOption(). how can I change the reference now? can you guide me on t...

Views

581

Like

1

Replies

0
Re: The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Using the same Imports & dependency Arun but doesn't work . any clue like if I did anyother mistake?Thanks,Vijay

Views

583

Likes

0

Replies

0
Re: The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,It's not working for me @Reference(policyOption = ReferencePolicyOption.GREEDY) and I'm getting this error in eclipse where “The attribute policyOption is undefined for the annotation type Reference”. if I use the below dependency in my pom.xml,biz.aQutebndlib1.50.0providedEclipse allow me to use GREEDY if I use the below dependency and i Just changed the version and build is success. But when I install the bundle, in /system/console/components/ I'm getting unsatisfied (reference) error ...

Views

581

Likes

0

Replies

0
Re: AuthenticationSupport service missing. Cannot authenticate request
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Samthadhani,Even I'm struck up with the same issue. *ERROR* [qtp398821604-63] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request. *ERROR* [qtp398821604-63] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.Can you tell me the exact fix which you did to make it work? is it because of datastore folder is not created in ...

Views

7.6K

Likes

0

Replies

0
Re: convert felix @properties & @property to OSGI annotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,I could see the default value in configmgr when I used both of the two ways. But I'm just trying to understand the differences between the two options. both is doing the same work?Thanks,Vijay

Views

1.1K

Likes

0

Replies

0
Re: convert felix @properties & @property to OSGI annotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Can you help me to understand on below, Which is best way to have the default value for the particular configuration.1) Using org.osgi.service.metatype.annotations.AttributeDefinition.defaultValue(). @AttributeDefinition(name = "Cron-job expression", defaultValue = "*/30***?") String scheduler_expression();2) @AttributeDefinition(name = "Cron-job expression") String scheduler_expression() default "*/30 * * * * ?"; String scheduler_expression() default "*/30 * * * * ?";Thanks,Vijay

Views

1.1K

Likes

0

Replies

0
Re: export JCR properties to excel sheet
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Ratnakumar,Thanks for your reply. I have read the link and that link is for reading the data from DB using datasourcepool and export into Excel. But my requirement is, I'm having some contents in page and just want to export the content in to Excel/txt file. I believe, to achieve this I no need to go with an any costly operation like the link which you provided.Thanks,Vijay

Views

695

Likes

0

Replies

0
export JCR properties to excel sheet
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,I want to export the jcr:content of the page including all the component details like property name and value to the excel sheet. I need to do this in AEM 6.1. Can anyone already did like this? Appreciate your help.Feike Visser​smacdonald2008​Arun Patidar​Thanks,Vijay

Views

1.4K

Likes

0

Replies

4
The attribute policyOption is undefined for the annotation type Reference
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi can anyone help on this below issue,We are replacing felix annotations with OSGI DS annotations. We have come across with a challenge please find belowFelix annotation : @Reference(policyOption = ReferencePolicyOption.GREEDY) protected UserConnector userConnector; OSGI Annotation I tried : protected UserConnector userConnector; @Reference(policyOption = ReferencePolicyOption.GREEDY) public void bindUserConnector(UserConnector userConnector) { this.userConnector = userConnector; } public void ...

Views

1.8K

Likes

0

Replies

12
Re: convert felix @properties & @property to OSGI annotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Are you saying that I should move the service configuration into separate interface and leverage the interface into my actual class? that is what I can understand from this link Official OSGi Declarative Services Annotations in AEM - Adobe Experience Manager | AEM/CQ | Apache Sling . can you guide me on thi same.Thanks,,Vijay

Views

1.2K

Likes

0

Replies

0
convert set of felix @property to OSGI annotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,can someone help me to convert the set of felix @property annotation to OSGI annotations. If it's a single @property I can directly use it in @component. If it's a multiple @property then what should I do?Need help on the highlighted portion. Appreciate your help.@Component(metatype = true, label = "Day CQ Commerce Hybris Catalog Importer")@Service(value = {DefaultHybrisImporter.class, HybrisImporter.class})@Properties(value = {@Property(name = "commerceProvider", value = HybrisConstants....

Views

593

Likes

0

Replies

1
convert felix @properties & @property to OSGI annotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,Can someone help me to convert felix @properties & @property to OSGI annotations. If I have a single @property I can bring into OSGi @Component as an attribute. But In my case there are multiple @property which has been used inside @properties. Below is the sample code and request people to help me on the highlighted portion.import org.apache.felix.scr.annotations.Component;import org.apache.felix.scr.annotations.Properties;import org.apache.felix.scr.annotations.Property;import org.apach...

Views

3.0K

Likes

0

Replies

7
Re: recommended clinetlibs & other folders in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Prajwal,Thanks for you response and I got the answer. I should give the /apps/myapp/clientlibs read access for anonymous user ? Can you help me on the access related things? what are all the things which I should give read access to load the page properly in dispatcher for anonymous user?Thanks,Vijay

Views

3.8K

Likes

0

Replies

0
Re: Clientlibs not loading the fonts when placed in apps
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Wimsymons,What do you mean by static resource? i'm struck up the same issue where you were. In my case I'm having the below structure,1) /apps/myapp/clientlibs/samplelibone2) /apps/myapp/clientlibs/samplelibtwounder the above two folders i'm having some css & js. So, here I should move the samplelibone & samplelibtwo under resources directory? something like this /apps/myapp/clientlibs/resources/samplelibone? Appreciate your help. prajwalreddy​Thanks,Vijay

Views

2.6K

Likes

0

Replies

0
Re: recommended clinetlibs & other folders in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,In this forum if you see the last reply mentioned as static resource can only be accessed via proxy. Do we need to have the structure like this /apps/myapp/clientlibs/resources - inside this we should have our categories (css/js)? any idea?https://forums.adobe.com/thread/2485009Thanks,Vijay

Views

3.8K

Likes

0

Replies

1
Re: recommended clinetlibs & other folders in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,If I call the clientlibs like this will it work in dispatcher? Since I'm having my clientlibs under /apps.For the Clientlibs folder I will give the allowProxy = true as property value. This will help to call the clientlibs in dispatcher without any issues are you saying? or Do I need to call explicitly like this any where? I'm worried about the same issue which has been logged in some other forums. Regards,Vijay

Views

3.8K

Likes

0

Replies

4
Re: unable to use OSGi @Component if I'm using import com.day.cq.wcm.api.components.Component
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Thanks Arun. It's working.

Views

644

Likes

0

Replies

0
Re: recommended clinetlibs & other folders in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Thanks for you response. You have referred this URL Using Client-Side Libraries and even I have referred the same. My question is, if I have a folder(myapp) under etc/designs/myapp . And I gave the categories name as myapp.clientlib.all. In this case how should I handle the categories when I moved the clientlibs to apps/ folder. In the reference there is an example for single js & single img but not for categories.Thanks,Vijay

Views

3.8K

Likes

0

Replies

6
recommended clinetlibs & other folders in AEM 6.4
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi all,can anyone help on this below folders restructuring. This has been required for me to work on the 6.4 migrations.1) etc/designs/myproject/clientlibs - right now I moved this to apps/myproject/clientlibs . but I'm worrying on this path since the dispatcher will block this path. I have refered this URL Using Client-Side Libraries . This URL is useful if am referring a single image/js/css. But how should I refer a categories?2) /etc/commerce/products/web/Default/en (before)- var/commerce/pro...

Views

5.0K

Like

1

Replies

9
unable to use OSGi @Component if I'm using import com.day.cq.wcm.api.components.Component
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,I'm migrating from felix to OSGI annotations. In one of my servlet I'm trying to use @Component (OSGI annoation) instead of @Slingservlet. But it's throwing an error The import com.day.cq.wcm.api.components.Component collides with another import statement. In my servlet I have already used wcm api component , so now i'm unable to use OSGI @Component. Below is my sample code. Can any one help me to fix this? Appreciate your help.import com.day.cq.wcm.api.components.Component;import com.day...

Views

1.1K

Likes

0

Replies

3
replacing Felix annotations by OSGI R6 mannotations
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi all,I just want to have multiple selectors & multiple Method type in property attribute of @Component OSGI annotations. And here is the change I made. Is it right? will it work ? If not can anyone help me on this like what is expected?@Component(service = {Servlet.class},property = {"sling.servlet.resourceTypes=" + "cq:Page","sling.servlet.selectors=" + HardwareConfiguratorJsonServlet.CONFIGURATOR_SELECTOR, HardwareConfiguratorJsonServlet.ONECLICKBUY_SELECTOR, HardwareConfiguratorJsonServlet....

Views

1.4K

Likes

0

Replies

2
Re: OSGI Servlet not found when I hit the servlet path
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Thanks all for you help here. You guys are really great. smacdonald2008​ Arun Patidar​ Ratna Kumar​

Views

2.2K

Likes

0

Replies

0
Re: OSGI Servlet not found when I hit the servlet path
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Thanks Jorg. Finally I fixed the issue through .xml which has genretaed by my servlet. In XML I found out the space has been appended with my servlet path and that's causing an issue. Now removed the space and the servlet is getting called now.Also If I add the below plugin then the XML is generated for my servlet otherwise it didn't. org.apache.felix maven-bundle-plugin3.5.1 true scr-metadata manifest true true ${project.artifactId} ${project.description} (Rev. ${buildNumber} at ${time...

Views

2.2K

Likes

0

Replies

0
Re: OSGI Servlet not found when I hit the servlet path
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi Arun,Thanks for you help. I have my servlet code in place as you suggested already. For your reference I have placed the Felix annotation Servlet and OSGi DS annotations Servlet code below. Request you to help me if I missed anything here.Felix Annoattions:import ch.sample.aem.core.constants.AemConstants;import ch.sample.aem.core.dto.SystemStatusBean;import ch.sample.aem.core.helper.SystemStatusHelper;import com.google.gson.Gson;import java.io.IOException;import java.io.PrintWriter;import jav...

Views

2.2K

Likes

0

Replies

0
OSGI Servlet not found when I hit the servlet path
Avatar

sivas61374651

sivas61374651
- Adobe Experience Manager
Hi All,I'm just replacing the felix annotations with OSGi DS annotations for my servlet and I could able to build the project success. Once I deploy the bundle and hit the servlet path I'm getting 404 response in the page and the error log I'm getting this org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /bin/custom/sample not found.Thing I have tried:Tried with uber 6.3.0, 6.4.0 & 6.4.1tried with Maven-bundle-plugin version 3.2.0 & 3.3.0I checked my servlet is active and...

Views

3.9K

Likes

0

Replies

9
Likes given to
Likes from