Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After tomcat is installed and startup.sh is run,

$ sudo ./bin/startup.sh 
Using CATALINA_BASE:   /home/cathay/Work/apache-tomcat-7.0.42
Using CATALINA_HOME:   /home/cathay/Work/apache-tomcat-7.0.42
Using CATALINA_TMPDIR: /home/cathay/Work/apache-tomcat-7.0.42/temp
Using JRE_HOME:        /home/cathay/Work/jdk1.6.0_45
Using CLASSPATH:       /home/cathay/Work/apache-tomcat-7.0.42/bin/bootstrap.jar:/home/cathay/Work/apache-tomcat-7.0.42/bin/tomcat-juli.jar

the localhost:8888 shows a blank page (not 404). But the localhost_access_log.2014-02-26.txt shows the following information,

127.0.0.1 - - [26/Feb/2014:18:49:52 +0800] "GET / HTTP/1.1" 404 -

[other information]
the relevant content of server.xml is as followed,

Connector port="8888" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
Connector executor="tomcatThreadPool" port="8888" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"

Connector port="8009" protocol="AJP/1.3" redirectPort="8443"

and the relevant part of /etc/environment is listed below,

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cathay/Work/jdk1.6.0_45/bin"
JAVA_HOME=/home/cathay/Work/jdk1.6.0_45
CLASSPATH=.:/home/cathay/Work/jdk1.6.0_45/lib

following the /etc/profile's,

export JAVA_HOME=/home/cathay/Work/jdk1.6.0_45
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
export CATALINA_BASE=/home/cathay/Work/apache-tomcat-7.0.42
export CATALINA_HOME=$CATALINA_BASE
export TOMCAT_HOME=$CATALINA_BASE
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$TOMCAT_HOME/lib/servlet-api.jar

Is the information enough to sovle the problem? I am a new staff to tomcat, and my ubuntu version is 13.10. I really want to know the reason causes the problem, thx.

share|improve this question
    
How did you install tomcat7? –  c0rp Feb 27 at 10:15
    
Default port is 8080, Try to access the port 8080 –  Lonston Feb 27 at 10:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.