Comala Publishing DC cannot be enabled
Problem
Comala Publishing DC failed to enable:
Since version 3.0, Comala Publishing has enhanced its capabilities with the introduction of a new feature: Snapshot Publishing. This feature will be available as a standalone app.
Uninstalling or disabling Snapshot Publishing can lead to unexpected issues in Comala Publishing due to its dependencies, as we will explore further below.
Solution
Ask for the Confluence logs to analyze them and check the following:
Snapshots Publishing app is disabled or has been removed. An error like the below one will appear:
2025-01-24 10:56:34,548 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.comalatech.publishing' org.springframework.context.ApplicationContextException: Application context initialization for 'com.comalatech.publishing' has timed out waiting for (&(objectClass=com.appfire.confluence.snapshots.shared.service.contract.CompanionAppService)(objectClass=com.appfire.confluence.snapshots.shared.service.contract.CompanionAppService)) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516)
a. If Snapshots Publishing app has been disabled, it has to be enabled again.
b. If Snapshots Publishing app is not installed then Comala Publishing has to be reinstalled. This process is safe and will not result in any data loss. Reinstalling will ensure that the Snapshots Publishing app is included.
It is important to understand that Comala Publishing relies on the Snapshots Publishing app for its functionality. Both applications must be installed and enabled concurrently because of their interdependencies.
Confluence’s native PDF exporter app is disabled. The error will look like the below:
2025-01-24 14:43:29,832 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.appfire.confluence.snapshots-publishing' never resolved service '&pdfExporterService' with filter '(&(objectClass=com.atlassian.confluence.extra.flyingpdf.PdfExporterService)(objectClass=com.atlassian.confluence.extra.flyingpdf.PdfExporterService))' 2025-01-24 14:43:29,832 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.appfire.confluence.snapshots-publishing' org.springframework.context.ApplicationContextException: Application context initialization for 'com.appfire.confluence.snapshots-publishing.snapshots' has timed out waiting for (&(objectClass=com.atlassian.confluence.extra.flyingpdf.PdfExporterService)(objectClass=com.atlassian.confluence.extra.flyingpdf.PdfExporterService)) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516)
The Confluence PDF exporter app must also be activated:
Since version 3.0, it is essential to have Java 11 or a later version installed on your server to effectively use Comala Publishing. For further details, please refer to our release notes: 3.0 Release Notes.
It is highly recommended to check the current version of Java on the Data Center as a precautionary measure.