AEM Soft Delete with AWS S3 Sync | Community
Skip to main content
sams16001423
Level 2
June 16, 2026
Question

AEM Soft Delete with AWS S3 Sync

  • June 16, 2026
  • 1 reply
  • 0 views

 

  <bnd><![CDATA[
-dsannotations: *
-dsannotations-options: version;minimum=1.3.0;maximum=1.3.0

Import-Package: javax.annotation;version=0.0.0,\
 javax.servlet.*;version=0.0.0,\
 com.adobe.granite.workflow.*;version=0.0.0,\
 com.day.cq.wcm.api.*;version=0.0.0,\
 org.apache.sling.api.*;version=0.0.0,\
 org.apache.sling.api.resource.*;version=0.0.0,\
 !com.amazonaws.*,\
 !org.checkerframework.*,\
 !javax.annotation.meta,\
 *

Embed-Dependency: aws-java-sdk-bundle;inline=false,aws-java-sdk-core;inline=false
Embed-Transitive: true

Bundle-ClassPath: ., {maven-dependencies}

DynamicImport-Package: com.amazonaws.*

]]></bnd>

<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk-bundle</artifactId>
  <version>1.12.700</version>
</dependency>


error -

Error: [TIMESTAMP] *WARN* [FelixLogListener] com.example.aem.core.services.impl.S3DeleteServiceImpl bundle example-aem-project.core:1.0.0-SNAPSHOT [BUNDLE_ID] [com.example.aem.core.services.impl.S3DeleteServiceImpl(COMPONENT_ID)] : Failure looking up method activate(org.osgi.service.component.ComponentContext) in class com.example.aem.core.services.impl.S3DeleteServiceImpl. Assuming no such method. org.apache.felix.log.LogException: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/AmazonS3 at java.base/java.lang.Class.getDeclaredMethods0(Native Method) at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3580) at java.base/java.lang.Class.getDeclaredMethod(Class.java:2848) at org.apache.felix.scr.impl.inject.methods.BaseMethod.getMethod(BaseMethod.java:359) at org.apache.felix.scr.impl.inject.methods.ActivateMethod.doFindMethod(ActivateMethod.java) Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.s3.AmazonS3 not found by example-aem-project.core [BUNDLE_ID] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591) at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ... 42 common frames omitted [TIMESTAMP] *ERROR* [FelixLogListener] ROOT bundle example-aem-project.core:1.0.0-SNAPSHOT [BUNDLE_ID] BundleComponentActivator : Unexpected failure enabling component holder com.example.aem.core.services.impl.S3DeleteServiceImpl org.apache.felix.log.LogException: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/AmazonS3 at java.base/java.lang.Class.getDeclaredMethods0(Native Method) at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3580) at java.base/java.lang.Class.getDeclaredMethods(Class.java:2678) at org.apache.felix.scr.impl.inject.methods.ActivateMethod.getSortedMethods(ActivateMethod.java:200) at org.apache.felix.scr.impl.inject.methods.ActivateMethod…

 

Has anyone faced this `NoClassDefFoundError` issue while integrating AWS S3 with an AEM OSGi bundle, or implemented a similar AEM soft-delete/archive flow with S3 sync? Any guidance would be appreciated.

 

thanks in advance

1 reply

VeenaVikraman
Community Advisor
Community Advisor
June 16, 2026

What version of AEM are you using ? We have implemented a different usecase with S3 . But we have done it with AEMasCS.

Thanks

Veena

sams16001423
Level 2
June 16, 2026

on prem not AEMasCS, Adobe Experience Manager (6.5.0)