tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pooja Swamy <poojasw...@gmail.com>
Subject Re: Unable to shutdown Tomcat
Date Fri, 14 Feb 2014 22:46:13 GMT
Here is another thing. Everytime I start tomcat, it is not throwing an
error. I am able to start it up multiple times. -

myMac:bin test$ ./startup.sh
Using CATALINA_BASE:   /Users/test/software/runtime
Using CATALINA_HOME:   /Users/test/software/runtime
Using CATALINA_TMPDIR: /Users/test/software/runtime/temp
Using JRE_HOME:
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH:
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
myMac:bin test$ ./startup.sh
Using CATALINA_BASE:   /Users/test/software/runtime
Using CATALINA_HOME:   /Users/test/software/runtime
Using CATALINA_TMPDIR: /Users/test/software/runtime/temp
Using JRE_HOME:
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH:
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
myMac:bin test$ ./startup.sh
Using CATALINA_BASE:   /Users/test/software/runtime
Using CATALINA_HOME:   /Users/test/software/runtime
Using CATALINA_TMPDIR: /Users/test/software/runtime/temp
Using JRE_HOME:
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH:
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
myMac:bin test$ ./startup.sh
Using CATALINA_BASE:   /Users/test/software/runtime
Using CATALINA_HOME:   /Users/test/software/runtime
Using CATALINA_TMPDIR: /Users/test/software/runtime/temp
Using JRE_HOME:
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH:
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
myMac:bin test$ ps -ef|grep tomcat
  501 29997     1   0  2:41PM ttys001    0:01.68
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/runtime
-Dcatalina.home=/Users/test/software/runtime
-Djava.io.tmpdir=/Users/test/software/runtime/temp
org.apache.catalina.startup.Bootstrap start
  501 30016     1   0  2:44PM ttys001    0:01.72
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/runtime
-Dcatalina.home=/Users/test/software/runtime
-Djava.io.tmpdir=/Users/test/software/runtime/temp
org.apache.catalina.startup.Bootstrap start
  501 30025     1   0  2:44PM ttys001    0:01.90
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/runtime
-Dcatalina.home=/Users/test/software/runtime
-Djava.io.tmpdir=/Users/test/software/runtime/temp
org.apache.catalina.startup.Bootstrap start
  501 30034     1   0  2:44PM ttys001    0:02.12
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/runtime
-Dcatalina.home=/Users/test/software/runtime
-Djava.io.tmpdir=/Users/test/software/runtime/temp
org.apache.catalina.startup.Bootstrap start
  501 30043     1   0  2:44PM ttys001    0:01.97
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
/Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar
-Dcatalina.base=/Users/test/software/runtime
-Dcatalina.home=/Users/test/software/runtime
-Djava.io.tmpdir=/Users/test/software/runtime/temp
org.apache.catalina.startup.Bootstrap start
  501 30046 29856   0  2:44PM ttys001    0:00.00 grep tomcat
myMac:bin test$

So tomcat is basically not starting up at all.


On Fri, Feb 14, 2014 at 2:31 PM, Pooja Swamy <poojaswamy@gmail.com> wrote:

> Yes. My tomcat is definitely not starting up :( I am not sure how to debug
> this issue though. I tried changing the port. It didn't help.
>
> For this error -
> SEVERE: Could not contact localhost:8005. Tomcat may not be running.
>
> When I do -
>
> myMac:logs test$ telnet localhost 8005
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> telnet: Unable to connect to remote host
>
> Does this mean anything?
>
>
> On Fri, Feb 14, 2014 at 1:11 PM, Neven Cvetkovic <
> neven.cvetkovic@gmail.com> wrote:
>
>> On Fri, Feb 14, 2014 at 3:10 PM, Pooja Swamy <poojaswamy@gmail.com>
>> wrote:
>>
>> > Yes I have tried that.
>> >
>> > When I kill, the process gets killed gracefully. After killing, if I do
>> a
>> > ps -ef|grep tomcat, I don't see the process running.
>> > Like I said the issue is not with shutdown. The issue is with startup.
>> When
>> > I startup, the startup is not happening at all, which is what is
>> causing a
>> > problem while shutting down. Here is what I see -
>> >
>> >
>> Exactly Pooja. You need to confirm that your Tomcat is actually starting
>> up
>> (any or all points below):
>>
>> 1) See if in the process table
>> 2) See in netstat that is bound to 8080
>> 3) Look into the log file and see it started listening on port 8080
>> 4) Check in browser, e.g. http://localhost:8080
>>
>> So, if the startup is problem, try to start it with:
>>
>> /Users/test/software/tomcat/bin/catalina.sh run
>>
>> (tell us the output)
>>
>>
>> Also, in your previous reply - the logfile looks suspiciously short, not
>> too many details ...
>>
>> You should see the connectors starting up, e.g.
>>
>> ... INFO: Starting ProtocolHandler ["http-bio-8080"]
>> ... INFO: Starting ProtocolHandler ["ajp-bio-8009"]
>>
>>
>>
>>
>> > Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer
>> >
>> > SEVERE: Could not contact localhost:8005. Tomcat may not be running.
>> >
>> > I don't understand what's causing this.
>> >
>> >
>> Your Tomcat is probably not running, i.e. there is nothing listening on
>> port 8005 for the shutdown.sh script to connect to (which is defined in
>> server.xml).
>>
>>
>> Good luck!
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message