Thank you very much for such quick response. I will remove docBase and path attributes.
I do use some hard-coded "Repromed" in the css and javascript reference, for example: inside /Repromed/login.jsp i used <link href="/Repromed/css/repromed.css" rel="stylesheet" /> I tried to replace it with relative URI for example <link href="./css/repromed.css" rel="stylesheet" /> But it becomes a problem when the login page is shown in case of session timeout. Let's say user visited secure page /Repromed/adv/upload.jsp, then session timed out, login.jsp is shown, reference to style sheet becomes <link href="/Repromed/adv/css/repromed.css" rel="stylesheet" /> Is there a way to get around it? Thanks Caldarale, Charles R wrote: > >> From: pprun [mailto:runping_hu...@hotmail.com] >> Subject: Question on META-INF/context.xml >> >> Inside I specified META-INF/context.xml as following: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <Context docBase="Repromed" path="/Repromed" reloadable="true" > > Remove the docBase and path attributes - they're not allowed when the > <Context> element is in META-INF/context.xml > >> I don't know how to convert Repromed.war to ROOT.war. > > Usually, all you have to do is change the name of the .war file. This is > assuming you have not hard-coded "Repromed" within the webapp; if you > have, you'll need to fix that. > >> How to change the META-INF/context.xml? > > No changes are needed to either META-INF/context.xml or WEB-INF/web.xml. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Question-on-META-INF-context.xml-tp26700904p26701279.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org