Hang on, /etc/init.d/tomcat5 start doesn't work, it just doesn't echo an
explicit fail message.

The JAVA_HOME environment variable is not getting set correctly by the
init script for me because:

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

ie it checks that $JAVA_HOME is zero length. $JAVA_HOME is getting set
to /usr/java/jre1.5.0_01 somewhere on my machine, I'm not sure why. I am
using the sun JDK from multiverse. This gets passed to tomcat and it
then fails because tomcat needs a JDK not a JRE.

As a workaround I edited the init script (/etc/init.d/tomcat5) replacing
the line:

if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then

with:

if [ -r "$jdir/bin/java" ]; then

Then you can fix the incomplete installation of the package via apt-get
install tomcat5

I've unconfirmed as I'm not sure if this is a bug with tomcat5 or a bug
with whatever is setting JAVA_HOME...

cheers,

** Changed in: tomcat5 (Ubuntu)
       Status: Confirmed => Unconfirmed

-- 
Tomcat5 - postinst script fails at invoke-rc.d tomcat5 start
https://bugs.launchpad.net/bugs/105837
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to