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
BedrockMission!

Learn More

View all

Sign in to view all badges

bbboy2014
Community profile bbboy2014 Level 2
Job title here
Location here
4 BADGES
Level 2

Level 2

Learn more
Joined the community 22-09-2014 8:13:33 PM
Offline
Top badges earned by bbboy2014
Customize the badges you want to showcase on your profile
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
HiAgain,I notice this article http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html# there is some mistake but i am not sure.e.g., below the "strong" path i change it for "/apps/jcrpersist/components" because i notice never create fold sqlpersist and i guess it is a type mistake, right?The css.txt file contains the CSS file name: site.css. Likewise, the js.txt file contains the JS file name: jquery-1.6.3.min.js.Add the files to the ClientLibs folder Right-click /a...

Views

1.6K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Get it, i will do that according to that aritcle. Thank you so much.

Views

1.6K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi,Yes, i did it literally according to this article but, always encounter that error.

Views

1.6K

Likes

0

Replies

0
Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
According to this article http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html# , finally run happened below error. I look into this problem for one day but no way to fix it.Anyone could help see this problem, thanks in advance.persist.json.jsp<%@include file="/libs/foundation/global.jsp"%> <%@ page import="org.apache.sling.commons.json.io.*,com.adobe.cq.*" %><% String first = request.getParameter("first"); String last = request.getParameter("last"); String phone...

Views

5.8K

Likes

0

Replies

18
Re: Why can't export the whole page conent using Session exportSystemView method
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi justin, thanks for your reply and i find the same reference part in the generated xml at my computer.But is there any way to get that block of text with JCR API? Because i need to get the text then send to another server to translate.

Views

111

Likes

0

Replies

0
Why can't export the whole page conent using Session exportSystemView method
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
private static void exportSystemView(Session session, Node page) { try { // page at "content/geometrixx/en/services/banking"; File outputFile = new File(page.getName() + ".xml"); FileOutputStream out = new FileOutputStream(outputFile); session.exportSystemView(page.getPath(), out, false, false); } catch (PathNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (RepositoryException ...

Views

178

Likes

0

Replies

3
Is there JCR API to get/reset page/node data
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Following is snippet code but last happen exception:session = repository.login(credentials); Node root = session.getRootNode(); Node cNode = root.getNode("content/geometrixx/en/services/banking"); cNode = cNode.getNode("jcr:content"); System.out.println(cNode.getProperty("title").getValue().getString()); Exception in thread "main" javax.jcr.PathNotFoundException: title at org.apache.jackrabbit.jcr2spi.NodeImpl.getProperty(NodeImpl.java:474) at com.globalsight.cn.CQ5Test.testWrite(CQ5Test.java:62...

Views

107

Likes

0

Replies

0
How to define a new page for adding new one feature link on the right pane of welcome
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Now i want to add new link on the right pane, press the link to open new page "test.jsp" or "test.html", please see below attached screenshot. According to i get learned, developer could add this new feature below /libs/cq/core/content/welcome/features/newLink like the other feature.As a result i can see the new link appear there, and i know to add it's new property sling:target (value is url) to link the page. But i don't know where to define the jsp page and how to map a url to that page like ...

Views

202

Like

1

Replies

4
Re: How to create/update Page according to the create PDF ouput in Adobe CQ
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Thanks for your reply. Yes, you get my mean exactly. Also i just mean to use JAVA API to do that.Right now i change the XML version of a page replace PDF. snippet code like following:private static void exportSystemView(Session session, Node page) { try { // page at "content/geometrixx/en/services/banking"; File outputFile = new File(page.getName() + ".xml"); FileOutputStream out = new FileOutputStream(outputFile); session.exportSystemView(page.getPath(), out, false, false); } catch (PathNotFoun...

Views

111

Likes

0

Replies

0
How to create/update Page according to the create PDF ouput in Adobe CQ
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
When you author in Adobe CQ, you may need to create a pdf version of the page. And PDF pages would be translate to another language like Chinese. Is there possibly a way or read-to-use solution could create new language page or update the page according to the PDF file?Thanks in advance.

Views

202

Likes

0

Replies

3
Re: why i can't generate the file in Adobe CQ
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Yes, this code run fine and no exception. But always can't find the generate file.

Views

127

Likes

0

Replies

0
why i can't generate the file in Adobe CQ
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Write a bundle and Jsp page call the function, it's weired that can't generate and find the file.@Override public String generateFileTest() { File file = new File("test.xml"); file.createNewFile(); return file.getAbsolutePath(); } Anybody know the reason? BTW, if need to set configure in AEM?Thanks in advance.

Views

228

Likes

0

Replies

5
Re: Why AEM appear an error "unspecified error" ?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Maybe you are right, but i am new to AEM and wondering how to make servlet be called from pages?Thanks a lot.

Views

224

Likes

0

Replies

0
Why AEM appear an error "unspecified error" ?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi there,i added an button in the sidekick with the following script code:CQ.Ext.ns("MyClientLib"); MyClientLib.ContentFinder = { addToCart: function(sk){ var pagePanel = sk.panels["PAGE"]; var button = pagePanel.findBy(function(comp){ return comp["name"] == "ADD2_CART"; }, pagePanel); if(button && button.length > 0){ return; } button = { xtype: "button", scope: sk, name: "ADD2_CART", text: "Add to cart", "context": [ CQ.wcm.Sidekick.PAGE ], handler: function(){ //store to cart var pagePath = CQ...

Views

552

Likes

0

Replies

3
How to add a link at each page aumatically?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Maybe there is a challenge case for me: i want to add a button or link "Add to Cart" at the top right corner for each page automatically, please see following screenshot:[img]add2cart.png[/img] It means that if user to open a instance of pagee/template, the button/link appear at there automatically. But i don't know how to write a script for that in AEM since i am new to that? Anyone could help see and give your comment here?Thanks a lot. Best regards,Brian

Views

161

Likes

0

Replies

2
Re: How to post email in AEM
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi feike, thank you for your comments, and i try changing that but no help for that error.I have to continue resarech it.

Views

158

Likes

0

Replies

0
How to post email in AEM
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Today i try to use a OSGI to send email in AEM, below is code snippet: 4.0.0 com.adobe.cq customer 1.0-SNAPSHOT customer-bundle bundle Customer Training Package Bundle org.apache.felix maven-scr-plugin generate-scr-descriptor scr org.apache.felix maven-bundle-plugin true com.adobe.cq.customer-bundle org.apache.felix maven-bundle-plugin true com.adobe.cq.schedule-bundle org.apache.sling maven-sling-plugin http://${crx.host}:${crx.port}/apps/customer-tr...

Views

487

Likes

0

Replies

5
Re: How to run a thread in AEM OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Sham,The thread just used to invoke an webservice and to check tasks if completed. If true, this application will pull a remote file from a server. Best regards,Brian

Views

116

Likes

0

Replies

0
How to run a thread in AEM OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,There is a case that i need to define a thread in the OSGI bundle. This thread auto-running at the background, but how to active and start this thread?Is there any specif solution for that? Thanks a lot.Best regards,brian

Views

243

Likes

0

Replies

3
Re: How to invoke another OSGI bundle servlet from different OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
When i delete below element within POM file, run maven command "mvn clean install" very well. com.day.commons.osgi.wrapper com.day.commons.osgi.wrapper.commons-httpclient 3.1.0.018 provided However, if i add the above element within POM file, run maven command appears error as below immediately.[img]mvnerror.png[/img]

Views

368

Likes

0

Replies

0
Re: How to invoke another OSGI bundle servlet from different OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Scott,After add that elements to my POM file, it happened the error either as before.[img]httpclient.png[/img] So weird here. Best regards,Brian

Views

315

Likes

0

Replies

0
Re: How to invoke another OSGI bundle servlet from different OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi scott,i did it following your suggestion. However, maven can't download the jar com.day.commons.osgi.wrapper.commons-httpclient-3.1.0.018.jar i don't know how to deal with it. Details please see below screenshot.[img]httpclient.png[/img] Thanks a lot.

Views

312

Likes

0

Replies

0
Re: How to invoke another OSGI bundle servlet from different OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi scott,Thanks for your comments. and the question is if AEM support third party httpclient.jar dependency well? Thanks a lot.Best regards,Brian

Views

315

Likes

0

Replies

0
How to invoke another OSGI bundle servlet from different OSGI bundle?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,i just wondering How to invoke another OSGI bundle servlet from different OSGI bundle? Thanks a lot.Best regards,Brian

Views

1.5K

Likes

0

Replies

11
Re: How to add new item in the Tab page ----basic in sidekick
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Sham,I see again http://daycq.blogspot.jp/2012/05/hi-team-have-requirement-where-we-need.html, and now it works but need to run Adobe on the author model.You can check it again. Thanks.Brian

Views

124

Likes

0

Replies

0
Re: How to add new item in the Tab page ----basic in sidekick
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
I attampt to write a example by your gave reference, and i am using Adobe Experience Manager, Version 6.0.0.20140509.While i open file .content.xml under the folder CustomAction.js.dir, i don't know how to creat it. I can't find jcr:content in the select list. I guess maybe the Version 6 AEM is different from AME 5.X And i didn't find the properties categories in my CRT : Could you help see again?Thanks.Regards

Views

123

Likes

0

Replies

0
Re: How to add new item in the Tab page ----basic in sidekick
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Sham,I find a relevant example here http://daycq.blogspot.jp/2012/05/hi-team-have-requirement-where-we-need.htmlIt's just fit with my need. But i try to do that by it and not work it , is it a right way to do that?BTW, and i see the link page you give me, it seems to add one button to the sidekick for the page of the specific template. But my need is to add a button to all pages, which means it is a default button existed in the sidekick in the model "Classic UI", like "copy page" "movie page...

Views

124

Likes

0

Replies

0
How to add new item in the Tab page ----basic in sidekick
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Now i need to add new "item"(i not sure this name) in the page Tab bottom, basic in sidekick. And we can see there are: move page | delete page | and so on.When user press "new item", it will popup a wizard contains several pages.Anyone know how to add item? and popup wizard? Thanks in advance.Regards,Brian

Views

266

Likes

0

Replies

6
Re: How to get current page or current page sub page or all pages contents byte for post to remote server for translate
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi sham,Again, now i need to use Java language to develop the translating logic that copy page or get page information in AEM. But i notice that the CQ provide relevant API, you can see here: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html. So my question is following:1) How to get the CQ jar to develop?2) Should i use JCR(JAR) API or CQ(JAR) API to develop? I don't know what the difference between both? Thanks a lot.

Views

116

Likes

0

Replies

0
Re: How to get current page or current page sub page or all pages contents byte for post to remote server for translate
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Sham HC wrote... Make use of workflow for your use case. Watch best practice and presentations at http://dev.day.com/content/ddc/en/gems/streamlining-multilingual-content-process.htmlhttp://dev.day.com/content/ddc/en/gems/msm-and-translation--best-practices.html http://www.slideshare.net/Dayignite/translationscom-managing-global-content-day-cq5-and-globallink http://dev.day.com/content/ddc/en/gems/streamlining-multilingual-content-process.html not available.

Views

142

Likes

0

Replies

0
Likes given to
Likes from