After further analysis today, I realized my suggestion to correct the
configurations in catalina.properties to point at ${catalina.base}
instead of ${catalina.home} was WRONG.

The original suggestion of symlinks is a better solution, since the
location of ${catalina.base} may not always resolve to
/var/lib/tomcat7/.

A good example is when you use the "tomcat7-user" package to install
multiple instances of Tomcat under different user accounts. In this
scenario, ${catalina.base} would point at the Tomcat user account
installation (which would NOT include these various common directories),
while ${catalina.home} would still point at /usr/share/tomcat7/

So, all in all, the correct solution here seems to be what was initially
recommended. The tomcat7 package should automatically add these three
symlinks to /usr/share/tomcat7/:

sudo ln -s /var/lib/tomcat7/common/ common
sudo ln -s /var/lib/tomcat7/server/ server
sudo ln -s /var/lib/tomcat7/shared/ shared

As far as I'm aware those are the only symlinks that should be necessary
to resolve this issue.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat7 in Ubuntu.
https://bugs.launchpad.net/bugs/1232258

Title:
  tomcat7 installer fails to create symbolic links

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1232258/+subscriptions

-- 
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

Reply via email to