Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Refer Third Part jar in a bundle

Avatar

Level 1

Hi,

 

Guys could you please tell me how can i refer a jar in a OSGI bundle.

 

What i have done is i have installed my code as a bundle and other Jar file has a separate bundle.

But my code is not able to refer to that jar file.

Please help.

 

Thanks and Regards,

Nitin

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi 

See this community article. It talks about developing a CQ Sling Servlet that uses a JSON lib. The JSON lib is in its own JAR file and is placed within a OSGi fragment and deployed to CQ. Now the bundle that uses the JSON lib can be deployed too. 

See: 

http://scottsdigitalcommunity.blogspot.ca/2013/06/posting-form-data-to-adobe-cq-using.html

HTH,

Scott

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi 

See this community article. It talks about developing a CQ Sling Servlet that uses a JSON lib. The JSON lib is in its own JAR file and is placed within a OSGi fragment and deployed to CQ. Now the bundle that uses the JSON lib can be deployed too. 

See: 

http://scottsdigitalcommunity.blogspot.ca/2013/06/posting-form-data-to-adobe-cq-using.html

HTH,

Scott