cancel
Showing results for 
Search instead for 
Did you mean: 

We've upgraded some of our developers to 1.6.1 and they are getting the following errors on a imported process that uses a script step. 09-Jun-2017 14:06:05.024 SEVERE [http-nio-9999-exec-4] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.se

navonodt
Champ on-the-rise
Champ on-the-rise

09-Jun-2017 14:06:05.024 SEVERE [http-nio-9999-exec-4] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [appDispatcher] in context with path [/activiti-app] threw exception [Request processing failed; nested exception is org.activiti.engine.ActivitiException: You are not allowed to execute 'javascript' scripts.] with root cause
org.activiti.engine.ActivitiException: You are not allowed to execute 'javascript' scripts.

We put the following properties in the activiti-app.properties file

validator.editor.bpmn.disable.scripttask=false
validator.editor.bpmn.disable.scripttask.groovy=false
Any ideas?
1 ACCEPTED ANSWER

cjose
Elite Collaborator
Elite Collaborator

There is another file named whitelisted-scripts.conf in classes/activiti folder. Do you have "javascript" uncommented in there?

Ciju

View answer in original post

6 REPLIES 6

cjose
Elite Collaborator
Elite Collaborator

There is another file named whitelisted-scripts.conf in classes/activiti folder. Do you have "javascript" uncommented in there?

Ciju

navonodt
Champ on-the-rise
Champ on-the-rise

The strange thing is that it appears to be only on new fresh installs of 1.6.1.  On my machine that i have upgraded from 1.5.3 it works fine.   I will check on the developer's machine who is having the problem.  I don't have the file you mention above at all.  I have these which I haven't touched.

beans-whitelist.conf

javascript-whitelist-classes.conf

shell-commands-whitelist.conf

call-whitelist.conf

service-task-whitelist-classes.conf

version.properties

cjose
Elite Collaborator
Elite Collaborator

I am running 1.6.2 where there is a file called whitelisted-scripts.conf. Can you please check if it is 1.6.2 that the developers have on their machine?

navonodt
Champ on-the-rise
Champ on-the-rise

They are definitely running 1.6.1.

navonodt
Champ on-the-rise
Champ on-the-rise

I stand corrected.  they did get the 1.6.2 bits. and your suggestion above fixed it

rohit9637
Star Contributor
Star Contributor

We have deployed APS 1.9.0.1 to k8s cluster and now I need to modify whitelisted-scripts.conf file to execute a process having script task.

How could we extend the whitelisted-scripts.conf file?