The parameter -c (controlport) is not used anymore. I tried
tomcat8-instance-create -c 9999 -p 8888 instance-name
In conf/server.xml the controlport still set to 8005 (default) value.
The reason is located in line 120 of tomcat8-instance-create.
There is:
sed -i -e "s/Connector port=\"8080\"/Connector port=\"${HPORT}\"/;s/Server port=\"-1\" shutdown=\"SHUTDOWN\"/Server port=\"${CPORT}\" shutdown=\"${CWORD}\"/" "${TARGET}/conf/server.xml"
...and there should be:
sed -i -e "s/Connector port=\"8080\"/Connector port=\"${HPORT}\"/;s/Server port=\"8005\" shutdown=\"SHUTDOWN\"/Server port=\"${CPORT}\" shutdown=\"${CWORD}\"/" "${TARGET}/conf/server.xml"
Thanks a lot and have a nice weekend! Stefan.
The parameter -c (controlport) is not used anymore. I tried
tomcat8- instance- create -c 9999 -p 8888 instance-name
In conf/server.xml the controlport still set to 8005 (default) value.
The reason is located in line 120 of tomcat8- instance- create.
There is:
sed -i -e "s/Connector port=\" 8080\"/ Connector port=\" ${HPORT} \"/;s/Server port=\"-1\" shutdown= \"SHUTDOWN\ "/Server port=\"${CPORT}\" shutdown= \"${CWORD} \"/" "${TARGET} /conf/server. xml"
...and there should be:
sed -i -e "s/Connector port=\" 8080\"/ Connector port=\" ${HPORT} \"/;s/Server port=\"8005\" shutdown= \"SHUTDOWN\ "/Server port=\"${CPORT}\" shutdown= \"${CWORD} \"/" "${TARGET} /conf/server. xml"
Thanks a lot and have a nice weekend!
Stefan.