Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3807

Problem loading classes at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.8
    • None
    • jackrabbit-standalone
    • None
    • OSX

    Description

      We have a tool that loads libraries for our plugins at runtime. Jackrabbit-Standalone is loaded and is needed to connect to Adobe Experience Manager. However, when I try to run the rule I get
      Exception in thread "Thread-3" java.lang.NoClassDefFoundError: org/apache/jackrabbit/commons/JcrUtils
      at com.pci.scriba.plugin.aem.AddTextNodeAdobePageRule.updateAEM(AddTextNodeAdobePageRule.java:94)
      at com.pci.scriba.plugin.aem.AddTextNodeAdobePageRule.execute(AddTextNodeAdobePageRule.java:70)
      at com.pci.scriba.core.rule.RuleWrapper.executePrivate(RuleWrapper.java:27)
      at com.pci.scriba.core.rule.Rule.execute(Rule.java:617)
      at com.pci.scriba.core.rule.RuleSet.execute(RuleSet.java:272)
      at com.pci.scriba.core.rule.RuleSetInterpreter.run(RuleSetInterpreter.java:64)
      at com.pci.scriba.engine.subsystems.job.JobRunner.run(JobRunner.java:72)
      Caused by: java.lang.ClassNotFoundException
      at com.pci.util.plugin.JarInfoClassLoader.findClass(JarInfoClassLoader.java:71)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

      If I add JackRabbit-Standalone to the classpath before hand I do not get this error. We have loaded hundreds of jars using our plugin loader and this is the first time I have experienced something like this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bentodd Ben Todd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: