-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jerry,
On 1/30/14, 9:39 PM, Jerry Malcolm wrote: > I now understand that TC will take all folders it finds in the > appBase folder and deploy them, assuming they are all webapps. I'm > assuming from what you said that the default path for each webapp > is the folder name in appBase. I realize that this is super easy > as long as you don't have any unique things to specify about the > deployment such as a database resource. > > So assuming I need to specify more info about a particular webapp > deployment, I can define a context file that augments the > deployment info for a particular auto-deployed app in appBase. But > from what you said previously regarding the error I was getting, if > the webapp is in appBase, I have no choice but to use the appBase's > folder name as the context path. Am I correct so far? Let's take a step back. Tomcat's position is that web applications are supposed to be self-contained. In fact, you can create a WAR file (or exploded WAR directory, if you prefer) that contains everything necessary to configure and run your web application (within the framework of the servlet spec, of course). If you want to have your own <Context> configuration (which you do: you have a database to configure), then the absolutely easiest way to do that is to create a META-INF/context.xml file in your web app. No "path" attribute. No "docBase" attribute. No oddly-named files in your conf/ directory. If you want to change the deployment path for your web application, all you have to do is re-name the WAR file (or directory) and bounce Tomcat. Thus, each web application you have has a META-INF/context.xml file and is completely self-contained[*]. * Since you are using a JDBC database, you'll have to put that JDBC driver into Tomcat's lib/ directory so it's available to create the resource for you. Would that simplify things for you? Once you get all this cleaned, up, it's time to learn about the multiple-instance deployment model. This makes it super-easy to try different versions of Tomcat and switch between them easily. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS67TbAAoJEBzwKT+lPKRYsvsP/3OPifMMBi4h8glvi5TmyilQ 4dQ9CDoCzhdmwIuOxERPyJ0EgCFBCJcANOglcG7gnn0MNS+gA4gevDfW+JbskN9Y jE4el+UFStWHX2sigp3YTuqRMiVq1SLGBZYkkfx5yUv3OQIAheiAKnFZfI7qKNdy K2G6njzIr/sJrtzhJb4nt4sZtpVh7IhUKZ+hnKHcxJeeHMgBzsFWo/DYGRogcKVD 0ODsZUIdcn96SxbFNEDmUtE1M/tJa+jisZJ8taJm7uD+LRgo9JtG3zcJwfJD/BCU 4oyj5p8Sl54bt2DAbsHPEFkLD3DLiAHef/EOPYLReanCUprSnr1hH6s1q1+6t4YH tJ0SFvoZdbLnzAo1Q4TVQvnjksqzq68Ye83K8Ua2Sq3Led2rKnjzSa3L/7H0eODx klGD2DjNsd2z4swCrYCHDsAisS6yF5QiFUwRO/CqYnCXeC85/3S1bscuZ2Hbwn/V M72EXx8Heavi/DGJWGMSMU/62sqlolazgNeSQS7aqNajsjUfmZkXf1FYu3/P/Osz stcLvmyoAplckQhtc2XCtdW4cWwDKxPSfkZQYtgbo7BdV6DCBYIw83fLkirg10Cu 2IYbLNlEQJ1/ntx8weWMUnAcJaxiOnFDpFTPn1eS1++4FFAhVEuYTg8FxDBpkknS q6U1ohUKvCB6PZAXm/FP =xflJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org