This issue has been created
 
 
Publication Workflow Application / cid:jira-generated-image-avatar-0610a919-fd2d-4df4-a9ba-c67256e43adc XAWORKFLOW-117 Open

Failed to initialize workflow rename listener on XWiki 16.4.x

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e0277fdb-f23c-4775-a14e-69febb25666b Clément Aubin created this issue on 13/Nov/24 08:56
 
Summary: Failed to initialize workflow rename listener on XWiki 16.4.x
Issue Type: cid:jira-generated-image-avatar-0610a919-fd2d-4df4-a9ba-c67256e43adc Bug
Affects Versions: 2.4.1
Assignee: Unassigned
Created: 13/Nov/24 08:56
Priority: cid:jira-generated-image-static-major-782a1517-c048-4019-86cb-3629ff3f1469 Major
Reporter: Clément Aubin
Description:

When installing the publication workflow on XWiki 16.4.3, the following error will show up in the logs :

2024-11-12 15:37:38,861 [main] ERROR .i.DefaultExtensionInitializer - Failed to initialize local extension [org.xwiki.contrib.workflow-publication:xwiki-workflow-publicatio
n-application/1.10] 
org.xwiki.extension.ExtensionException: Failed to initialize dependency [org.xwiki.contrib.workflow-publication:xwiki-workflow-publication-api-1.10]
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionDependencyInNamespace(DefaultExtensionInitializer.java:216)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:170)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:148)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtension(DefaultExtensionInitializer.java:118)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initialize(DefaultExtensionInitializer.java:104)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initialize(DefaultExtensionInitializer.java:80)
        at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
        at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
        at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
        at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
        at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
        at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:290)
        at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:116)
[…snip…]
Caused by: java.lang.NoClassDefFoundError: Failed to get fields for class [org.xwiki.workflowpublication.internal.PublicationWorkflowRenameListener] because the class [difflib/PatchFailedException] couldn't be found in the ClassLoader.
        at org.xwiki.component.util.ReflectionUtils.getAllFields(ReflectionUtils.java:83)
        at org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:168)
        at org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:139)
        at org.xwiki.component.annotation.ComponentAnnotationLoader.getComponentsDescriptors(ComponentAnnotationLoader.java:168)
        at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:212)
        at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:137)
        at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.loadComponents(JarExtensionHandler.java:251)
        at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.install(JarExtensionHandler.java:183)
        at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.initialize(JarExtensionHandler.java:144)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.initialize(DefaultExtensionHandlerManager.java:154)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:175)
        at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:148)
[…snip…]