Ankit
Ankit

Reputation: 4644

Tomcat 8 not running

I am new to the development of Web Apps and Web Services. I am trying to install and run Apache tomcat on my local machine.

Here is what I did :

  1. Downloaded tomcat 8 (.tar) from apache's website
  2. Extracted the .tar package and pasted the folder in my home directory (I am working on Ubuntu 12.04)

Here are my terminal prints

ankit@ankit-HCL-Desktop:~/apache-tomcat-8.0.28/bin$ ./startup.sh

Using CATALINA_BASE: /home/ankit/apache-tomcat-8.0.28

Using CATALINA_HOME: /home/ankit/apache-tomcat-8.0.28

Using CATALINA_TMPDIR: /home/ankit/apache-tomcat-8.0.28/temp

Using JRE_HOME: /home/ankit/jdk1.7.0_79

Using CLASSPATH: /home/ankit/apache-tomcat-8.0.28/bin/bootstrap.jar: /home/ankit/apache-tomcat-8.0.28/bin/tomcat-juli.jar

Tomcat started.

Then I typed localhost:8080 in my browser but it displayed

Unable to connect

Firefox can't establish a connection to the server at localhost:8080.

After that I used catalina.sh

ankit@ankit-HCL-Desktop:~/apache-tomcat-8.0.28/bin$ ./catalina.sh start

Using CATALINA_BASE: /home/ankit/apache-tomcat-8.0.28

Using CATALINA_HOME: /home/ankit/apache-tomcat-8.0.28

Using CATALINA_TMPDIR: /home/ankit/apache-tomcat-8.0.28/temp

Using JRE_HOME: /home/ankit/jdk1.7.0_79

Using CLASSPATH: /home/ankit/apache-tomcat-8.0.28/bin/bootstrap.jar:/home/ankit/apache-tomcat-8.0.28/bin/tomcat-juli.jar

Tomcat started.

But still the same result in my broswer.

What am I doing wrong ?

Upvotes: 0

Views: 7093

Answers (2)

lm2a
lm2a

Reputation: 915

This is an old post, but perhaps my case can help somebody. I had same problem. In my case it raised because on server.xml was defined a certificate which wasn't there (in the proper path). Besides check if there is some context defined (in server.xml) pointing to /wtpwebapps, and remove it.

I also had to remove a reference, in my server.xml, to a context pointing to /wtpwebapps

Upvotes: 0

aksappy
aksappy

Reputation: 3400

The issue could be that you have a different port than 8080 in your tomcat server.xml configuration. Please check in server.xml, HTTP 1.1 Connector to see which port the tomcat is listening to.

Also check the logs to see whether there has been any errors while starting up the tomcat (under logs folder).

As to which script to use, use startup.sh / startup.cmd. This file calls catalina script, after setting the required classpath environment.

Upvotes: 2

Related Questions