Using the catalina.home variable did the trick, thank you! Peter
On 6/26/14, 7:19 PM, "Caldarale, Charles R" <chuck.caldar...@unisys.com> wrote: >> From: Peter Rifel [mailto:pri...@mixpo.com] >> Subject: Deploying a relative docBase outside of appBase > >> In Tomcat 7 I had a ROOT.xml file in conf/Catalina/<hostname>/ which >>contained >> my Context with a docBase="../../www.war" parameter. This was able to >>reach my >> www.war directory that lived next to my tomcat directory (one directory >>above >> CATALINA_HOME, two above webapps). > >> This doesn't work in Tomcat 8, giving an IAE > >Try this instead: > ><Context docBase="${catalina.home}/../www.war" /> > >There might also be some confusion due to the .war extension on the >directory name, but I thought that was fixed a while back. > >> If the docBase is not absolute, we append the appBase with the >>docBase's getName() >> which returns just "the last name in the pathname's name sequence" >>according the >> javadocs. > >> Should this be getPath() instead? getPath() would return the full >>relative path >> that when combined with the appBase, the canonical path will be the >>correct path >> to the application. > >That does look suspicious. > > - 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org