[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
Regarding sudo ln -s /var/lib/tomcat7/common/ /usr/share/tomcat7/common etc... So the currently proposed solution is to create links in the CATALINA_HOME directory (i.e. the "singleton installation directory") pointing to some example CATALINA_BASE instance directory (i.e. the instance directory with the ROOT default hello-world servlet). This feels like a workaround. When this issue is resolved, having the symbolic linking go in the opposite direction (i.e. CATALINA_HOME has all required directories) feels more sensible to me. -- 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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
Confirmed this is still an issue with 14.04 and tomcat7-user After installing tomcat7-user, those 3 folders are both not in Catalina_home, nor catalina_base. /usr/share/tomcat7/ /var/lib/tomcat7/ Nor do these three folders exist inside a tomcat user instance folder. So the solutions suggested here of making symlinks wouldn't fix it in that case, as they don't exist. -- 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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
Removed Ubuntu Server Guide as affected. This is a software problem. ** No longer affects: serverguide -- 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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
Per my previous comment, this issue seems to be a possible duplicate of https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1308284 -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
I ran into this bug today on Ubuntu Server 14.04. I could be wrong, but I'm not sure this is an issue of missing symbolic links, but rather a minor misconfiguration of catalina.properties on Ubuntu 14.04. Specifically, the "server.loader" and "shared.loader" settings are referencing CATALINA_HOME instead of CATALINA_BASE. So, for example, on Ubuntu 12.04, the default /var/lib/tomcat7/conf/catalina.properties sets these properties as the following: server.loader=/var/lib/tomcat7/server/classes,/var/lib/tomcat7/server/*.jar shared.loader=/var/lib/tomcat7/shared/classes,/var/lib/tomcat7/shared/*.jar However, on Ubuntu 14.04, the hardcoded "/var/lib/tomcat7/" paths have been replaced with "${catalina.home}", so it looks like this: server.loader=${catalina.home}/server/classes,${catalina.home}/server/*.jar shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/*.jar Unfortunately, "${catalina.home}" translates to "/usr/share/tomcat7"... which is not the proper setting. As we know, these directories don't exist under "/usr/share/tomcat7" (CATALINA_HOME) The correct setting should be replacing those with ${catalina.base}, as all the referenced directories do exist under "/var/lib/tomcat7" (CATALINA_BASE). So, the correct settings seem to be: server.loader=${catalina.base}/server/classes,${catalina.base}/server/*.jar shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/*.jar This same misconfiguration existing in both of these catalina.properties files: * /var/lib/tomcat7/conf/catalina.properties * /usr/share/tomcat7/skel/conf/catalina.properties (installed by the tomcat7-user package) Obviously, creating the symbolic links from these directories in /var/lib/tomcat7/ to /usr/share/tomcat7/ would also be a possible solution. But, it's different than how things were setup in Ubuntu 12.04, when the configurations in catalina.properties were just using CATALINA_BASE directly. -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
** Changed in: tomcat7 (Ubuntu) Importance: Undecided => Medium -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
This bug also happen on Ubuntu Server 14.04 using package tomcat7-user . References to those folders are in this file : conf/catalina.properties (in the tomcat instance) : common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/common/classes,${catalina.home}/common/*.jar server.loader=${catalina.home}/server/classes,${catalina.home}/server/*.jar shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/*.jar Content of those folders appear to be optional $catalina.home is defined in : bin/setenv.sh (in the tomcat instance) So I created those folders : sudo mkdir -p /usr/share/tomcat7/common/classes sudo mkdir -p /usr/share/tomcat7/server/classes sudo mkdir -p /usr/share/tomcat7/shared/classes -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
I can confirm the problem still exists. Please, is someone can review this bug please ? -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
I suppose the links to conf and logs should be created as well: cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf/ conf sudo ln -s /var/lib/tomcat7/logs/ logs The folder temp was missing too :( sudo mkdir /usr/share/tomcat7/temp -- 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/serverguide/+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
[Bug 1232258] Re: tomcat7 installer fails to create symbolic links
** Also affects: tomcat7 (Ubuntu) Importance: Undecided Status: New ** Changed in: tomcat7 (Ubuntu) Status: New => Confirmed -- 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/serverguide/+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