Hi,
I facing a problem with stapler while trying to include a jelly from a different jar in my plugin.
I tried the following tow ways:
<st:include page="config.jelly" class="${instance.class}" />
and
<st:include page="config.jelly" from="${instance}" />
But both fails with the same error:
org.apache.commons.jelly.JellyTagException: file:/Users/domi/work/ws/jenkins_plugins/config-file-provider-plugin/src/main/resources/org/jenkinsci/plugins/configfiles/ConfigFilesManagement/edit.jelly:41:64: No page found 'config.jelly' for class org.jenkinsci.lib.configprovider.model.Config
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:124)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
Although the error message is pretty clear, I was not able to find a solution, I checked the JAR, the jelly is there and its at the correct location.
As soon as I move everything into the same project, it works - but I need to have it separated for more flexibility.
any idea?
regards Domi