Server Error: Cannot instantiate process definition: Can't find scripting engine for 'groovy'

561 views
Skip to first unread message

TInaTinaTian L

unread,
Jul 4, 2014, 2:29:53 PM7/4/14
to camunda-...@googlegroups.com

Have a groovy script task in my process and added dependency for groovy as follows:
                <dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.0.1</version>
</dependency>
But keeps getting server error saying scripting engine does not exist. Built JUnit tests in Java and was able to instantiate process definition but does not work on Camunda cockpit where I deployed war file to my local server and tried to instantiate the process.
Any help is greatly appreciated. 

Cheers, 
Tin

webcyberrob

unread,
Jul 4, 2014, 10:12:44 PM7/4/14
to camunda-...@googlegroups.com
If you are using Tomcat and Camunda version 7.1 or less, install the Groovy-all.2.x.x jar file into the Tomcat lib folder.

I believe the next version of Camunda includes the script libraries, however prior versions required script libraries to be installed.

Sebastian Menski

unread,
Jul 7, 2014, 3:40:34 AM7/7/14
to camunda-...@googlegroups.com
Hi Tin,

as Rob said before camunda 7.1.0 distros do not include any scripting libraries. You have to install them separately as needed. How to install depends
on the app server your using.

With camunda 7.2.0 there will be out of the box support for groovy. But other scripting languages like python and ruby have still to be installed
by yourself. The last alpha release 7.2.0-alpha2 already contains the groovy library.

If you need further help don't hesitate to ask but please add further information about your system (i.e. app server version).

Cheers,
Sebastian

TInaTinaTian L

unread,
Jul 7, 2014, 10:34:42 AM7/7/14
to camunda-...@googlegroups.com
Hi Rob,

Thank you for your response. But spinning wheels here for a lot longer than I should be trying to put my .jar to the exact location where camunda looks for scripting libs. I have tried ur way where I put the jar file in the "\camunda-bpm-tomcat-7.1.0-Final\lib" folder, but that didn't fix anything. I have also tried "\camunda-bpm-tomcat-7.1.0-Final\server\apache-tomcat-7.0.50\webapps\engine-rest\WEB-INF\lib" and added groovy dependency in the "\camunda-bpm-tomcat-7.1.0-Final\server\apache-tomcat-7.0.50\webapps\engine-rest\META-INF\maven\org.camunda.bpm\camunda-engine-rest\pom.xml", but that didn't fix anything as well.

I have tried the 7.2.0-alpha release where groovy is built in but I still can't instantiate a process and I figured which happened for the same reason relating to groovy script lib.

Can u help to provide more detailed steps as to what could be done?

Thank you,
Tin

Christian Lipphardt

unread,
Jul 7, 2014, 10:36:21 AM7/7/14
to camunda-...@googlegroups.com
Hi Tin,

put your groovy.jar into \camunda-bpm-tomcat-7.1.0-Final\server\apache-tomcat-7.0.50\lib .
Then it will work.

Cheers,
Christian
> --
> You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
> To post to this group, send email to camunda-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/a565a5a3-c2c6-4916-8c5a-c780d3229977%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

TInaTinaTian L

unread,
Jul 7, 2014, 11:07:10 AM7/7/14
to camunda-...@googlegroups.com
Hi Christian, 
It is working now. Thank you for your advice!
Tin
Reply all
Reply to author
Forward
0 new messages