ClassNotFoundException : com.onresolve.jira.groovy.canned.workflow.postfunctions
*This issue has moved*
This issue has been moved permanently to Adaptavist's Product Support JIRA instance.
All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the
Can't access your account link in order to reset to a new password.
I'm developing a jira-plugin and run jira with atlas-run. I installed the Script Runner Plugin with the Jira Plugin-Manager in the Admin Area. When I try to add a Script Runnter Postfunction the following Exception appears:
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getCannedScripts' in class com.onresolve.jira.groovy.CannedScriptRunner threw exception class java.lang.ClassNotFoundException : com.onresolve.jira.groovy.canned.workflow.postfunctions (/Users/XZ/src/main/resources/com/onresolve/jira/groovy/canned/workflow/postfunctions) does not appear to be a valid package at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256)
Opening 'Builtin Scripts' or 'Script Listeners' also lead to a ClassNotFoundException:
Invocation of method 'getCannedScripts' in class com.onresolve.jira.groovy.CannedScriptRunner threw exception class java.lang.ClassNotFoundException : com.onresolve.jira.groovy.canned
Running Groovy Scripts on the 'Script Runner' Page works fine.
A few weeks ago I tested exactly the same with an older Script Runner Version during the Jira 5.0 Beta.
OSX, Jira v5.0.3#729 (but also older Versions like 5.0-beta1)
2.0.6 works fine, thanks!
just released a version that should fix this.
Yeah, I know about this. Have fixed it and will release soon. The problem is that you have the system property plugin.resource.directories set, probably in your setenv.sh|bat.
If you remove that it will work ok.
this exception also occurs with 2.0.4 and 2.0.3.
2.0.2 and 2.0.0 work fine.