tomcat starts in terminal but not running in browser on ubuntu?
Solution 1
If any error occur during tomcat startup time then that tomcat error is not shown on ubuntu terminal. So you need to check log file from following location.
{tomcat path}/logs/catalina.{date}.log
{tomcat path}
= tomcat install path.
{date}
= log of date.
Solution 2
Ok, now this may sound silly, but this problem occurred with me also. After a lot of brainwork, I came to this solution.
just add sudo
before ./startup.sh
Start tomcat server by the following command from the Tomcat bin
directory as:
$ sudo ./startup.sh
Hope this helps.
user1893
Updated on June 28, 2022Comments
-
user1893 almost 2 years
I manually installed tomcat7.
It runs on terminal (tomcat started).
But when I try to run it on browser(localhost:8080), page html appears.
I can't find where is the problem
java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2) OpenJDK Server VM (build 24.79-b02, mixed mode)
Using CATALINA_BASE: /opt/tomcat/
Using CATALINA_HOME: /opt/tomcat/
Using CATALINA_TMPDIR: /opt/tomcat//temp
Using JRE_HOME: /usr/lib/jvm/java-1.7.0-openjdk-i386
Using CLASSPATH:
/opt/tomcat//bin/bootstrap.jar:/opt/tomcat//bin/tomcat-juli.jar Tomcat started.Thank you