Hello,
For a task, I am upgrading the Camunda version (from 7.11.21-ee) to 7.16.7-ee deployed in JBOSS EAP Version 7.3.9.GA. There is an application running on this JBOSS which uses javax.script.ScriptEngine for their usecase. The scriptEngine in use there is JavaScript.
Once I perform update to Camunda 7.16.7-ee , the Javascript scriptEngine isnt available for the said application (this is not seen with 7.11.21-ee). Does anyone have encountered this before?
jdk version: 1.8.0_333
Dependency for application as below:
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine</artifactId>
<scope>provided</scope>
</dependency>
I have already gone through the below links but my problem seems to be slightly different (I am not deploying any .bpmn workflow) :
Hi Team,
I have a very simple BPM workflow having inline javascript for Execution Listener. Although while starting a process it shows error
The process could not be started. : Cannot instantiate process definition multiInstanceDemo:1:a27d4788-e7dd-11eb-b4b6-00090ffe0001: Can’t find scripting engine for ‘javascript’: scriptEngine is null
I’m attaching BPMN diagram and log. Request some heads up on this matter.
Thank you in advance.
multi_instance_demo.bpmn (4.3 KB) camunda.log (15.4 KB)
Hello,
i need some help getting the connector example running in eclipse. I installed Eclipse with maven as described in the user-guide. When i run maven-install on a new project like shown in the video tutorial “Camunda Tutorial for Java Developers”, i get the successfull output. The bpm process engine version 7.14 is also running fine. Im using JRE 1.8.0_271 and the JDK version 15.0.1.
But now i want to check out how to use a custom connector trying to adopt the example from the git camunda-…
Thanks,
Sharath
Dependencies for javax as below:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>${version.javax.javaee}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>${version.javax.javaee}</version>
</dependency>
Please let me know if any other info is required.
Thanks,
Sharath
Hi @sharath07 ,
I suspect that the jboss server didn’t use Java 1.8, as there is a JavaScript engine included.
Please double check the log files when starting the server.
For me it starts with
2022-07-19 21:11:09,593 INFO [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
2022-07-19 21:11:10,219 INFO [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
2022-07-19 21:11:10,226 INFO [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
2022-07-19 21:11:10,337 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 23.0.2.Final (WildFly Core 15.0.1.Final) starting
2022-07-19 21:11:10,339 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
file.encoding = Cp1252
file.separator = \
java.class.path = C:\Camunda\camunda-bpm-ee-wildfly-7.16.0-ee\server\wildfly-23.0.2.Final\jboss-modules.jar
java.class.version = 61.0
java.home = C:\Tools\Java\openjdk-17.0.2
java.io.tmpdir = C:\Users\INGORI~1\AppData\Local\Temp\
java.library.path = C:\Tools\Java\openjdk-17.0.2\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows;C:\Windows\System32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Tools\Java\openjdk-17.0.2\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Tools\apache-maven-3.8.4\bin;C:\Tools\nodejs\;C:\Program Files\TortoiseSVN\bin;C:\Tools\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Program Files\dotnet\;C:\Tools\Kubernetes\Minikube;;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Tools\Python\Python39\Scripts\;C:\Tools\Python\Python39\;.
java.net.preferIPv4Stack = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.2+8-86
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 17
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = https://java.oracle.com/
java.vendor.url.bug = https://bugreport.java.com/bugreport/
java.version = 17.0.2
java.version.date = 2022-01-18
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 17
java.vm.vendor = Oracle Corporation
java.vm.version = 17.0.2+8-86
as I’m running Java 17.
Hope this helps, Ingo
Hi @Ingo_Richtsmeier ,
Thanks for your reply! I cross checked the java version again and it as seen below:
java.runtime.name = Java™ SE Runtime Environment
java.runtime.version = 1.8.0_333-b31
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_333
I added dependencies for GraalVM JS (recommended solution for JDK 15) and it seems to have solved the problem.
Thanks,
Sharath