-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Cris,
On 12/15/17 1:23 PM, Berneburg, Cris J. - US wrote: > Chris > > Thanks for taking the time to explain this to me. I'm still trying > to absorb it all. More below. > >>> My question is this. Is it even possible or simply not >>> recommended for both tomcat instances to share the same >>> CATALINA_BASE? The work folder with compiled cache is buried >>> in CATALINA_HOME, not under webapps, right? It also assumes >>> that no changes need to be made to the application code or >>> web.xml to accommodate the newer tomcat version. If changes >>> need to be made for the new version, then the whole issue >>> becomes moot. > >> So I would recommend a separate CATALINA_BASE for each >> application's support for a major Tomcat version. Note that you >> are welcome to share WAR files for an application. >> >> Example: >> >> Tomcat 6 CATALINA_BASE: bin/setenv.sh conf/server.xml >> conf/context.xml conf/web.xml >> conf/Catalina/localhost/mywebapp.xml [ references >> C:\apps\myapp.war ] >> >> Tomcat 8.5 CATALINA_BASE bin/setenv.sh conf/server.xml >> conf/context.xml conf/web.xml >> conf/Catalina/localhost/mywebapp.xml [ references >> C:\apps\myapp.war ] >> >> In this way, your CATALINA_BASE directory only contains a handful >> of configuration files (plus the work/ directory, but you let >> Tomcat worry about that). > > We host multiple apps. So each app instance would require its own > CATALINA_BASE for each instance of Tomcat? This is beginning to > sound like a matrix nightmare. :-) It's just more XML files. They will often look the same. >> If you update your WAR file, both services will be updated with >> your latest code. > > We don't (yet) use WAR files, but rather exploded directories. In > your example, can conf/Catalina/localhost/mywebapp.xml reference > C:\apps\myapp (folder)? Definitely. The only situation I think where Tomcat cares about the difference between a WAR file and an exploded WAR directory structure is when using the manager to deploy an application: you must deploy a WAR file and can't upload a directory structure. Otherwise, those two entities are entirely interchangeabile. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlo0GiMdHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFjEIw/9HV9xypcf78elgY/2 Q0ZhE/jvJ8LrGs9vzSQ0xCBrOCjyr0bY4CXFX8GA7YnXovmhKJBvuDaSqzNGyAc/ 81K67HqTEFN2Xw0rkLUbbJhhnCSKcm2baXpeayBPF0G08V0eKrKwXOKdKkXrms02 A2L8uS0PpVdLccDXI0FF/s4tB6DYxJCTnMC78ygYmUsLrvbWn9TiltGr/e0Pwh36 H8HKvywU2GMgpbSvEbvyqTHaCNE6TjCQQY5nSg83QT8+qLKBMnFVIxSfUsXbH1DJ KsXFz4nI1+ukuRaweCjHYvToZEw9VJspfZ5KjtN3jYXvhcQJDPx1QZmMHPSJIEPB 3AbLJX5LK0JCIWStywTmoj6ZKq/2kJ7sVx4p+Mh/2SdMeNDWjSpyaU7aASEDCdu9 qheeGT7gx9VETPAq/aHi7NgN/oaWyJ3Vu3PGN6mA6wUG8Z3SiRQlXH00iJSiUqgx d8gHqUn26dXOOfVSC3fG90CvH/P+TYj+oBBvtKzRlgWDxuhfyYewvTdSyUICq+ew zb7r/8d+xGH4GlNdFM2hCn8LCTi2xXmmOJWc+lDF8v27u8h5aGFMgXUwFTKPA1eP DKIqyL8+vMhSK7aq6ba3Uon8fpGrs7RnnbfJvTZUpn2FQhqDADuQ5a4nMK1OO5u6 xdo4SGUETZg0gQFfRK9CCe0dlko= =7MSr -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org