Re: What is `tomcat7/common/` for?
On 13.03.19 15:01, Joel Griffith wrote: > I installed it using Ubuntu's apt-get install, so installing it again > won't do anything different. Is there a documentation page > that lists what files are supposed to be there? > That would help. I can't seem to find one. If you installed through apt-get, you're getting some packaged version that is distributed all over the file system. You can use "apt-file list tomcat8" to see what's contained and where it will appear. This is not comparable with the standard tomcat distribution. The lib directory might be on /usr/share/tomcat8/lib - in my quick check it wasn't empty. Olaf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joel, On 3/13/19 9:22 AM, Joel Griffith wrote: > On Tue, Mar 12, 2019 at 9:01 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Mark, > > On 3/12/19 14:39, Mark Thomas wrote: On 12/03/2019 14:42, Christopher Schultz wrote: > Joel, > > On 3/12/19 09:43, Joel Griffith wrote: >> I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 >> on Ubuntu 16.04. At installation, Tomcat 7 creates a >> directory `/var/lib/tomcat7/common/`. When Tomcat 8 is >> installed, however, the `/var/lib/tomcat8/` directory it >> creates does not include a `common/` directory, and the >> deployment script complains that it isn't there. > >> build.xml:129: /var/lib/tomcat8/common/lib does not >> exist. > > This must be a deployment script that is managed by neither > the Tomcat project nor the Ubuntu package maintainers. You > will need to update it. > >> I've been searching for a day and have found exactly >> zero documentation on this, including on the official 8.0 >> migration guide ( >> https://tomcat.apache.org/migration-8.html). > > You are right; it isn't mentioned. That should be added to > the migration guide. Is is practical to try and cover changes in file system layout for distributions we don't control? > > No, but there is no mention of the classloader re-organization in > the migration guide. > > Oh, hmm. The reason it's not in there, or in the Tomcat 7 > migration guide... is because this change was made in Tomcat *6*, > and it *is* in the migration guide... for Tomcat 6. > > So, never mind. > > For some reason, I thought this change was made more recently, but > I guess not. > > Joel, it looks like your distribution was (still?) using that > directory in Tomcat 7 even thought Tomcat hasn't shipped that way > for ... a long time. I wonder if your deployment script was > accomplishing anything by touching that directory in the first > place. > > Okay, things are starting to make a bunch more sense now, thanks. > >> I think it was accomplishing something; tomcat7/common/lib/ >> contained a bunch of .jar files that looked like standard Tomcat >> installation files (tomcat7-websocket.jar, >> tomcat-catalina-7.0.68.jar, etc.). If I switch directories in >> the deployment script to tomcat8/lib/, which is empty, javac >> complains that it can't find the files to compile. It looks like >> I'm going to need to go through /usr/share/java/ and find tomcat8 >> versions of all of the .jar files in tomcat7/common/lib/ and >> symlink those to tomcat8/lib/, unless someone knows a better >> way. If you have a build script that relies on a Tomcat installation being around, you should probably fix it. Since you are using ant (as opposed to Maven), you'll want to bundle the servlet-api.jar file with your application -- and make sure that you remove the JAR file from any application artifacts that you produce -- like a WAR file. Don't build against Tomcat. Build against individual libraries. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyJemIACgkQHPApP6U8 pFiGZhAAtUM2YV/6yznw0aF/ZjLMXRiGqXSnv9GGZPmQV2vvUAtc6yv/uML/JcIA W4R5v/8YnTgvQZa4h8ngbASOTa8oA7L+G3LU40fkkJluppYBYdO4YHB8V2RMlTlh sWDD8UHOueA5I7PgRpzKgzF4UOEcwCGbaFGaXxXCcLOO+BTRUKuQbdJk9li8g9Yl o3w2FhAH01Cx9NfMlc3r/9rQ6zy3nT424Tz6epbsnenK6gCAmbCxYw61zJi9cpEI 2El/jyGpMY6p+xc1y92fHoavfNPfKQ0BFvgY85/JdU2MKzWgECpsEv2i/SzsQAzi Lfjv6FF/zSPCwwI0NU9M+SEz4PcNnosIlBWPL4fQktqjFKiM35oez94u8h3hI8h3 YLIdwGORzLLVfaO5WTw702pQabGI42AgMNvt+xsVezhj0CqVhOCBXxp+0uePIyGt KORUJKYqrcEv4Bpfyf1SGFHpPAHs4D0p4m5rxT9CPBgBIOXW9xjHWLz+lr00MEmr 4eqY34TF3Vb2odnqgn0vayQ3YeTIKh4cvmBchSUZ3VL6uZhMae8m4E4t5CSLuYlc zoXXWT1l7+kzvu4h516KxqU2UWV79PuO3uSiAD9t1ueL1LLw4dipxi2FQ27QeQIr IhMA8COmJaNmVhcEyLsAWubSBK+C/GF7qiPc7tNZjZi0tEVncXY= =wax/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
On Wed, Mar 13, 2019 at 9:38 AM Olaf Kock wrote: > > On 13.03.19 14:22, Joel Griffith wrote: > > > I think it was accomplishing something; tomcat7/common/lib/ contained a > > > bunch of .jar files that looked like standard Tomcat installation files > > > (tomcat7-websocket.jar, tomcat-catalina-7.0.68.jar, etc.). If I switch > > > directories in the deployment script to tomcat8/lib/, which is > > empty, javac > > > complains that it can't find the files to compile. It looks like > > I'm going > > > to need to go through /usr/share/java/ and find tomcat8 versions of > > all of > > > the .jar files in tomcat7/common/lib/ and symlink those to > tomcat8/lib/, > > > unless someone knows a better way. > > If your tomcat/lib folder is empty, I suggest to download the > distribution again. It has quite a few files in there. If yours doesn't, > you can either start over, or figure out where they are instead (e.g. if > you're using your Linux distribution's packaged tomcat) > > I installed it using Ubuntu's apt-get install, so installing it again won't do anything different. Is there a documentation page that lists what files are supposed to be there? That would help. I can't seem to find one. > Olaf > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: What is `tomcat7/common/` for?
On 13.03.19 14:22, Joel Griffith wrote: > > I think it was accomplishing something; tomcat7/common/lib/ contained a > > bunch of .jar files that looked like standard Tomcat installation files > > (tomcat7-websocket.jar, tomcat-catalina-7.0.68.jar, etc.). If I switch > > directories in the deployment script to tomcat8/lib/, which is > empty, javac > > complains that it can't find the files to compile. It looks like > I'm going > > to need to go through /usr/share/java/ and find tomcat8 versions of > all of > > the .jar files in tomcat7/common/lib/ and symlink those to tomcat8/lib/, > > unless someone knows a better way. If your tomcat/lib folder is empty, I suggest to download the distribution again. It has quite a few files in there. If yours doesn't, you can either start over, or figure out where they are instead (e.g. if you're using your Linux distribution's packaged tomcat) Olaf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
On Tue, Mar 12, 2019 at 9:01 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Mark, > > On 3/12/19 14:39, Mark Thomas wrote: > > On 12/03/2019 14:42, Christopher Schultz wrote: > >> Joel, > >> > >> On 3/12/19 09:43, Joel Griffith wrote: > >>> I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on > >>> Ubuntu 16.04. At installation, Tomcat 7 creates a directory > >>> `/var/lib/tomcat7/common/`. When Tomcat 8 is installed, > >>> however, the `/var/lib/tomcat8/` directory it creates does not > >>> include a `common/` directory, and the deployment script > >>> complains that it isn't there. > >> > >>> build.xml:129: /var/lib/tomcat8/common/lib does not exist. > >> > >> This must be a deployment script that is managed by neither the > >> Tomcat project nor the Ubuntu package maintainers. You will need > >> to update it. > >> > >>> I've been searching for a day and have found exactly zero > >>> documentation on this, including on the official 8.0 migration > >>> guide ( https://tomcat.apache.org/migration-8.html). > >> > >> You are right; it isn't mentioned. That should be added to the > >> migration guide. > > > > Is is practical to try and cover changes in file system layout for > > distributions we don't control? > > No, but there is no mention of the classloader re-organization in the > migration guide. > > Oh, hmm. The reason it's not in there, or in the Tomcat 7 migration > guide... is because this change was made in Tomcat *6*, and it *is* in > the migration guide... for Tomcat 6. > > So, never mind. > > For some reason, I thought this change was made more recently, but I > guess not. > > Joel, it looks like your distribution was (still?) using that > directory in Tomcat 7 even thought Tomcat hasn't shipped that way for > ... a long time. I wonder if your deployment script was accomplishing > anything by touching that directory in the first place. > > Okay, things are starting to make a bunch more sense now, thanks. I think it was accomplishing something; tomcat7/common/lib/ contained a bunch of .jar files that looked like standard Tomcat installation files (tomcat7-websocket.jar, tomcat-catalina-7.0.68.jar, etc.). If I switch directories in the deployment script to tomcat8/lib/, which is empty, javac complains that it can't find the files to compile. It looks like I'm going to need to go through /usr/share/java/ and find tomcat8 versions of all of the .jar files in tomcat7/common/lib/ and symlink those to tomcat8/lib/, unless someone knows a better way. Thanks again! > - -chris > -BEGIN PGP SIGNATURE- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyIVmsACgkQHPApP6U8 > pFj5AA/8COXrlLOL+LV8JM/qCvVdCWrSEzoFsBQ3yvAiHgaANPFVWaid0q5DGLiQ > J7mhzCwcT0h5ObDk1vIlTH8f+VFerlXBd6Ucio//xbQ8Gy2VXsuuNnOz42Rxuk4/ > E/LpSFljo4JUkaYs0XApxNx6yo7ZxZlK3rCvTTx2ZgVQ9SlcRIQ/m6QJkM3m153r > 1EKSTAKmp4lrsVjes4uwhA6sm/ZJDlR0qNuUAu+0g50F170qOeVJrPRQwnTcI8TE > q0zbnniw5Wlp2UcsW0gI7iLrtwu7/Bcwnjp0r9V6EA7pjagxTOMPWJxuwzF9SyZU > r+DtUNFikG7EMXl4Z9POy207B2TlBAt1FJlgkR06LxUJaJjPxdTmNhqREfeiYZGW > f+uFnrXmHK587UTMYQ4DzhEILj7ZItXyvA6fgQ2xDSoXPTdwBU7obxFZTVZwQc+D > RodvTUY1nh/xik6oFxd5BEAv5+euXR/Aag+89gPo7Qpdq5qPC05t3iHveQqf0CuE > rZIvclGKDHwMJG0QfG2UJlwU13JPxtorFc5Fh2ubPrkDypSAtw2zMb/LGeOMFDqx > h/t/i92W/j10NtMegBTvhp5lolMLTl9guRA8LhjZw15gajutdXVv2VBrlgnqhp8p > fZjNRgI6nDtXjn/OxsXypQ/6uYoJatjQ9i5JWykl42qFBa6TNHE= > =AERs > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: What is `tomcat7/common/` for?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 3/12/19 14:39, Mark Thomas wrote: > On 12/03/2019 14:42, Christopher Schultz wrote: >> Joel, >> >> On 3/12/19 09:43, Joel Griffith wrote: >>> I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on >>> Ubuntu 16.04. At installation, Tomcat 7 creates a directory >>> `/var/lib/tomcat7/common/`. When Tomcat 8 is installed, >>> however, the `/var/lib/tomcat8/` directory it creates does not >>> include a `common/` directory, and the deployment script >>> complains that it isn't there. >> >>> build.xml:129: /var/lib/tomcat8/common/lib does not exist. >> >> This must be a deployment script that is managed by neither the >> Tomcat project nor the Ubuntu package maintainers. You will need >> to update it. >> >>> I've been searching for a day and have found exactly zero >>> documentation on this, including on the official 8.0 migration >>> guide ( https://tomcat.apache.org/migration-8.html). >> >> You are right; it isn't mentioned. That should be added to the >> migration guide. > > Is is practical to try and cover changes in file system layout for > distributions we don't control? No, but there is no mention of the classloader re-organization in the migration guide. Oh, hmm. The reason it's not in there, or in the Tomcat 7 migration guide... is because this change was made in Tomcat *6*, and it *is* in the migration guide... for Tomcat 6. So, never mind. For some reason, I thought this change was made more recently, but I guess not. Joel, it looks like your distribution was (still?) using that directory in Tomcat 7 even thought Tomcat hasn't shipped that way for ... a long time. I wonder if your deployment script was accomplishing anything by touching that directory in the first place. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyIVmsACgkQHPApP6U8 pFj5AA/8COXrlLOL+LV8JM/qCvVdCWrSEzoFsBQ3yvAiHgaANPFVWaid0q5DGLiQ J7mhzCwcT0h5ObDk1vIlTH8f+VFerlXBd6Ucio//xbQ8Gy2VXsuuNnOz42Rxuk4/ E/LpSFljo4JUkaYs0XApxNx6yo7ZxZlK3rCvTTx2ZgVQ9SlcRIQ/m6QJkM3m153r 1EKSTAKmp4lrsVjes4uwhA6sm/ZJDlR0qNuUAu+0g50F170qOeVJrPRQwnTcI8TE q0zbnniw5Wlp2UcsW0gI7iLrtwu7/Bcwnjp0r9V6EA7pjagxTOMPWJxuwzF9SyZU r+DtUNFikG7EMXl4Z9POy207B2TlBAt1FJlgkR06LxUJaJjPxdTmNhqREfeiYZGW f+uFnrXmHK587UTMYQ4DzhEILj7ZItXyvA6fgQ2xDSoXPTdwBU7obxFZTVZwQc+D RodvTUY1nh/xik6oFxd5BEAv5+euXR/Aag+89gPo7Qpdq5qPC05t3iHveQqf0CuE rZIvclGKDHwMJG0QfG2UJlwU13JPxtorFc5Fh2ubPrkDypSAtw2zMb/LGeOMFDqx h/t/i92W/j10NtMegBTvhp5lolMLTl9guRA8LhjZw15gajutdXVv2VBrlgnqhp8p fZjNRgI6nDtXjn/OxsXypQ/6uYoJatjQ9i5JWykl42qFBa6TNHE= =AERs -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
On 12/03/2019 14:42, Christopher Schultz wrote: > Joel, > > On 3/12/19 09:43, Joel Griffith wrote: >> I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on Ubuntu >> 16.04. At installation, Tomcat 7 creates a directory >> `/var/lib/tomcat7/common/`. When Tomcat 8 is installed, however, >> the `/var/lib/tomcat8/` directory it creates does not include a >> `common/` directory, and the deployment script complains that it >> isn't there. > >> build.xml:129: /var/lib/tomcat8/common/lib does not exist. > > This must be a deployment script that is managed by neither the Tomcat > project nor the Ubuntu package maintainers. You will need to update it. > >> I've been searching for a day and have found exactly zero >> documentation on this, including on the official 8.0 migration >> guide ( https://tomcat.apache.org/migration-8.html). > > You are right; it isn't mentioned. That should be added to the > migration guide. Is is practical to try and cover changes in file system layout for distributions we don't control? Mark > >> What is the `/var/lib/tomcat7/common/` directory for, and why does >> Tomcat 8 not have one? > > Tomcat used to have a somewhat complex series of directories > containing libraries. You can read about it, here: > http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html#Class_Lo > ader_Definitions > > Tomcat 8 has removed some of that complexity by merging the "shared" > (lib/) and "common" (common/lib/) classloaders. > > The "common" classloader was removed because it caused a lot of > confusion and didn't really provide much benefit. > > -chris > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joel, On 3/12/19 09:43, Joel Griffith wrote: > I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on Ubuntu > 16.04. At installation, Tomcat 7 creates a directory > `/var/lib/tomcat7/common/`. When Tomcat 8 is installed, however, > the `/var/lib/tomcat8/` directory it creates does not include a > `common/` directory, and the deployment script complains that it > isn't there. > > build.xml:129: /var/lib/tomcat8/common/lib does not exist. This must be a deployment script that is managed by neither the Tomcat project nor the Ubuntu package maintainers. You will need to update it. > I've been searching for a day and have found exactly zero > documentation on this, including on the official 8.0 migration > guide ( https://tomcat.apache.org/migration-8.html). You are right; it isn't mentioned. That should be added to the migration guide. > What is the `/var/lib/tomcat7/common/` directory for, and why does > Tomcat 8 not have one? Tomcat used to have a somewhat complex series of directories containing libraries. You can read about it, here: http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html#Class_Lo ader_Definitions Tomcat 8 has removed some of that complexity by merging the "shared" (lib/) and "common" (common/lib/) classloaders. The "common" classloader was removed because it caused a lot of confusion and didn't really provide much benefit. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyHxWIACgkQHPApP6U8 pFia5A/8D0Zqr+KD1w/tmhXPbaFgNRJHio1ztQwIg4ZE99bZq7sPAB8YBXBSnXJJ zfVjniFb3eV7UVhf0Wp6m7G3z4BEws/v1gWSgdSCR3HXvCRZvtL9UrvqPQMCVbYh fTDIkGBzssJE9mVSwzh5un9DRk5dmocf8WYEEh1CBrIrLdefz7hebzQKPvdImBfC 1HYBGmpJcE5UMqv71tOuc4qlS0NLjao6k70oePbG0ZAqrdDkMQH9P1uZ721gIdNC axw8V4ZwbHvd6tLbfcRs4GuOF20s/WiBbzk3xM31B3M+6UiLaaONeIkriVTjHDOz AAWBTZmXtcNrY/qsqM17j/muc6xnp09lGDU3+hUKdzlaOhwsoA9T9FhY9k7BRu7j RwilSp5vrSSL4uiH2hmHh4sA/9bTvGp2gjKH67loHL5EjsRpYdbvEYQYQZSHyjBM Sti6aa9aml0Emr+jtUWnF7WFuwTO6Ix/4QLIA/GMQ4tD7QWP7obw3IhacbTXZiwS PSzkmNxW8zNwrtHPr3ouuN4xB8eqct7rQjwdFmUhMBzbdDP9FZJw9Ecv8TlEJWaX uytYXdu9vUlQ4HWphbJ6xTuEww8PENp3qU+t6kbPyWFlcVEFKObTbJQOMZpoDI0I Og/9xDhy8qsn1uQhx/cw8xk6S7lAAbf68RSSAtJMCPDDRJe19Xk= =Li0e -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What is `tomcat7/common/` for?
Tomcat 8 uses tomcat/lib instead of tomcat/common/ you'll need to adjust your script. John Larsen On Tue, Mar 12, 2019 at 7:43 AM Joel Griffith wrote: > I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on Ubuntu 16.04. > At installation, Tomcat 7 creates a directory `/var/lib/tomcat7/common/`. > When Tomcat 8 is installed, however, the `/var/lib/tomcat8/` directory it > creates does not include a `common/` directory, and the deployment script > complains that it isn't there. > > build.xml:129: /var/lib/tomcat8/common/lib does not exist. > > I've been searching for a day and have found exactly zero documentation on > this, including on the official 8.0 migration guide ( > https://tomcat.apache.org/migration-8.html). > > What is the `/var/lib/tomcat7/common/` directory for, and why does Tomcat 8 > not have one? >
What is `tomcat7/common/` for?
I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on Ubuntu 16.04. At installation, Tomcat 7 creates a directory `/var/lib/tomcat7/common/`. When Tomcat 8 is installed, however, the `/var/lib/tomcat8/` directory it creates does not include a `common/` directory, and the deployment script complains that it isn't there. build.xml:129: /var/lib/tomcat8/common/lib does not exist. I've been searching for a day and have found exactly zero documentation on this, including on the official 8.0 migration guide ( https://tomcat.apache.org/migration-8.html). What is the `/var/lib/tomcat7/common/` directory for, and why does Tomcat 8 not have one?