Hi,
I have created the OSGI bundle for opencsv jar and put it in fleix console.I couldn't able to import the class file in my apps ??
Then I used JSoup jar ,for that i downloaded the sources and put in the project under apps and deployed it .I can able to use the methods from that jsoup java class now but it showing this exception "exception “Could not initialize class org.jsoup.nodes.Entities$EscapeMode java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode”" .
Please suggest me a solution.Its very urgent
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
I wanted to test this use case to make sure that there were not any issue using the JSOUP API within AEM.
So i created an OSGi bundle that uses the JSOUP API to define a custom AEM HTML parser service. It works perfectly:
[img]App.png[/img]
Then I wrote up a community article that walks you through how to build an OSGi bundle that uses the JSOUP API. This article provides step by step instructions.
http://helpx.adobe.com/experience-manager/using/html-parser-service.html
Views
Replies
Total Likes
Sounds like you have not deployed the JSOUP JAR file into an OSGi bundle fragment and deployed that bundle fragment to CQ.
I recommend using the Eclipse Plug-in project to wrap your 3rd party JAR into a bundle fragment. Then you deploy that to CQ.
As a example of how to do this... see this topic:
"Add the org.json.simple.JSONObject data type to Adobe CQ" in this community article: http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
Replace the JSON lib in that article -- with the JSOUP JAR.
Views
Replies
Total Likes
I wanted to test this use case to make sure that there were not any issue using the JSOUP API within AEM.
So i created an OSGi bundle that uses the JSOUP API to define a custom AEM HTML parser service. It works perfectly:
[img]App.png[/img]
Then I wrote up a community article that walks you through how to build an OSGi bundle that uses the JSOUP API. This article provides step by step instructions.
http://helpx.adobe.com/experience-manager/using/html-parser-service.html
Views
Replies
Total Likes