cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <>
Subject web app directory
Date Fri, 14 Sep 2012 15:27:10 GMT
Hi there,

I am using Tomcat 7 and Cocoon 2.1.11.

Question: How do I get the directory of my application as in "C:\Program 
Files\Apache Software Foundation\Tomcat 7.0\webapps\myapp"

I was using this call: System.getProperty("catalina.base")

But it only takes me as far as: "C:\Program Files\Apache Software 
Foundation\Tomcat 7.0"

the reason is the client wants to run many copies of myapp, each for a 
different group as in myapp1, myapp2 and so on.

Internally, in my code I needed this location to do things like upload 
files etc. and I was finding my locaiton before using the 
getProperty("catalina_base") and adding on to it "\myapp" which clearly 
won't work any more.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message