How can i install Apache web server and Apache tomcat to avoid get errors like this:
java.io.FileNotFoundException: /usr/local/apache-tomcat-7.0.5/work/Catalin
Can't vouch for the security of doing so, but
$ cd /usr/local/tomcat/ #or /usr/shared/tomcat6, whatever your $TOMCAT_BASE dir
$ chown -R tomcat6 webapps temp logs work conf
$ chmod -R 777 webapps temp logs work conf
works a treat for these situations.
My tomcat install was borked with permission errors, but throwing open the gates thusly fixed everything.