When i install my app as an exploded war file in webapps it runs fine
but when I install it using Tomcat Web Application Manager it fails on
getServletContext().getRealPath("");What's the deal? I want to set a path to a log file by obtaining the app realpath and then subtracting "/webapps/" and substituting "/logs/". Is there a better way to do that? Daniel [EMAIL PROTECTED] On Tue, 13 Aug 2002 03:25:30 UT, "Daniel Kehoe" <[EMAIL PROTECTED]> said: > > Here's how to install a web app using the Tomcat Web Application > > Manager.... After trial and error, here's what works for files in a local Windows > > file system: > > Path: "/crossbar" > Config URL: "file:///C:/Projects/Crossbar/dist/crossbar.xml" > WAR URL: "file:///C:/Projects/Crossbar/dist/crossbar.war" > > > > The "Path" is the context name you want for the web app, like > > http://localhost:8080/crossbar/. > > > > The "Config URL" is a path to a file that contains the parameters you > > would otherwise add to the server.xml file (or add to the webapps > > directory as a file "crossbar.xml" under the new TC4.1 scheme). > > > > The "WAR URL" is the path to the war file. > It COULD begin with "jar:file://" and end with "!/" but it doesn't have > to. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
