Question Regarding Third Party Jar
Hi,
I have a question regarding "use of third party jar" in AEM 6.0 SP2. I am listing down steps which i performed, hoping to get some solution :
- I wrote a standalone java program which uses three jar files internally which i wanted to move to AEM ( wanted to make same functionality as a workflow method)
- I created OSGI bundle jar (for all three) using eclipse plugin and imported through felix console. Once imported i stopped getting class not found exception for third party jar class in my workflow class.
- Although my workflow class started throwing exception for one of java specific class (since it internally uses that) : javax.swing.event.EventListenerList
- Then i came to know that i might need to add my third party jar file as fragment bundle, for it to pick java 7 specific class files (manifest entry) :
- Fragment-Host: org.apache.felix.framework; extension:=framework
- After making this jar as fragment bundle and several restart now i am getting class not found exception for original jar again.
I can see that jar/class is available through "depfinder" but its not getting picked up by my custom workflow class. Any suggestion to debug would be really helpful.
~TD