Can't start Brekeke SIP Server when Java10/11 and Tomcat7 are used
Issue:
Because Tomcat 7 cannot start with Java 10 or Java 11, Brekeke SIP Server cannot start.
In tomcat’s log, like the following error message is shown.
-Djava.endorsed.dirs=/tomcat/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Cause:
The Java starting parameter “-Djava.endorsed.dirs=<directory>” set in Tomcat is not supported in Java 10.
Solution:
Remove “-Djava.endorsed.dirs=<directory>” parameter with the following steps.
<Windows>
1.Open [brekeke SIP Server Properties] then select [Java] tab.
2.Remove “-Djava.endorsed.dirs=<directory>” parameter at [Java Options:] field.
3.Restart service.
<Linux>
1. Move to your tomcat directory like /tomcat/bin.
2. Edit the /tomcat/bin/catalina.sh file.
3. Remove the “-Djava.endorsed.dirs” parameters like the following examples.
*Be careful, there are some points you have to remove in the catalina.sh.
===catalina.sh=============================================== : : exec "$_RUNJDB" "$LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ -sourcepath "$CATALINA_HOME"/../../java \ -Djava.security.manager \ -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \ -Dcatalina.base="$CATALINA_BASE" \ -Dcatalina.home="$CATALINA_HOME" \ -Djava.io.tmpdir="$CATALINA_TMPDIR" \ org.apache.catalina.startup.Bootstrap "$@" start else exec "$_RUNJDB" "$LOGGING_CONFIG" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ -sourcepath "$CATALINA_HOME"/../../java \ -Dcatalina.base="$CATALINA_BASE" \ -Dcatalina.home="$CATALINA_HOME" \ -Djava.io.tmpdir="$CATALINA_TMPDIR" \ org.apache.catalina.startup.Bootstrap "$@" start : :
4. Restart tomcat.