[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-08-02 Thread Thomas
I had another problem with my Ubuntu 10.04 installation bug #610455. So,
I just reinstalled Ubuntu 10.04 in a separate partition and now in the
process of reinstalling all my applications and transferring over my
files.

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-07-15 Thread Thierry Carrez
Two possibilities here: (1) Tomcat is still running for some reason or
(2) your test is flawed (for example, you're not accessing the system
you think you access). Could you check for (1) if tomcat is really still
running by running the following command locally on the server:

ps -ef | grep tomcat6

If Tomcat6 is running on that system it should return a line like:

tomcat6   1422 1  2 14:14 ?00:00:03
/usr/lib/jvm/java-6-openjdk/bin/java
-Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties
-Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath
/usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6
-Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp
org.apache.catalina.startup.Bootstrap start

You should also post the output of:

sudo netstat -tlp

which, if Tomcat6 is running, will return a line like:

tcp6   0  0 [::]:http-alt   [::]:*
LISTEN  1422/java

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-07-03 Thread Thomas
I ran sudo apt-get purge tomcat6 tomcat6-common and tomcat is still
running. There is nothing at /usr/share/tomcat6/bin or
/etc/init.d/tomcat6 , so I'am not sure what is going on. This is a
Ubuntu upgrade to 10.04 and I used to be able to run sudo
/etc/init.d/tomcat6 stop and tomcat would shutdown. Still stuck.

--- On Fri, 7/2/10, Thierry Carrez thierry.car...@ubuntu.com wrote:

From: Thierry Carrez thierry.car...@ubuntu.com
Subject: [Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04
To: t.beg...@sbcglobal.net
Date: Friday, July 2, 2010, 10:26 AM

Right, you should
$ sudo apt-get purge tomcat6 tomcat6-common
$ sudo apt-get install tomcat6

Note that you don't have to remove OpenJDK to install Sun's JDK.
I'll mark the bug as Invalid, please reopen if you still have issue.

** Changed in: tomcat6 (Ubuntu)
       Status: Incomplete = Invalid

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a direct subscriber
of the bug.

Status in “tomcat6” package in Ubuntu: Invalid

Bug description:
Binary package hint: tomcat6

Tomcat 6 will not shutdown in Ubuntu 10.04. I have tried both sudo
/etc/init.d/tomcat6 stop and sudo
/usr/share/tomcat6/bin/./shutdown.sh an still when I go to either
localhost or 127.0.0.1 I get the tomcat It Works! pagein FireFox.
Tomcat 6 used to shutdown with sudo /etc/init.d/tomcat6 stop in Ubuntu
9.10 but since I upgraded to Ubuntu 10.04 I can not shutdown Tomcat 6.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: firefox 3.6.3+nobinonly-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Jun 22 15:55:59 2010
FirefoxPackages:
 firefox 3.6.3+nobinonly-0ubuntu4
 firefox-gnome-support 3.6.3+nobinonly-0ubuntu4
 firefox-branding 3.6.3+nobinonly-0ubuntu4
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/597445/+subscribe

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-07-02 Thread Thierry Carrez
The script is complaining that you don't have a /var/lib/tomcat6/conf
directory... which points to a rather broken install. I suspect you
removed /etc/tomcat6 manually and now you can't use the init script to
start or stop tomcat.

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-07-02 Thread Thomas
I didn't manually remove tomcat 6 but I did uninstall OpenJDK so I could
install SUNJDK. I noticed when I uninstalled OpenJDK it also uninstalled
tomcat 6 and some other things. Which I had to reinstall afterwords. I
used the Ubuntu software center to reinstall the programs and I had used
apt to remove OpenJDK.  Also, tomcat 6 is running it just won't
shutdown. Should I remove tomcat 6 and reinstall it, using apt?

--- On Fri, 7/2/10, Thierry Carrez thierry.car...@ubuntu.com wrote:

From: Thierry Carrez thierry.car...@ubuntu.com
Subject: [Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04
To: t.beg...@sbcglobal.net
Date: Friday, July 2, 2010, 7:13 AM

The script is complaining that you don't have a /var/lib/tomcat6/conf
directory... which points to a rather broken install. I suspect you
removed /etc/tomcat6 manually and now you can't use the init script to
start or stop tomcat.

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a direct subscriber
of the bug.

Status in “tomcat6” package in Ubuntu: Incomplete

Bug description:
Binary package hint: tomcat6

Tomcat 6 will not shutdown in Ubuntu 10.04. I have tried both sudo
/etc/init.d/tomcat6 stop and sudo
/usr/share/tomcat6/bin/./shutdown.sh an still when I go to either
localhost or 127.0.0.1 I get the tomcat It Works! pagein FireFox.
Tomcat 6 used to shutdown with sudo /etc/init.d/tomcat6 stop in Ubuntu
9.10 but since I upgraded to Ubuntu 10.04 I can not shutdown Tomcat 6.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: firefox 3.6.3+nobinonly-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Jun 22 15:55:59 2010
FirefoxPackages:
 firefox 3.6.3+nobinonly-0ubuntu4
 firefox-gnome-support 3.6.3+nobinonly-0ubuntu4
 firefox-branding 3.6.3+nobinonly-0ubuntu4
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/597445/+subscribe

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-07-02 Thread Thierry Carrez
Right, you should
$ sudo apt-get purge tomcat6 tomcat6-common
$ sudo apt-get install tomcat6

Note that you don't have to remove OpenJDK to install Sun's JDK.
I'll mark the bug as Invalid, please reopen if you still have issue.

** Changed in: tomcat6 (Ubuntu)
   Status: Incomplete = Invalid

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-06-26 Thread Thomas
o...@obi:~$ sudo /etc/init.d/tomcat6 start
[sudo] password for obi: 
 * invalid CATALINA_BASE: /var/lib/tomcat6
o...@obi:~$ ps -ef | grep tomcat6
obi   8271  7943  0 10:21 pts/000:00:00 grep --color=auto tomcat6
o...@obi:~$ sudo /etc/init.d/tomcat6 stop
 * Stopping Tomcat servlet engine tomcat6[ OK ] 
o...@obi:~$ ps -ef | grep tomcat6
obi   8287  7943  0 10:25 pts/000:00:00 grep --color=auto tomcat6
o...@obi:~$ cat /var/run/tomcat6.pid
cat: /var/run/tomcat6.pid: No such file or directory
o...@obi:~$ 

/etc/init.d/tomcat --
#!/bin/sh
#
# /etc/init.d/tomcat6 -- startup script for the Tomcat 6 servlet engine
#
# Written by Miquel van Smoorenburg miqu...@cistron.nl.
# Modified for Debian GNU/Linux by Ian Murdock imurd...@gnu.ai.mit.edu.
# Modified for Tomcat by Stefan Gybas sgy...@debian.org.
# Modified for Tomcat6 by Thierry Carrez thierry.car...@ubuntu.com.
# Additional improvements by Jason Brittain jason.britt...@mulesoft.com.
#
### BEGIN INIT INFO
# Provides:  tomcat6
# Required-Start:$local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Should-Start:  $named
# Should-Stop:   $named
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
# Short-Description: Start Tomcat.
# Description:   Start the Tomcat servlet engine.
### END INIT INFO

set -e

PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=tomcat6
DESC=Tomcat servlet engine
DEFAULT=/etc/default/$NAME
JVM_TMP=/tmp/tomcat6-tmp

if [ `id -u` -ne 0 ]; then
echo You need root privileges to run this script
exit 1
fi
 
# Make sure tomcat is started with system locale
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG
fi

. /lib/lsb/init-functions

if [ -r /etc/default/rcS ]; then
. /etc/default/rcS
fi


# The following variables can be overwritten in $DEFAULT

# Run Tomcat 6 as this user ID and group ID
TOMCAT6_USER=tomcat6
TOMCAT6_GROUP=tomcat6

# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
# defined in $DEFAULT)
JDK_DIRS=/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun 
/usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm

# Look for the right JVM to use
for jdir in $JDK_DIRS; do
if [ -r $jdir/bin/java -a -z ${JAVA_HOME} ]; then
JAVA_HOME=$jdir
fi
done
export JAVA_HOME

# Directory where the Tomcat 6 binary distribution resides
CATALINA_HOME=/usr/share/$NAME

# Directory for per-instance configuration files and webapps
CATALINA_BASE=/var/lib/$NAME

# Use the Java security manager? (yes/no)
TOMCAT6_SECURITY=no

# Default Java options
# Set java.awt.headless=true if JAVA_OPTS is not set so the
# Xalan XSL transformer can work without X11 display on JDK 1.4+
# It also looks like the default heap size of 64M is not enough for most cases
# so the maximum heap size is set to 128M
if [ -z $JAVA_OPTS ]; then
JAVA_OPTS=-Djava.awt.headless=true -Xmx128M
fi

# End of variables that can be overwritten in $DEFAULT

# overwrite settings from default file
if [ -f $DEFAULT ]; then
. $DEFAULT
fi

if [ ! -f $CATALINA_HOME/bin/bootstrap.jar ]; then
log_failure_msg $NAME is not installed
exit 1
fi

POLICY_CACHE=$CATALINA_BASE/work/catalina.policy

if [ -z $CATALINA_TMPDIR ]; then
CATALINA_TMPDIR=$JVM_TMP
fi

# Set the JSP compiler if set in the tomcat6.default file
if [ -n $JSP_COMPILER ]; then
JAVA_OPTS=$JAVA_OPTS -Dbuild.compiler=\$JSP_COMPILER\
fi

SECURITY=
if [ $TOMCAT6_SECURITY = yes ]; then
JAVA_OPTS=$JAVA_OPTS -Djava.security.manager 
-Djava.security.policy=\$POLICY_CACHE\
SECURITY=-security
fi

# Define other required variables
CATALINA_PID=/var/run/$NAME.pid
CATALINA_SH=$CATALINA_HOME/bin/catalina.sh

# Look for Java Secure Sockets Extension (JSSE) JARs
if [ -z ${JSSE_HOME} -a -r ${JAVA_HOME}/jre/lib/jsse.jar ]; then
JSSE_HOME=${JAVA_HOME}/jre/
fi

catalina_sh() {
# Escape any double quotes in the value of JAVA_OPTS
JAVA_OPTS=$(echo $JAVA_OPTS | sed 's/\/\\\/g')

AUTHBIND_COMMAND=
if [ $AUTHBIND = yes -a $1 = start ]; then
JAVA_OPTS=$JAVA_OPTS -Djava.net.preferIPv4Stack=true
AUTHBIND_COMMAND=/usr/bin/authbind --deep /bin/bash -c 
fi

# Define the command to run Tomcat's catalina.sh as a daemon
# set -a tells sh to export assigned variables to spawned shells.
TOMCAT_SH=set -a; JAVA_HOME=\$JAVA_HOME\; source \$DEFAULT\; \
CATALINA_HOME=\$CATALINA_HOME\; \
CATALINA_BASE=\$CATALINA_BASE\; \
JAVA_OPTS=\$JAVA_OPTS\; \
CATALINA_PID=\$CATALINA_PID\; \
CATALINA_TMPDIR=\$CATALINA_TMPDIR\; \
LANG=\$LANG\; JSSE_HOME=\$JSSE_HOME\; \
cd \$CATALINA_BASE\; \
\$CATALINA_SH\ $@

if [ $AUTHBIND = yes -a $1 = start ]; then
TOMCAT_SH='$TOMCAT_SH'
fi

   

[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-06-23 Thread Thierry Carrez
I can't reproduce that. Running sudo /etc/init.d/tomcat6 stop will
successfully shutdown tomcat6 here. Double-check that you really reload
the page and you don't hit Firefox cache. If the bug is still there,
please run:

$ sudo /etc/init.d/tomcat6 start
$ ps -ef | grep tomcat6
$ sudo /etc/init.d/tomcat6 stop
$ ps -ef | grep tomcat6
$ cat /var/run/tomcat6.pid

and post the output.

** Changed in: tomcat6 (Ubuntu)
   Importance: Undecided = Low

** Changed in: tomcat6 (Ubuntu)
   Status: New = Incomplete

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-06-23 Thread Thierry Carrez
Also please attach your current /etc/init.d/tomcat6 script, so that I
can check that it was updated in the upgrade to 10.04.

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 597445] Re: tomcat6 will not shutdown in Ubuntu 10.04

2010-06-22 Thread Thomas

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/50762972/Dependencies.txt

** Attachment added: ExtensionSummary.txt
   http://launchpadlibrarian.net/50762973/ExtensionSummary.txt

** Attachment added: default_profile_pluginreg.dat.txt
   http://launchpadlibrarian.net/50762974/default_profile_pluginreg.dat.txt

** Attachment added: profiles.ini.txt
   http://launchpadlibrarian.net/50762975/profiles.ini.txt

-- 
tomcat6 will not shutdown in Ubuntu 10.04
https://bugs.launchpad.net/bugs/597445
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs