cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <roman.koz...@opencascade.com>
Subject Re: realpath module and subsitemaps
Date Thu, 26 Aug 2004 06:48:49 GMT
Hi Steve,

It seems to be due to different web application's contexts. You can try to
use {realpath:/}../a/templates/ - it should always to be the
.../webapps/a/tempates

Roman

Steve Butcher wrote:

> Ack. I sent the last one with the wrong email...I'm not sure if it will
> go through or not. I apologize if it duplicates.
>
> Dear all,
>
> I'm using Cocoon 2.1 and Tomcat 5.
>
> I have two webapps running in tomcat 5, A and B. Webapp A works as an
> independent webapp however I am including the functionality of A into B
> by mounting its sitemap as a subsitemap of B. Then I simply symlink in
> B's directory to A's directory and so far so good.
>
> Webapp A needs access to file resources to send emails, etc. The
> location of these resources is specified as a parameter to a custom
> generator in A's sitemap using {realpath:} so that a relative path to
> the resource can be used. These applications are developed and tested
> on a number of different developers' environments and not everyone has
> /usr/share/tomcat5/webapps/a as the path to A. However, this works fine
> when accessing these resources directly in Webapp A because the
> parameter:
>
>   <parameter name='template.dir' value='{realpath:/}templates/'/>
>
> correctly locates:
>
> /usr/share/tomcat5/webapps/a/tempates
>
> However, when A's sitemap is run as a subsitemap of B, things stop
> working as well (actually they don't work at all) because the above
> parameter gets translated into:
>
> /usr/share/tomcat5/webapps/b/tempates
>
> I would have thought it would have looked in:
>
> /usr/share/tomcat5/webapps/b/a/tempates
>
> Does anyone know how I can make this work as specified without changing
> everything to absolute paths?
>
> Any help is greatly appreciated.
>
> Thanks,
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message