The response from Charles Caldarale was dead on:


1) The name of the file containing the <Context> tag must be
<app_name>.xml, not context.xml (context.xml is used when it's under the
META-INF directory).



2) The path attribute is not allowed, unless the <Context> tag appears
in server.xml, which is strongly discouraged.  The path to the app is
determined by the name of the .xml file containing the <Context> tag.



3) By having an entry in conf/Catalina/localhost that points to an
application under the webapps directory, you run the risk of deploying
the application twice.  If your app is under webapps, then it's better
to place the <Context> tag in a context.xml file under the app's
META-INF directory.  Use the alternate location only if the app is not
under webapps.  (This also makes the app easier to deploy across
multiple systems, since the information is now packaged in the .war

file.)



I followed his instructions to the letter and it got rid of the warning
and fatal error.



What I didn't know was that if the context.xml file is in the
conf/Catalina/localhost directory, it must be named webapp.xml, or in my
case, SVOIC.xml, since my application is called SVOIC.  However, if you
put the context.xml file in the META-INF directory, it generates the
webapp.xml (SVOIC.xml) in the conf/Catalina/localhost directory for you.



Thanks again Charles for the quick and accurate answer.



This electronic message transmission contains information from the Company that 
may be proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity 
named above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of 
this information is prohibited.  If you have received
this electronic transmission in error, please notify the sender immediately by 
replying to the address listed in the "From:" field.

Reply via email to