Error in Forms playback after updating Java version in Linux Follow
This related to the following error that might be found in the Log:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
This issue might happen if you upgrade the JVM of the ServiceManager server (usually weblogic, but might happen in tomcat) to JVM of version 1.8.0_411-b25 (and later), and only on Linux servers.
The issue would be resolved by adding -Djava.awt.headless=true to JVM initialization arguments.
On weblogic please set the following:
1. Edit the setDomainEnv.sh file, located at:
<WebLogicInstallDirectory>/user_projects/domains/<DomainName>/bin/
2. Add the following option: -Djava.awt.headless=true to the existing JAVA_OPTIONS line:
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -Djava.awt.
3. Restarted weblogic and node manager.
On tomcat please set the following:
1. Edit <TOMCAT_HOME>/bin/setenv.sh file
2. Set the following line:
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true "
Comments
0 comments
Please sign in to leave a comment.