Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20543

Jython does not work when installed as extension

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 14.10.2
    • Rendering - Code Macro
    • None
    • Unknown

    Description

      For example with the code macro, getting

      Caused by: org.xwiki.component.phase.InitializationException: Failed to find engine for Python script language
       at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:145)
       at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
       at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:373)
       at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:459)
       at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
       ... 221 more
      

      Despite what the message suggests, an engine factory is found for "python" but it fails to call the constructor of org.python.jsr223.PyScriptEngine because it cannot find the class even if it's in the same classloader as the factory.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: