I'm trying to get Tomcat to start automatically, and I'm failing miserably. (It's Tomcat 6.0.16 running on Fedora 8, based on Amazon ami-11ca2d78.) So, following standard instructions, I've created `/etc/init.d/tomcat` containing this:

```
 export JRE_HOME=/env/jdk1.6.0_07/jre/
 case $1 in
 start)
        sh /env/tomcat/bin/startup.sh
        ;;
 stop)
        sh /env/tomcat/bin/shutdown.sh
        ;;
restart)
        sh /env/tomcat/bin/shutdown.sh
        sh /env/tomcat/bin/startup.sh
         ;;
esac
exit 0

```

And I chmod 755 it. Then I create soft links:

```
ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat
ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat

```

But when I reboot it fails, and the logs show this exception:

java.lang.IllegalArgumentException: Document base /env/tomcat/webapps/QCServer does not exist or is not a readable directory

But if I run `/etc/init.d/tomcat start` directly from the command line, everything works fine. And this is a readable directory, with r+x privileges for everyone. So what on earth am I doing wrong? Thanks very much for any help!

AC