Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 93607 invoked by uid 500); 19 Dec 2002 04:48:58 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 93544 invoked from network); 19 Dec 2002 04:48:55 -0000 Message-ID: From: Hong Gia Dinh To: cocoon-users@xml.apache.org Subject: context problem - repeat Date: Thu, 19 Dec 2002 11:53:33 +0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2A71A.956B9840" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2A71A.956B9840 Content-Type: text/plain; charset="windows-1255" -----Original Message----- From: Hong Gia Dinh Sent: 18 December 2002 09:35 To: 'cocoon-users@xml.apache.org' Subject: context problem Hi all i got the headache prolem like this i have the files and sitemap like this : but when i just can run the {1}-error pages of all pages !!!! i cant run the valid pages!!! but when i replace {1} by the hard coded pages , it can run well the valid and error pages !! i dont know how to solve it! when i run with {1} and the error pages form , i input the value but it cant find the correct page, it produces error like this : org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: admin/system/.xsp could not be found. (possible context problem) how to fix it??? it' sstrange that i can run all the pages that match adminstatic-* rather well!!! can you all show me what i did wrong ?? Thanks so much GD ------_=_NextPart_001_01C2A71A.956B9840 Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable context problem - repeat

-----Original Message-----
From: Hong Gia Dinh
Sent: 18 December 2002 09:35
To: 'cocoon-users@xml.apache.org'
Subject: context problem


Hi all

i got the headache prolem like this
i have the files and sitemap like this :

        <map:resources>
        =         <map:resource name=3D"admin-page">
        =         =         <map:generate type=3D"serverpages" = src=3D"context://admin/system/{target}.xsp"/>
        =         =         <map:transform type=3D"i18n">
        =         =         =         <map:parameter name=3D"locale" = value=3D"{../locale}"/>
        =         =         </map:transform>
        =         =         <map:transform = src=3D"context://admin/style/{target}.xsl">
        =         =         =         <map:parameter name=3D"use-request-parameters" = value=3D"true"/>
        =         =         =         <map:parameter name=3D"css-stylesheet" = value=3D"admin/admin.css"/>
        =         =         =         <map:parameter name=3D"base-url" = value=3D"/saigoncoop"/>
        =         =         =         <map:parameter name=3D"locale" = value=3D"{../locale}"/>
        =         =         =         <map:parameter name=3D"page" = value=3D"{target}"/>
        =         =         </map:transform>
        =         =         <map:transf= orm type=3D"log">
        =         =         =         <map:parameter name=3D"logile" = value=3D"logfile.log"/>
        =         =         =         <map:parameter name=3D"append" = value=3D"no"/>
        =         =         </map:transform>
        =         =         <map:serialize/>
        =         </map:resource>
        </map:resources>
        <!-- = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Pipelines = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D -->
        <map:pipelines>
        =         <map:pipeline>
        =         =         <map:act = type=3D"locale">
        =         =         =         <map:match = pattern=3D"admin-*">
        =         =         =         =         <map:act = type=3D"form-validator">
        =         =         =         =         =         <map:parameter name=3D"descriptor" = value=3D"context:///admin/system/admin-system-descriptor.xml"/= >

        =         =         =         =         =         <map:parameter name=3D"validate-set" = value=3D"admin-system-validate"/>
        =         =         =         =         =         <map:call = resource=3D"admin-page">
        =         =         =         =         =         =         <map:parameter name=3D"target" = value=3D"{1}"/>
        =         =         =         =         =         </map:call&= gt;
        =         =         =         =         </map:act>      =         =         =         =         =        
        =         =         =         =         <map:call = resource=3D"admin-page">
        =         =         =         =         =         <map:parameter name=3D"target" = value=3D"{1}-error"/>
        =         =         =         =         </map:call>     =         =         =         =        
        =         =         =         </map:match>
        =         =         =        =20
        =         =         =         <map:match = pattern=3D"adminstatic-*">
        =         =         =         =         <map:call = resource=3D"admin-page">
        =         =         =         =         =         <map:parameter name=3D"target" = value=3D"{1}"/>
        =         =         =         =         </map:call>
        =         =         =         </map:match>
        =         =         </map:act>
        </map:pipeline>
        <map:pipeline>  =         =        
        =         =         <map:match = pattern=3D"admin/*.css">
        =         =         =         <map:read = mime-type=3D"text/css" = src=3D"admin/style/{1}.css"/>
        =         =         </map:match>
        =         =         <map:match = pattern=3D"portal/images/*.gif">
        =         =         =         <map:read = mime-type=3D"image/gif" = src=3D"portal/images/{1}.gif"/>
        =         =         </map:match>
        =         =         <map:match = pattern=3D"portal/images/*.jpg">
        =         =         =         <map:read = mime-type=3D"image/jpg" = src=3D"portal/images/{1}.jpg"/>
        =         =         </map:match>
        =         =         <map:match = pattern=3D"portal/images/*.swf">
        =         =         =         <map:read = mime-type=3D"image/swf" = src=3D"portal/images/{1}.swf"/>
        =         =         </map:match>
        =         =         <map:match = pattern=3D"admin/images/*.gif">
        =         =         =         <map:read = mime-type=3D"image/gif" = src=3D"admin/images/{1}.gif"/>
        =         =         </map:match>
        =         =         <map:match = pattern=3D"admin/images/*.jpg">
        =         =         =         <map:read = mime-type=3D"image/jpg" = src=3D"admin/images/{1}.jpg"/>
        =         =         </map:match>
        =         </map:pipeline>


but when i just can run the {1}-error pages of all = pages !!!! i cant run the valid pages!!! but when i replace {1} by the = hard coded pages , it can run well the valid and error pages = !!

i dont know how to solve it! when i run with {1} and = the error pages form , i input the value but it cant find the correct = page, it produces error like this :


org.apache.cocoon.ProcessingException: Failed to = execute pipeline.: java.lang.RuntimeException: admin/system/.xsp could = not be found. (possible context problem)

how to fix it??? it' sstrange that i can run all the = pages that match adminstatic-* rather well!!!

can you all show me what i did wrong ??

Thanks so much GD

------_=_NextPart_001_01C2A71A.956B9840--