Expand my Community achievements bar.

SOLVED

YouTube Integration with AEM Dam for AEM Cloud

Avatar

Level 2

In AEM Cloud, I want to share AEM dam stored videos to YouTube using custom servlet which is using google API's
3.png
I have added all the required dependences in core pom.xml and also there no code issues 
2.png
but i am facing issues with Bundle, my project bundle is not getting activated, its in installed state and showing following errors
1.png
com.google.api.client.auth.oauth2,version=[1.33,2) -- Cannot be resolved
com.google.api.client.googleapis.auth.oauth2,version=[1.34,2) -- Cannot be resolved
com.google.api.client.googleapis.javanet,version=[1.34,2) -- Cannot be resolved
com.google.api.client.http,version=[1.41,2) -- Cannot be resolved
com.google.api.client.http.javanet,version=[1.41,2) -- Cannot be resolved
com.google.api.client.json,version=[1.41,2) -- Cannot be resolved
com.google.api.client.json.gson -- Cannot be resolved
com.google.api.client.util.store,version=[1.41,2) -- Cannot be resolved
com.google.api.services.youtube -- Cannot be resolved
com.google.api.services.youtube.model -- Cannot be resolved

i tried to download some of the google dependences as jar file and install in Web Console Bundles manually, but some google jar files are showing 500 error
HTTP ERROR 500 Server Error
URI: /system/console/bundles
STATUS: 500
MESSAGE: Server Error
SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-777d920c
CAUSED BY: java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle

i'm using latest AEM cloud version Adobe Experience Manager 2025.1.19149.20250116T154450Z-241100

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @san_11 

Make sure you installed those jar as bundle not plain jar.

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-17475 



Arun Patidar

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @san_11 

Make sure you installed those jar as bundle not plain jar.

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-17475 



Arun Patidar

Avatar

Community Advisor

@san_11 You will have to convert the jars into an OSGI bundle. OSGI container needs bundles and not plain JARs.

Avatar

Level 7

To resolve the issue with your AEM Cloud integration with YouTube, follow these steps:

1. Convert JARs to OSGI Bundles: Ensure you are installing the dependencies as OSGI bundles, not plain JARs. AEM requires OSGI bundles for proper integration, and simply adding JARs will not work.

2. Check Missing Bundle-SymbolicName Header: The error indicates the missing Bundle-SymbolicName header. Ensure the Google API JARs are properly packaged as OSGI bundles with the necessary headers for AEM to recognize them.

3. Use Maven: Instead of manually installing the JARs, add the correct Maven dependencies to your project’s pom.xml file for Google API libraries. This way, Maven will handle packaging and versioning automatically, ensuring smooth integration.

You can follow this guide https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-17475 for further steps.

Avatar

Level 4

Hi,

 

Can you try adding the scope as provided in the core pom.xml for this dependency and add all the other required dependencies in core pom as well with the provided scope

 

<dependency>
    <groupId>com.google.api-client</groupId>
    <artifactId>google-api-client</artifactId>
    <scope>provided</scope>
</dependency>