Tomcat7 Error on eclipse(sts) config or catalina policy not found on ubuntu system

Annoyingly there isn’t one “installation directory” for tomcat on ubuntu, instead it is spread across /var/log, /usr/share /var/lib etc. Eclipse expects one directory with log, conf etc. This can be fixed with a few carefully placed symlinks.

  •  sudo aptget install tomcat7
  • # fix directories
  • cd /usr/share/tomcat7
  • sudo ln s /var/lib/tomcat7/conf conf
  • sudo ln s /var/log/tomcat7 log
  • sudo ln s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
  • sudo chmod R a+rwx /usr/share/tomcat7/conf

 

  • # allow startup from inside eclipse
  • /etc/init.d/tomcat7 stop

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s