Problems Running YAWL 4.2

Printer-friendly version
Forums: 

Hi
Install YAWL 4.2 on Windows 120/Java 9/Tomcat 9

All proceeds to plan until I try to start the YAWL engine...I get this error:

I have looked at the manual/this forum and google...can't seem to find anything that deals with this. Should I install prior versions of Java/Tomcat?

Using JAVA_HOME: C:\Program Files\Java\jre-9.0.4
Using CATALINA_HOME: C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65
Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin"
Using CATALINA_HOME: "C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65"
Using CATALINA_TMPDIR: """C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65\temp"""
Using JRE_HOME: "C:\Program Files\Java\jre-9.0.4"
Using CLASSPATH: "C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65\bin\bootstrap.jar;C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65\bin\tomcat-juli.jar"
-Djava.endorsed.dirs=C:\Users\Dunn\Documents\YAWL-4.2\engine\apache-tomcat-7.0.65\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

From your output, you can set that even though CATALINA_BASE refers to your Tomcat 9 install, CATALINA_HOME still points to Tomcat 7, in the standard YAWL 4.2 framework.

Running Tomcat 7 with Java 9 is problematic. The simplest workaround in this case is to edit you tomcat 7/bin/catalina.bat file to remove the 'endorsed_dirs' lines as described here: https://stackoverflow.com/questions/45917401/tomcat-7-0-73-doesnt-work-w...

If you'd prefer running YAWL Control Panel version in Java 9, you'll need to copy from your Tomcat 7 to Tomcat 9 all the contents of the 'webapps' folder, the 'yawllib' folder and the 'database' folder. You will also need to make the appropriate changes to 'context.xml' and 'server.xml' in the 'conf' folder (do a diff between the two versions to see the things that need to be changed).

Alternately, you can do an 'enterprise' install of YAWL into Tomcat 9 (see the user manual for more details).

The next control panel version will include an update of Tomcat to resolve this issue for Java 9 users.