You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrei Svirida <an...@midray.com> on 2002/06/27 15:33:28 UTC

"(possible context problem)" after moving application out from Cocoon tree

Hello Cocooners,

I have a following problem : i had a cocoon application running at <Cocoon Deployment Root>/testapp and
everything worked fine.

After moving the application to c:\testapp i updated the entry in my
main sitemap.xmap to
----
<map:match pattern="mmservicearea/**">
      <map:mount reload-method="synchron" check-reload="yes"  src="file:///c:/testapp" uri-prefix="mmservicearea/"/>
</map:match>
---

Now i get an error
---
java.lang.RuntimeException: testapp/docs/forms/login-form.xml could not be found. (possible context problem)
---

I have some form validation code in my application wich uses
form descriptor in c:\testapp\docs\forms\form1.xml
and i reference to this descriptor with
--
<map:parameter name="descriptor" value="context://testapp/docs/forms/form1.xml"/>
--.

Its obvious that this code causes the error.

Is there some way to solve this problem other then saying:
--
<map:parameter name="descriptor" value="file:c://testapp/docs/forms/form1.xml"/>
-- ?

I would greatly appreciate any tip




--
Andrei Svirida, Projekte & Entwicklung
MIDRAY GmbH - a debitel company
Phone:  +49.221.8884 435 
Fax:    +49.221.8884 455

http://www.midray.com/


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: "(possible context problem)" after moving application out from Cocoon tree

Posted by KOZLOV Roman <r-...@opencascade.com>.
Hi Andrei,

Try "cocoon://" (to get access via root sitemap) or "cocoon:/" (for current sitemap) instead of "context://".

Roman

Andrei Svirida wrote:

> Hello Cocooners,
>
> I have a following problem : i had a cocoon application running at <Cocoon Deployment Root>/testapp and
> everything worked fine.
>
> After moving the application to c:\testapp i updated the entry in my
> main sitemap.xmap to
> ----
> <map:match pattern="mmservicearea/**">
>       <map:mount reload-method="synchron" check-reload="yes"  src="file:///c:/testapp" uri-prefix="mmservicearea/"/>
> </map:match>
> ---
>
> Now i get an error
> ---
> java.lang.RuntimeException: testapp/docs/forms/login-form.xml could not be found. (possible context problem)
> ---
>
> I have some form validation code in my application wich uses
> form descriptor in c:\testapp\docs\forms\form1.xml
> and i reference to this descriptor with
> --
> <map:parameter name="descriptor" value="context://testapp/docs/forms/form1.xml"/>
> --.
>
> Its obvious that this code causes the error.
>
> Is there some way to solve this problem other then saying:
> --
> <map:parameter name="descriptor" value="file:c://testapp/docs/forms/form1.xml"/>
> -- ?
>
> I would greatly appreciate any tip
>
> --
> Andrei Svirida, Projekte & Entwicklung
> MIDRAY GmbH - a debitel company
> Phone:  +49.221.8884 435
> Fax:    +49.221.8884 455
>
> http://www.midray.com/
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>