I have a strange problem in one of my jelly views. I always get a java.lang.ClassNotFoundException when I want to access the static method of a class:
org.apache.commons.jelly.JellyTagException: jar:file:/Users/hafner/Development/jenkins/plugins/analysis-core/WEB-INF/lib/analysis-core.jar!/hudson/plugins/analysis/core/BuildResult/index.jelly:10:113: <j:invokeStatic> Could not load class: hudson.plugins.analysis.core.GlobalSettings. Reason: java.lang.ClassNotFoundException: hudson.plugins.analysis.core.GlobalSettings at org.apache.commons.jelly.tags.core.InvokeStaticTag.createLoadClassFailedException(InvokeStaticTag.java:177) at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:136) at … The exception is thrown by the following snippet: <j:invokeStatic var="settings" className="hudson.plugins.analysis.core.GlobalSettings" method="instance“/> The class exists and it is accessible from another view. Even if I use the invokeStatic on a JDK class then the same exception appears. Has someone an idea what is going on here? The exception occurs if I place the snippet into the view https://github.com/jenkinsci/analysis-core-plugin/blob/master/src/main/resources/hudson/plugins/analysis/core/BuildResult/index.jelly If I place the same piece of code into the following view, then everything works as expected: https://github.com/jenkinsci/dry-plugin/blob/master/src/main/resources/hudson/plugins/dry/DryTabDetail/dry-details.jelly -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/86AAFB18-FECF-43AD-A7E5-B535414EF142%40gmail.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP
