My Maven project works fine using the local SDK or Dev environment, but encounters errors in the RDE environment.
The error I encountered is:
*ERROR* [FelixLogListener] com.adobe.granite.optout.impl.OptOutServiceImpl bundle com.adobe.granite.optout:1.0.0 (255)[com.adobe.granite.optout.impl.OptOutServiceImpl(686)] : factory pid com.adobe.granite.optout.impl.OptOutServiceImpl, but this pid is already supplied as a singleton: [com.adobe.granite.optout.impl.OptOutServiceImpl] at index 0
*ERROR* [FelixLogListener] LogService.org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,36,
[org.osgi.service.cm.ConfigurationAdmin]] Unexpected problem delivering configuration event to [org.osgi.service.cm.ConfigurationListener, id=39, bundle=13/reference:file:/opt/aem/launcher/cache/org/apache/felix/org.apache.felix.configadmin/1.9.24/org.apache.felix.configadmin-1.9.24.jar] (java.lang.IllegalStateException: Factory pid supplied after all non-factory configurations supplied com.adobe.granite.optout.impl.OptOutServiceImpl)
java.lang.IllegalStateException: Factory pid supplied after all non-factory configurations supplied com.adobe.granite.optout.impl.OptOutServiceImpl
The following error repeatedly occurs multiple times:
*ERROR* [FelixLogListener] org.apache.sling.servlets.resolver.internal.resource.ServletMounter bundle org.apache.sling.servlets.resolver:2.9.14 (352)[org.apache.sling.servlets.resolver.internal.resource.ServletMounter(1236)] : The unbindServlet method has thrown an exception (java.lang.IllegalStateException: Invalid BundleContext.)
java.lang.IllegalStateException: Invalid BundleContext.
Additionally, I noticed a difference in the 'Bundles Status' values in the Developer Console between these two environments. However, I am unsure why there is a difference and how to resolve it.
The image below is from the RDE environment

The image below is from the Dev environment.
