Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

CQDarren
Community profile CQDarren Level 2
Job title here
Location here
6 BADGES
Level 2

Level 2

Learn more
Joined the community 30-11-2012 2:31:33 AM
Offline
Top badges earned by CQDarren
Customize the badges you want to showcase on your profile
Re: Using HttpClient = Error importing OSGI bundle from Eclispe
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi,Thanks for the post..I believe the I made a mistake with the pasting of my code as I had to remove some client specific stuff... And must of removed the annotation by mistakeIve created a small test bundle package osgi.test;import java.io.IOException;import javax.servlet.ServletException;import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;import org.apache.commons.httpclient.params.HttpMethodParams;import org.apache.felix.scr.annotations.sling.SlingServlet;import org.apache.htt...

Views

186

Likes

0

Replies

0
Using HttpClient = Error importing OSGI bundle from Eclispe
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi Everyone,I hope someone can help.Im trying to import a servlet into CQ via maven and getting an error which I dont understand. My servlet is using HttpClient to call a third party api. When I import via maven I get the following error16.09.2013 12:36:08.210 *ERROR* [OsgiInstallerImpl] org.apache.sling.servlets.resolver.internal.SlingServletResolver bindServlet: Servlet service not available from reference [javax.servlet.Servlet, javax.servlet.ServletConfig, java.io.Serializable]Here is my cod...

Views

572

Likes

0

Replies

4
Best Way to Sort a List of Resources ?
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi everyone,As you all probably know im new to CQ. I have been looking over the APIs, and was wondering what the best solution is to sort a list of Resources.My current snippet is :Iterator myResources = res.listChildren(); while (myResources.hasNext()) { Resource resource = myResources.next(); String name = resource.getName(); LOGGER.info("The node found is = " + name); } So what I need to do is sort the resources by name before I loop? Do I need a custom comparator for this or is there somethi...

Views

1.3K

Likes

0

Replies

1
Eclipse Code Completion not working in JSP
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi everyone,I have successfully configured my CQ project using maven and eclipse and can import, I have followed the steps here : http://dev.day.com/docs/en/cq/5-3/developing/developmenttools/developing_with_eclipse.htmlAs the document suggests I add all the jar files to my build path but the code completion id not working in my JSP.For example in my JSP I haveresourceResolver.getResource("/content...");however when I hit control space I do not see any methods on the resourceResolver object.Does...

Views

227

Likes

0

Replies

1
Re: Error when trying to consume OSGI Service
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi Harrishmv,You have two ways 1) In your CQ installation you will have a quickstart.bat and you can apply vm args thier.. i.e "set CQ_JVM_OPTS="2) You can add the vm options to the cq executable jar using ergonomics e.g -Dxx:useSplitVerifierI would do it in the quickstart.bat.. Saves you configuring each time..Hope it HelpsDarren.

Views

802

Likes

0

Replies

0
Re: Error when trying to consume OSGI Service
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
After some digging around I found this: https://issues.apache.org/jira/browse/FELIX-3568This relates to java 1.7 however I am running java 1.6.0_29.As stated I changed the VM option and it has worked! Im still unsure what the problem was and how the VM option has fixed it and was hoping someone could help me understand this?

Views

800

Likes

0

Replies

0
Re: Error when trying to consume OSGI Service
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi Pawan / everyone,Further to this I tried to activate my component using (immediate =true) and I received the following error. I think this may be why sling cannot retrieve the object… Am I missing some dependencies / config or something?19.03.2013 11:55:43.454 *INFO* [OsgiInstallerImpl] org.apache.sling.servlets.resolver.internal.SlingServletResolver Registered ServletResourceProvider: servlet=com.day.crx.ide.CRXDECompileServlet, paths=[/libs/crxde/compile, /libs/crxde/compile.servlet]19.03.2...

Views

795

Likes

0

Replies

0
Re: Error when trying to consume OSGI Service
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi Pawan,Thank you for the reply for the reply and Ive looked at the thread as suggested but still to no joy 😞Here is my Service classes:Interfacepackage com.adobe.training;public interface RepositoryService { public String getRepositoryName();}Implementationpackage com.adobe.training.impl;import com.adobe.training.RepositoryService;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.felix.scr.annotations.Component;import org.apache.felix.scr.annotations.Activate;import org...

Views

799

Likes

0

Replies

0
Error when trying to consume OSGI Service
Avatar
Give Back 5
Level 2
CQDarren
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 3
Give Back
Ignite 1
View profile
CQDarren
- Adobe Experience Manager
Hi Everyone,This is my first post after attending the developer and advanced developer courses on CQ5.5. Everything has been fine up to the point where I am trying to create and consume an OSGI service but am receiving an error. I was hoping someone could help?I have created a bundle which has an interface (RepositoryService) and implementation (RepositoySeviceImp) . I have modified the bnd file to export my package:Export-Package: com.adobe.trainingImport-Package: *Private-Package: com.adobe.tr...

Views

10.8K

Likes

0

Replies

9