What i wanted to do
I installed fresh linux Ubuntu 16.04 to setup a test developing environment.
I wanted to install
So i applied this tutorial and know that i dont have any previously java or tomcat installed before.
Tutorial for java 8 and tomcat 8 Tutorial 2 same as the before with some more little hints
What is the problem
When i reached the step of starting tomcat , it failed. Failed to start apache tomcat web server tomcat.service: Control process exited, code=exited status=203.
How i tried to reproduce:
I followed the tutorial on a fresh virtual box on ubuntu 16.04.
And after i tried lot of the solution like the below:
Solution:
From a very small comments from here ( Thanks for the hint )) ) After i got the fail i ran
You should run ‘
journalctl -xn
’ for more details about why Tomcat failed to start. Thanks.
It gave me the main reason here is screen shot and notice in RED.
Then change in tomcat.service check this image again this time look at 1 in bold yellow it should point to JDK.
Result:
So, apparently i had the path wrong , and it WORKED.
Summary:
When applying some tutorial keep an eye when you extract tomcat or etc.. because it may differ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With