Ben Todd created JCR-3807:
-----------------------------

             Summary: Problem loading classes at runtime
                 Key: JCR-3807
                 URL: https://issues.apache.org/jira/browse/JCR-3807
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-standalone
    Affects Versions: 2.8
         Environment: OSX
            Reporter: Ben Todd


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to