birdcage
birdcage

Reputation: 2676

Cannot start Tomcat server

I am new at Linux and Tomcat and trying to install Tomcat properly. What I did is extract apache-tomcat-7.029 and openjdk.

I set the profile file and the paths like:

export JAVA_HOME=/usr/lib/jvm/default-java
export CATALINA_HOME=/root/tomcat

the result of

java -version 

is this:

java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)

and when I say

$CATALINA_HOME/bin/startup.sh

it returns me:

Using CATALINA_BASE:   /root/tomcat
Using CATALINA_HOME:   /root/tomcat
Using CATALINA_TMPDIR: /root/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/default-java
Using CLASSPATH:       /root/tomcat/bin/bootstrap.jar:/root/tomcat/bin/tomcat-juli.jar

but when I try to use tomcat with either

http://MY_IP_address:8080/

I get this error:

 http://MY_IP_address:8080:No such file or directory

Upvotes: 0

Views: 2820

Answers (3)

hsluo
hsluo

Reputation: 1702

Enter http://localhost:8080 in your browser.
If you want to access it from another computer with your IP address, you may try to find the firewall settings of your OS and make sure the port 8080(in your case) is open.

Upvotes: 0

user2427143
user2427143

Reputation: 71

open your browser and type

http://locahost:8080

and once check Apache tomcat service is started or not

Steps: start-control panel-administrative tools-services and check apache tomcat. If service is not started then right click and start the server before running apache tomcat

I have tried this and it's working fine

Upvotes: 2

SpringLearner
SpringLearner

Reputation: 13854

Open your browser and in the url type

http://your_IP_address:8080/ for example

http://192.168.0.100:8080 or http://locahost:8080

Upvotes: 2

Related Questions