On Fri, Feb 14, 2014 at 6:37 PM, Pooja Swamy <poojasw...@gmail.com> wrote:

> I started tomcat -
>
> test@17.198.48.77:/Users/test/software/runtime/bin>./startup.sh
> Using CATALINA_BASE:   /Users/test/software/runtime
> Using CATALINA_HOME:   /Users/test/software/runtime
> Using CATALINA_TMPDIR: /Users/test/software/runtime/temp
>

Pooja,

Your initial CATALINA_HOME was: /Users/test/software/tomcat
Now you are running from a different directory:
 /Users/test/software/runtime

What's the difference now?

You mentioned you changed the port to 18000, where did you do that? What
did you change? Why did you change that?


Can you confirm that your Tomcat is not starting up, with either of three
commands:


1. sudo ps -ef | grep catalina   (here's sample output)

501 36371 35319   0  7:01pm ttys003    0:05.22
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/tomcat/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/tomcat/endorsed
-classpath 
/Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/tomcat
-Dcatalina.home=/Users/test/software/tomcat
-Djava.io.tmpdir=/Users/test/software/tomcat/temp
org.apache.catalina.startup.Bootstrap start

2. sudo lsof -iTCP -sTCP:LISTEN -P -n | grep 8080   (here's sample output)

java      36371 test   48u  IPv6 0xff43c4aa9610cc0b      0t0  TCP *:8080
(LISTEN)


3. sudo netstat -an | grep 8080             (sample output)

tcp46      0      0  *.8080                 *.*                    LISTEN



NOTE: I prefer lsof over netstat on Mac, as I can see the process number
that is bound to the specific port number in one command. I did not dig
into Mac version of netstat to see other switches (netstat -vatpn doesn't
work on Mac like on Linux).


This will make sure that you Tomcat is started.


Is your TOMCAT running after you started it?


If that's not the case, you need to see why you Tomcat doesn't start.


Your earlier console output from
/Users/test/software/tomcat/bin/catalina.sh run was not complete.


Good luck!

Reply via email to