You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Menke Jörg,E2" <Jo...@t-mobile.de> on 2003/02/25 10:47:07 UTC

Mounting Sub-Sitemap from outside cocoon-dir...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
For better integration into the versioning-system (clearcase in this
case) I tried to let the locally installed cocoon (running in Weblogic
7) mount a subsitemap on a different drive (I'm stuck on Windows at
the moment... :-( ). This did not work... Examples:

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron" src="x:/test/"
uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="file:/x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

Is this possible at all? Eg: can you reference a sitemap, or even only
a ressources directory (for styles p.e.) that is outside the
cocoon-installation?

Thanks in advance,

cu, Jörg

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
jkuV9MVtopDvK/MiDCjSxyxA
=sS11
-----END PGP SIGNATURE-----

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


Re: Mounting Sub-Sitemap from outside cocoon-dir...

Posted by Richard In Public <ed...@blueyonder.co.uk>.
Hi Jörg

I am also using Windows.  The following works for me:

<map:match pattern="myproject/**">
    <map:mount uri-prefix="myproject/"
src="file://D:/MyFolder/MyWebApps/MyProject/" check-reload="yes" />
</map:match>

I notice two differences between this and the variations you've tried:
1.  I'm using a double forward slash (//) after the drive letter
2.  I'm only specifying the path of the directory containing sitemap.xmap

Try: src=file://x:/test/

Regards,

Richard




----- Original Message -----
From: "Menke Jörg,E2" <Jo...@t-mobile.de>
To: <co...@xml.apache.org>
Sent: Tuesday, February 25, 2003 9:47 AM
Subject: Mounting Sub-Sitemap from outside cocoon-dir...


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
For better integration into the versioning-system (clearcase in this
case) I tried to let the locally installed cocoon (running in Weblogic
7) mount a subsitemap on a different drive (I'm stuck on Windows at
the moment... :-( ). This did not work... Examples:

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron" src="x:/test/"
uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="file:/x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

Is this possible at all? Eg: can you reference a sitemap, or even only
a ressources directory (for styles p.e.) that is outside the
cocoon-installation?

Thanks in advance,

cu, Jörg

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
jkuV9MVtopDvK/MiDCjSxyxA
=sS11
-----END PGP SIGNATURE-----

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


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


Re: Mounting Sub-Sitemap from outside cocoon-dir...

Posted by Upayavira <uv...@upaya.co.uk>.
Joerg,

There shouldn't be any problem with that as far as I can see. Here's a snippet 
from my root sitemap:

    <map:match pattern="dl/**">
      <map:mount check-reload="yes" src="file:/c:/mydocs/web/dharma life/"
uri-prefix="dl" reload-method="synchron"/>
    </map:match>

Regards, Upayavira

> Hi!
> For better integration into the versioning-system (clearcase in this
> case) I tried to let the locally installed cocoon (running in Weblogic
> 7) mount a subsitemap on a different drive (I'm stuck on Windows at
> the moment... :-( ). This did not work... Examples:
> 
> <map:match pattern="test">
>  <map:mount check-reload="yes" reload-method="synchron" src="x:/test/"
> uri-prefix="test"/> </map:match>
> 
> or
> 
> <map:match pattern="test">
>  <map:mount check-reload="yes" reload-method="synchron"
> src="x:/test/sitemap.xmap" uri-prefix="test"/>
> </map:match>
> 
> or
> 
> <map:match pattern="test">
>  <map:mount check-reload="yes" reload-method="synchron"
> src="file:/x:/test/sitemap.xmap" uri-prefix="test"/>
> </map:match>
> 
> Is this possible at all? Eg: can you reference a sitemap, or even only
> a ressources directory (for styles p.e.) that is outside the
> cocoon-installation?
> 
> Thanks in advance,
> 
> cu, Jörg
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2
> 
> iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
> jkuV9MVtopDvK/MiDCjSxyxA
> =sS11
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For
> additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 



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


RE: Mounting Sub-Sitemap from outside cocoon-dir...

Posted by Laurent Comte <la...@oodrive.fr>.
Some hints :

1/ As written in the doc, use :
src="file:///x:/some/folder/"

2/ On windows, use "/" in the path, not "\" (yes, it SHOULD be the
opposite ...)

As I wrote in a previous post, using subsitemaps that are not inside
the main sitemap seems to run into reloading problems, when updates
are made in the main sitemap file.

Look at the thread with the stange title :
"is this question too simple to be answered ?"

Regards.
Laurent


-----Message d'origine-----
De : Menke Jörg,E2 [mailto:Joerg.Menke@t-mobile.de]
Envoyé : mardi 25 février 2003 10:47
À : 'cocoon-users@xml.apache.org'
Objet : Mounting Sub-Sitemap from outside cocoon-dir...


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
For better integration into the versioning-system (clearcase in this
case) I tried to let the locally installed cocoon (running in Weblogic
7) mount a subsitemap on a different drive (I'm stuck on Windows at
the moment... :-( ). This did not work... Examples:

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron" src="x:/test/"
uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

or

<map:match pattern="test">
 <map:mount check-reload="yes" reload-method="synchron"
src="file:/x:/test/sitemap.xmap" uri-prefix="test"/>
</map:match>

Is this possible at all? Eg: can you reference a sitemap, or even only
a ressources directory (for styles p.e.) that is outside the
cocoon-installation?

Thanks in advance,

cu, Jörg

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
jkuV9MVtopDvK/MiDCjSxyxA
=sS11
-----END PGP SIGNATURE-----

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




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


RE: Mounting Sub-Sitemap from outside cocoon-dir...

Posted by Luca Morandini <lu...@tin.it>.
> -----Original Message-----
> From: Menke Jörg,E2 [mailto:Joerg.Menke@t-mobile.de]
> Sent: Tuesday, February 25, 2003 10:47 AM
> To: 'cocoon-users@xml.apache.org'
> Subject: Mounting Sub-Sitemap from outside cocoon-dir...
>

> <map:match pattern="test">
>  <map:mount check-reload="yes" reload-method="synchron"
> src="x:/test/sitemap.xmap" uri-prefix="test"/>
> </map:match>

Try with 3 slashes... like in:

 <map:match pattern="test">
  <map:mount check-reload="yes" reload-method="synchron"
    src="file:///x:/test/sitemap.xmap" uri-prefix="test"/>
 </map:match>


> Is this possible at all? Eg: can you reference a sitemap, or even only
> a ressources directory (for styles p.e.) that is outside the
> cocoon-installation?

BTW, static contents are better left to the web-server, look into
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-4 for details

Regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
> For better integration into the versioning-system (clearcase in this
> case) I tried to let the locally installed cocoon (running in Weblogic
> 7) mount a subsitemap on a different drive (I'm stuck on Windows at
> the moment... :-( ). This did not work... Examples:
>
> <map:match pattern="test">
>  <map:mount check-reload="yes" reload-method="synchron" src="x:/test/"
> uri-prefix="test"/>
> </map:match>
>
> or
>
>
> or
>
>
> Is this possible at all? Eg: can you reference a sitemap, or even only
> a ressources directory (for styles p.e.) that is outside the
> cocoon-installation?
>
> Thanks in advance,
>
> cu, Jörg
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2
>
> iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
> jkuV9MVtopDvK/MiDCjSxyxA
> =sS11
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


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