From joseph67@example.org Sat Dec 01 05:04:55 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 25450 invoked from network); 1 Dec 2007 05:04:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2007 05:04:55 -0000 Received: (qmail 65603 invoked by uid 500); 1 Dec 2007 05:04:42 -0000 Delivered-To: joseph67@example.org Received: (qmail 65573 invoked by uid 500); 1 Dec 2007 05:04:42 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 65562 invoked by uid 99); 1 Dec 2007 05:04:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 21:04:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mu-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2007 05:04:19 +0000 Received: by mu-out-0910.google.com with SMTP id i10so597183mue for <joseph67@example.org>; Fri, 30 Nov 2007 21:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=1FryXbSi1/b/vo160fwKZdzL3UIccLXNEh21ixe+xb4=; b=qh1Vh2Tg0H+GfJrB9M8WaEiBBhxGMRk7F5XLDhym0qkOKIx29TVBIzDzwxuA9hBC5YwYWOEwVsgarCeQ81ju7GxVkCtQF/FD3OlwMAeunBwKQv81C5ovQd07J3e8MMueCP/6Nh7sdZfZHLBXJ1HsyVXxvBs0mRgvDzlufWDbAGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=uExs53Le4j7Kxn4Otzl7kLC7Y7sSWD2xdc4tjtJbOYa+Kof8DnZzVxtLwuCvBw9qI+d6CtzK5nzukjGUW6oy5AAOLhd3D9CruU5zZJyb+TuGJ+oeEziQDqaDcVMqGuWObvyRLvyEuHch0XXLrYfwYFsHeLPrOUv7LNmX1KSZY2U= Received: by 83.161.120.155 with SMTP id n11mr8026471fga.1196485460544; Fri, 30 Nov 2007 21:04:20 -0800 (PST) Received: from ?83.161.120.155? ( [83.161.120.155]) by mx.google.com with ESMTPS id d13sm10523221fka.283.161.120.155.04.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Nov 2007 21:04:19 -0800 (PST) Message-ID: <joseph67@example.org> Date: Sat, 01 Dec 2007 06:04:18 +0100 From: Christian Klocker <joseph67@example.org> Reply-To: joseph67@example.org User-Agent: Thunderbird 83.161.120.155 (Macintosh/20071031) MIME-Version: 1.0 To: joseph67@example.org Subject: trustStore mod_jk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org dear lenya list, my problem is that every time i try to publish a document i get the following exception "java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty". i'am using lenya 1.2.5, tomcat5 (jdk1.5_10). tomcat is connected via mod_jk, ssl is handled by apache2. i found "<!-- TODO: This can lead to problems if the request does not come through the "HTTP port" but for instance through the mod_jk port 8009 -->" in scheduler.xmap and i am wondering how to fix it. to me it looks like that the ssl-request is send to tomcat not do apache and tomcat is missing "trustAnchors". this seems to be wrong as tomcat should not handle ssl-request in that configuration. what is your advise to fix it? do i need to change "org.apache.lenya.cms.cocoon.generation.ProxyGenerator.trustStore" or is the default ok for my setup ? thank you christian klocker --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Sat Dec 01 05:27:28 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 31142 invoked from network); 1 Dec 2007 05:27:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2007 05:27:28 -0000 Received: (qmail 73681 invoked by uid 500); 1 Dec 2007 05:27:15 -0000 Delivered-To: joseph67@example.org Received: (qmail 73642 invoked by uid 500); 1 Dec 2007 05:27:15 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 73631 invoked by uid 99); 1 Dec 2007 05:27:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 21:27:15 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2007 05:26:53 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <joseph67@example.org>) id 1IyKsS-00062i-25 for joseph67@example.org; Fri, 30 Nov 2007 21:26:56 -0800 Message-ID: <joseph67@example.org> Date: Fri, 30 Nov 2007 21:26:56 -0800 (PST) From: stevecam <joseph67@example.org> To: joseph67@example.org Subject: Re: Using Flowscript and JXTemplates in Lenya In-Reply-To: <joseph67@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: joseph67@example.org References: <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org stevecam wrote: >=20 > Small point of clarification to my first post, I am talking about > Javascript Flow (i.e. Flowscript), see *** below. >=20 >=20 > Andreas Hartmann wrote: >>=20 >> J=C3=B6rn Nettingsmeier schrieb: >>> stevecam wrote: >>>> I want to make use of Flowscript and JXTemplates from Lenya. >>>> >>>> My requirement is to create pages that incorporate data from a=20 >>>> database into >>>> tables and allow users to select rows in the tables, their selection= =20 >>>> in turn >>>> affecting what they see on the next page. Flowscript seems to be a >>>> simple >>>> means to acheive this. >>>> >>>> Also, I want to make use of the JDBi javascript database interface=20 >>>> library >>>> in the Cocoon "Easy SQL database access" demo in the forms block. >>>> >>>> My task now is to find the best way to make use of these means in >>>> Lenya. >>>> There is some information available on how to use CForms from Lenya=20 >>>> but no >>>> good example of Javaflow and JXTemplates. >>=20 >> *** I should have said Javascript flow (Flowscript) and JXTemplates here= ! >>=20 >>>> Specifically I want to generate the page body (that would normally=20 >>>> come from >>>> an index_en.xml file (or other language version of it)) via a=20 >>>> JXTemplate and >>>> to have a Flowscript use (call) a modified Lenya pipeline to aggregate= =20 >>>> the >>>> body with my sites standard header, footer, breadcrumb. >>>> I presume that for the Lenya menu highlighting and breadcrumb=20 >>>> functionality >>>> to work then the page must be one in the Lenya sitetree. >>=20 >> That's true, but in your case the page would only be a placeholder for= =20 >> the content which is generated dynamically by the usecase or resource=20 >> type module sitemap (whatever approach you choose). >>=20 >>>> I'll have a go at this now and add to this thread with my results, but >>>> if >>>> anyone has already implemented such a thing I'd be happy for some help= . >>>=20 >>> if you need flow, you should implement it as a usecase. >>> in lenya 2.0, there is a document type called "usecasedocument", which= =20 >>> allows you to disguise a usecase (which normally has a view that's=20 >>> orthogonal to documents) as a plain document, which you can include in= =20 >>> your navigation menu and handle it as if it were just another xhtml doc= . >>> perhaps andreas can chime in with more details here? >>=20 >> http://lenya.apache.org/docs/modules/usecasedocument/index.html >>=20 >>> alternatively, you could create a custom doctype that will just contain= =20 >>> a database query and a link to a special xslt that renders it to the=20 >>> desired xhtml output. i've done that for accessing an xml database, and= =20 >>> it worked ok. i'd be glad to help out, but i only know lenya 2.0... >>=20 >> I'd also use a resource type rather than a usecase because >>=20 >> - it is a read-only operation >> - custom flow is required >>=20 >> I guess I'd start with a resource type module (there's a tutorial in the= =20 >> documentation) and add the stuff from the "Easy SQL database access"=20 >> tutorial in the module sitemap. >>=20 >> -- Andreas >>=20 >>=20 >> --=20 >> Andreas Hartmann, CTO >> BeCompany GmbH >> http://www.becompany.ch >> Tel.: 418.369.4446 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: joseph67@example.org >> For additional commands, e-mail: joseph67@example.org >>=20 >>=20 >>=20 >=20 >=20 I've implemented a partial solution to my requirement but it does not seem to be fully functional, so I'm now looking at the creation of a new resourc= e type (document_type) 'jxtemplate'. I've followed the instructions in the tutorial but have one problem that I cannot solve. When creating a new page from the menu (using the "New JXTemplate" option I've added), the new page has the default type of 'xhtml= ' rather that 'jxtemplate'. This kind of problem is mentioned in the tutorial (see 'Resource type matcher') and I've checked what I have done but cannot see an error. It seems to be partly working as my new default jxtemplate.xml sample file is used but the wrong stylesheet selection is made. By using a resource-type I think things are simplified a little as follows: (1)Create entry points for the Flowscript/Continuations to take over page generation from the pipeline. (2)Get the dynamic data from the database into javascript objects and then pass control back to the pipeline. (3)For my 'jxtemplate' resource type, generate the content with a different pipeline than the default xhtml resource type. These steps are described in more detail as below; (1)Create entry points for the Flowscript/Continuations. I add to the publication-sitemap.xml the following. <!-- add components for JXTemplate use -->=20 <map:components> <map:generators default=3D"file"> <map:generator label=3D"content" logger=3D"sitemap.generator.jx" name= =3D"jx" pool-grow=3D"2" pool-max=3D"16" pool-min=3D"2"=20 src=3D"org.apache.cocoon.generation.JXTemplateGenerator"/> </map:generators> <map:transformers default=3D"xslt"> <map:transformer logger=3D"sitemap.transformer.jx" name=3D"jx" pool-grow=3D"2" pool-max=3D"16" pool-min=3D"2"=20 src=3D"org.apache.cocoon.transformation.JXTemplateTransformer"/> <map:transformer logger=3D"forms" name=3D"forms" src=3D"org.apache.cocoon.forms.transformation.FormsTemplateTransformer"/> </map:transformers> </map:components> <!-- reference flowscript --> <map:flow language=3D"javascript"> <map:script src=3D"flow/application_flow.js"/> <map:script src=3D"flow/jdbi.js"/> =20 </map:flow> <!-- enable continuations --> <map:pipeline> <!-- Continue a scenario. The continuation id is passed in the URL (typically used for GET requests) --> <map:match pattern=3D"**/*.continue"> <map:call continuation=3D"{1}"> <map:parameter name=3D"publication_id" value=3D"{page-envelope:publication-id}"/> <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> <map:parameter name=3D"document_type" value=3D"{page-envelope:document-type}"/> <map:parameter name=3D"document_url" value=3D"{page-envelope:document-url}"/> </map:call> =20 </map:match> <!-- Continue a scenario. The continuation id is passed as a request parameter (typically used for POST request) --> <map:call continuation=3D"{request-param:continuation-id}"> <map:parameter name=3D"publication_id" value=3D"{page-envelope:publication-id}"/> <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> <map:parameter name=3D"document_type" value=3D"{page-envelope:document-type}"/> <map:parameter name=3D"document_url" value=3D"{page-envelope:document-url}"/> </map:call> </map:match> --> </map:pipeline> =20 <!-- create an flowscript entry point --> <map:match pattern=3D"*/**/FIRST.html"> <map:call function=3D"do_first_page"> <map:parameter name=3D"publication_id" value=3D"{page-envelope:publication-id}"/> <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> <map:parameter name=3D"document_type" value=3D"{page-envelope:document-type}"/> <map:parameter name=3D"document_url" value=3D"{page-envelope:document-url}"/> </map:call> </map:match>=20 (2)Get the dynamic data into javascript objects and return control to pipeline In my javascript I have the do_first_page function as follows: function do_first_page() { //get a list of occupations var list =3D dao.occupation.getAll(); =20 //return control to lenya page creation pipeline =20 cocoon.sendPage("lenyabody-view/"+cocoon.parameters["publication_id"]+"/"+ cocoon.parameters["area"] +"/"+cocoon.parameters["document_type"]+"/"+ cocoon.parameters["document_url"], { occupations: list }); } (3) Generate my 'jxtemplate' resource type (document type) content. The page body content is generated in the aggregate as below: <!-- This is the pipeline that builds the page. It aggregates all the navigational elements (breadcrumb, tabs, menu) with the actual content of the document. --> <map:pipeline> <!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url} --> <map:match pattern=3D"lenyabody-*/*/*/*/**"> <map:aggregate element=3D"cmsbody"> <map:part src=3D"cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/= > <map:part src=3D"cocoon://navigation/{2}/{3}/tabs/{5}.xml"/> <map:part src=3D"cocoon://navigation/{2}/{3}/menu/{5}.xml"/> <map:part src=3D"cocoon://navigation/{2}/{3}/search/{5}.xml"/> <map:part src=3D"cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/> </map:aggregate> The last 'map:part' line calls another 'mounted' pipeline in the doctypes.xmp file and this is where I need to add my jxtemplate rendering pipeline. The standard pipeline is as follows: <!-- parametrized doctype matcher --> <!-- pattern=3D"{rendertype}/{area}/{doctype}/{document-path}" --> <map:match pattern=3D"*/*/*/**.xml"> <map:generate src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> <map:transform src=3D"xslt/{3}2xhtml.xsl"> <map:parameter name=3D"rendertype" value=3D"{1}"/> <map:parameter name=3D"nodeid" value=3D"{page-envelope:document-node-id}"/> <map:parameter name=3D"language" value=3D"{page-envelope:document-language}"/> </map:transform> <map:serialize type=3D"xml"/> </map:match> I have not test this part yet but I think the modification needed is: <!-- parametrized doctype matcher --> <!-- pattern=3D"{rendertype}/{area}/{doctype}/{document-path}" --> <map:match pattern=3D"*/*/*/**.xml"> <map:select> <map:when test=3D"{3}=3D'jxtemplate'"> <map:generate type=3D"jx" src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> </map:when> <map:otherwise> <map:generate src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> </map:otherwise> </map:select> <map:transform src=3D"xslt/{3}2xhtml.xsl"> <map:parameter name=3D"rendertype" value=3D"{1}"/> <map:parameter name=3D"nodeid" value=3D"{page-envelope:document-node-id}"/> <map:parameter name=3D"language" value=3D"{page-envelope:document-language}"/> </map:transform> <map:serialize type=3D"xml"/> </map:match>=20 So finally if I can get my resource-type (doctype) set up correctly I shoul= d be able to test all this out.=20 I'm presuming I can move between pages using flowscript and Lenya will handle all the menu-highlighting and breadcrumb for me (I hope). =20 --=20 View this message in context: http://www.nabble.com/Using-Flowscript-and-JX= Templates-in-Lenya-tf4894710.html#a14102407 Sent from the Lenya - Users mailing list joseph67@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Sun Dec 02 22:52:44 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 93521 invoked from network); 2 Dec 2007 22:52:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2007 22:52:44 -0000 Received: (qmail 72802 invoked by uid 500); 2 Dec 2007 22:52:32 -0000 Delivered-To: joseph67@example.org Received: (qmail 72775 invoked by uid 500); 2 Dec 2007 22:52:32 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 72764 invoked by uid 99); 2 Dec 2007 22:52:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2007 14:52:31 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO pc1.inventec.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2007 22:52:34 +0000 Received: from [83.161.120.155] (pc2.inventec.ch [83.161.120.155]) by pc1.inventec.ch (Postfix) with ESMTP id C05364D983 for <joseph67@example.org>; Sun, 2 Dec 2007 23:52:12 +0100 (CET) Message-ID: <joseph67@example.org> Date: Sun, 02 Dec 2007 23:52:33 +0100 From: Markus Angst <joseph67@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20071031) MIME-Version: 1.0 To: lenya user <joseph67@example.org> Subject: Error Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, after logging in to the default publication in revision 599391 i get this shiny white error page instead of the sample content import page. Is it just me or can somebody confirm this? Thanks! Markus Angst -------------------------------------------------------------------------------- [object Error] (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387)org.apache.cocoon.ProcessingException: Error calling flowscript function executeUsecase at [JavaScriptException] - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387 at file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:389 at <map:call> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecase.xmap:104:45 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/usecase.xmap:55:131 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/global-sitemap.xmap:288:105 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/sitemap.xmap:667:106org.mozilla.javascript.JavaScriptException: [object Error] (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387)full exception chain stacktraceorg.apache.cocoon.ProcessingException: Error calling flowscript function executeUsecase at [JavaScriptException] - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387 at file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:389 at <map:call> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecase.xmap:104:45 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/usecase.xmap:55:131 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/global-sitemap.xmap:288:105 at <map:mount> - file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/sitemap.xmap:667:joseph67@example.org(ProcessingException.java:145) at org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger.getException(LocationTrackingDebugger.java:132) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:766) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: org.mozilla.javascript.JavaScriptException: [object Error] (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2461) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764) ... 59 more stacktraceorg.mozilla.javascript.JavaScriptException: [object Error] (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2461) at script.executeUsecase(file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) --> --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 04:56:29 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 83999 invoked from network); 3 Dec 2007 04:56:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 04:56:29 -0000 Received: (qmail 80011 invoked by uid 500); 3 Dec 2007 04:56:17 -0000 Delivered-To: joseph67@example.org Received: (qmail 79979 invoked by uid 500); 3 Dec 2007 04:56:17 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 79968 invoked by uid 99); 3 Dec 2007 04:56:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2007 20:56:17 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 04:56:16 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <joseph67@example.org>) id 1Iz3LW-0003aL-Ot for joseph67@example.org; Sun, 02 Dec 2007 20:55:54 -0800 Message-ID: <joseph67@example.org> Date: Sun, 2 Dec 2007 20:55:54 -0800 (PST) From: stevecam <joseph67@example.org> To: joseph67@example.org Subject: Re: Using Flowscript and JXTemplates in Lenya In-Reply-To: <joseph67@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: joseph67@example.org References: <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org I've got this working now, I'll add my current code to the thread tomorrow, once I've done some more testing. stevecam wrote: >=20 >=20 > stevecam wrote: >>=20 >> Small point of clarification to my first post, I am talking about >> Javascript Flow (i.e. Flowscript), see *** below. >>=20 >>=20 >> Andreas Hartmann wrote: >>>=20 >>> J=C3=B6rn Nettingsmeier schrieb: >>>> stevecam wrote: >>>>> I want to make use of Flowscript and JXTemplates from Lenya. >>>>> >>>>> My requirement is to create pages that incorporate data from a=20 >>>>> database into >>>>> tables and allow users to select rows in the tables, their selection= =20 >>>>> in turn >>>>> affecting what they see on the next page. Flowscript seems to be a >>>>> simple >>>>> means to acheive this. >>>>> >>>>> Also, I want to make use of the JDBi javascript database interface=20 >>>>> library >>>>> in the Cocoon "Easy SQL database access" demo in the forms block. >>>>> >>>>> My task now is to find the best way to make use of these means in >>>>> Lenya. >>>>> There is some information available on how to use CForms from Lenya= =20 >>>>> but no >>>>> good example of Javaflow and JXTemplates. >>>=20 >>> *** I should have said Javascript flow (Flowscript) and JXTemplates >>> here! >>>=20 >>>>> Specifically I want to generate the page body (that would normally=20 >>>>> come from >>>>> an index_en.xml file (or other language version of it)) via a=20 >>>>> JXTemplate and >>>>> to have a Flowscript use (call) a modified Lenya pipeline to aggregat= e=20 >>>>> the >>>>> body with my sites standard header, footer, breadcrumb. >>>>> I presume that for the Lenya menu highlighting and breadcrumb=20 >>>>> functionality >>>>> to work then the page must be one in the Lenya sitetree. >>>=20 >>> That's true, but in your case the page would only be a placeholder for= =20 >>> the content which is generated dynamically by the usecase or resource= =20 >>> type module sitemap (whatever approach you choose). >>>=20 >>>>> I'll have a go at this now and add to this thread with my results, bu= t >>>>> if >>>>> anyone has already implemented such a thing I'd be happy for some >>>>> help. >>>>=20 >>>> if you need flow, you should implement it as a usecase. >>>> in lenya 2.0, there is a document type called "usecasedocument", which= =20 >>>> allows you to disguise a usecase (which normally has a view that's=20 >>>> orthogonal to documents) as a plain document, which you can include in= =20 >>>> your navigation menu and handle it as if it were just another xhtml >>>> doc. >>>> perhaps andreas can chime in with more details here? >>>=20 >>> http://lenya.apache.org/docs/modules/usecasedocument/index.html >>>=20 >>>> alternatively, you could create a custom doctype that will just contai= n=20 >>>> a database query and a link to a special xslt that renders it to the= =20 >>>> desired xhtml output. i've done that for accessing an xml database, an= d=20 >>>> it worked ok. i'd be glad to help out, but i only know lenya 2.0... >>>=20 >>> I'd also use a resource type rather than a usecase because >>>=20 >>> - it is a read-only operation >>> - custom flow is required >>>=20 >>> I guess I'd start with a resource type module (there's a tutorial in th= e=20 >>> documentation) and add the stuff from the "Easy SQL database access"=20 >>> tutorial in the module sitemap. >>>=20 >>> -- Andreas >>>=20 >>>=20 >>> --=20 >>> Andreas Hartmann, CTO >>> BeCompany GmbH >>> http://www.becompany.ch >>> Tel.: 418.369.4446 >>>=20 >>>=20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: joseph67@example.org >>> For additional commands, e-mail: joseph67@example.org >>>=20 >>>=20 >>>=20 >>=20 >>=20 >=20 > I've implemented a partial solution to my requirement but it does not see= m > to be fully functional, so I'm now looking at the creation of a new > resource type (document_type) 'jxtemplate'. >=20 > I've followed the instructions in the tutorial but have one problem that = I > cannot solve. When creating a new page from the menu (using the "New > JXTemplate" option I've added), the new page has the default type of > 'xhtml' rather that 'jxtemplate'. This kind of problem is mentioned in th= e > tutorial (see 'Resource type matcher') and I've checked what I have done > but cannot see an error. >=20 > It seems to be partly working as my new default jxtemplate.xml sample fil= e > is used but the wrong stylesheet selection is made. >=20 > By using a resource-type I think things are simplified a little as > follows: >=20 > (1)Create entry points for the Flowscript/Continuations to take over page > generation from the pipeline. > (2)Get the dynamic data from the database into javascript objects and the= n > pass control back to the pipeline. > (3)For my 'jxtemplate' resource type, generate the content with a > different pipeline than the default xhtml > resource type. >=20 > These steps are described in more detail as below; >=20 > (1)Create entry points for the Flowscript/Continuations. >=20 > I add to the publication-sitemap.xml the following. >=20 > <!-- add components for JXTemplate use -->=20 > <map:components> >=20 > <map:generators default=3D"file"> > <map:generator label=3D"content" logger=3D"sitemap.generator.jx" > name=3D"jx" pool-grow=3D"2" pool-max=3D"16" pool-min=3D"2"=20 > src=3D"org.apache.cocoon.generation.JXTemplateGenerator"/> > </map:generators> >=20 > <map:transformers default=3D"xslt"> > <map:transformer logger=3D"sitemap.transformer.jx" name=3D"jx" > pool-grow=3D"2" pool-max=3D"16" pool-min=3D"2"=20 > src=3D"org.apache.cocoon.transformation.JXTemplateTransformer"/> > <map:transformer logger=3D"forms" name=3D"forms" > src=3D"org.apache.cocoon.forms.transformation.FormsTemplateTransformer"/> > </map:transformers> >=20 > </map:components> >=20 > <!-- reference flowscript --> > <map:flow language=3D"javascript"> > <map:script src=3D"flow/application_flow.js"/> > <map:script src=3D"flow/jdbi.js"/> =20 > </map:flow> >=20 > <!-- enable continuations --> > <map:pipeline> > <!-- Continue a scenario. The continuation id is passed in the URL > (typically used for GET requests) --> > <map:match pattern=3D"**/*.continue"> > <map:call continuation=3D"{1}"> > <map:parameter name=3D"publication_id" > value=3D"{page-envelope:publication-id}"/> > <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> > <map:parameter name=3D"document_type" > value=3D"{page-envelope:document-type}"/> > <map:parameter name=3D"document_url" > value=3D"{page-envelope:document-url}"/> > </map:call> =20 > </map:match> >=20 > <!-- Continue a scenario. The continuation id is passed as a reques= t > parameter (typically used for POST request) --> > <map:call continuation=3D"{request-param:continuation-id}"> > <map:parameter name=3D"publication_id" > value=3D"{page-envelope:publication-id}"/> > <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> > <map:parameter name=3D"document_type" > value=3D"{page-envelope:document-type}"/> > <map:parameter name=3D"document_url" > value=3D"{page-envelope:document-url}"/> > </map:call> > </map:match> --> > </map:pipeline> > =20 > <!-- create an flowscript entry point --> > <map:match pattern=3D"*/**/FIRST.html"> > <map:call function=3D"do_first_page"> > <map:parameter name=3D"publication_id" > value=3D"{page-envelope:publication-id}"/> > <map:parameter name=3D"area" value=3D"{page-envelope:area}"/> > <map:parameter name=3D"document_type" > value=3D"{page-envelope:document-type}"/> > <map:parameter name=3D"document_url" > value=3D"{page-envelope:document-url}"/> > </map:call> > </map:match>=20 >=20 > (2)Get the dynamic data into javascript objects and return control to > pipeline >=20 > In my javascript I have the do_first_page function as follows: >=20 > function do_first_page() { > //get a list of occupations > var list =3D dao.occupation.getAll(); > =20 > //return control to lenya page creation pipeline > =20 > cocoon.sendPage("lenyabody-view/"+cocoon.parameters["publication_id"]+"/"= + > cocoon.parameters["area"] +"/"+cocoon.parameters["document_type"]+"/"= + > cocoon.parameters["document_url"], { occupations: list }); > } >=20 > (3) Generate my 'jxtemplate' resource type (document type) content. >=20 > The page body content is generated in the aggregate as below: >=20 > <!-- This is the pipeline that builds the page. It aggregates all > the navigational elements (breadcrumb, tabs, menu) with the actual > content of the document. --> > <map:pipeline> > <!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url= } > --> > <map:match pattern=3D"lenyabody-*/*/*/*/**"> > <map:aggregate element=3D"cmsbody"> > <map:part src=3D"cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml= "/> > <map:part src=3D"cocoon://navigation/{2}/{3}/tabs/{5}.xml"/> > <map:part src=3D"cocoon://navigation/{2}/{3}/menu/{5}.xml"/> > <map:part src=3D"cocoon://navigation/{2}/{3}/search/{5}.xml"/> > <map:part > src=3D"cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/= > > </map:aggregate> >=20 >=20 > The last 'map:part' line calls another 'mounted' pipeline in the > doctypes.xmp file and this is where I need to add my jxtemplate rendering > pipeline. The standard pipeline is as follows: >=20 > <!-- parametrized doctype matcher --> > <!-- pattern=3D"{rendertype}/{area}/{doctype}/{document-path}" --> > <map:match pattern=3D"*/*/*/**.xml"> > <map:generate > src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> > <map:transform src=3D"xslt/{3}2xhtml.xsl"> > <map:parameter name=3D"rendertype" value=3D"{1}"/> > <map:parameter name=3D"nodeid" > value=3D"{page-envelope:document-node-id}"/> > <map:parameter name=3D"language" > value=3D"{page-envelope:document-language}"/> > </map:transform> > <map:serialize type=3D"xml"/> > </map:match> >=20 > I have not test this part yet but I think the modification needed is: >=20 > <!-- parametrized doctype matcher --> > <!-- pattern=3D"{rendertype}/{area}/{doctype}/{document-path}" --> > <map:match pattern=3D"*/*/*/**.xml"> > <map:select> > <map:when test=3D"{3}=3D'jxtemplate'"> > <map:generate type=3D"jx" > src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> > </map:when> > <map:otherwise> > <map:generate > src=3D"{content-dir:{page-envelope:publication-id},{2}}/{4}.xml"/> > </map:otherwise> > </map:select> > <map:transform src=3D"xslt/{3}2xhtml.xsl"> > <map:parameter name=3D"rendertype" value=3D"{1}"/> > <map:parameter name=3D"nodeid" > value=3D"{page-envelope:document-node-id}"/> > <map:parameter name=3D"language" > value=3D"{page-envelope:document-language}"/> > </map:transform> > <map:serialize type=3D"xml"/> > </map:match>=20 >=20 > So finally if I can get my resource-type (doctype) set up correctly I > should be able to test all this out.=20 > I'm presuming I can move between pages using flowscript and Lenya will > handle all the menu-highlighting and breadcrumb for me (I hope). >=20 > =20 >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Using-Flowscript-and-JX= Templates-in-Lenya-tf4894710.html#a14123963 Sent from the Lenya - Users mailing list joseph67@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 09:04:13 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 41919 invoked from network); 3 Dec 2007 09:04:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 09:04:13 -0000 Received: (qmail 28487 invoked by uid 500); 3 Dec 2007 09:04:01 -0000 Delivered-To: joseph67@example.org Received: (qmail 28450 invoked by uid 500); 3 Dec 2007 09:04:00 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 28439 invoked by uid 99); 3 Dec 2007 09:04:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 01:04:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 09:03:38 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iz79P-0006KE-J2 for joseph67@example.org; Mon, 03 Dec 2007 08:59:39 +0000 Received: from cust.static.84-253-63-109.cybernet.ch ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 08:59:39 +0000 Received: from andreas by cust.static.84-253-63-109.cybernet.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 08:59:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: joseph67@example.org From: Andreas Hartmann <joseph67@example.org> Subject: Re: Error Date: Mon, 03 Dec 2007 09:55:05 +0100 Lines: 292 Message-ID: <joseph67@example.org> References: <joseph67@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: joseph67@example.org X-Gmane-NNTP-Posting-Host: cust.static.84-253-63-109.cybernet.ch User-Agent: Thunderbird 83.161.120.155 (Macintosh/20071031) In-Reply-To: <joseph67@example.org> Sender: news <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Markus Angst schrieb: > Hi, > > after logging in to the default publication in revision 599391 i get this shiny > white error page instead of the sample content import page. Is it just me or can > somebody confirm this? I can confirm the problem. -- Andreas > > Thanks! > Markus Angst > > > -------------------------------------------------------------------------------- > [object Error] > (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387)org.apache.cocoon.ProcessingException: > Error calling flowscript function executeUsecase > at [JavaScriptException] - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387 > at > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:389 > at <map:call> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecase.xmap:104:45 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/usecase.xmap:55:131 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/global-sitemap.xmap:288:105 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/sitemap.xmap:667:106org.mozilla.javascript.JavaScriptException: > [object Error] > (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387)full > exception chain stacktraceorg.apache.cocoon.ProcessingException: Error calling > flowscript function executeUsecase > at [JavaScriptException] - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387 > at > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:389 > at <map:call> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecase.xmap:104:45 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/usecase.xmap:55:131 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/global-sitemap.xmap:288:105 > at <map:mount> - > file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/sitemap.xmap:667:106 > at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145) > at > org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger.getException(LocationTrackingDebugger.java:132) > at > org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:766) > at > org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at org.apache.cocoon.Cocoon.process(Cocoon.java:699) > at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) > at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158) > at org.mortbay.http.HttpServer.service(HttpServer.java:954) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > Caused by: org.mozilla.javascript.JavaScriptException: [object Error] > (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387) > at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2461) > at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251) > at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161) > at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758) > at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159) > at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915) > at > org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764) > ... 59 more > stacktraceorg.mozilla.javascript.JavaScriptException: [object Error] > (file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js#387) > at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2461) > at > script.executeUsecase(file:///C:/lenya/lenya-2.0-dev/build/lenya/webapp/lenya/modules/usecase/usecases.js:387) > at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251) > at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161) > at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758) > at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159) > at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915) > at > org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764) > at > org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) > at > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) > at > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) > at > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235) > at > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) > at > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) > at org.apache.cocoon.Cocoon.process(Cocoon.java:699) > at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) > at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158) > at org.mortbay.http.HttpServer.service(HttpServer.java:954) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > --> -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: 418.369.4446 --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 09:12:00 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 43904 invoked from network); 3 Dec 2007 09:12:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 09:12:00 -0000 Received: (qmail 31777 invoked by uid 500); 3 Dec 2007 09:11:48 -0000 Delivered-To: joseph67@example.org Received: (qmail 31748 invoked by uid 500); 3 Dec 2007 09:11:48 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 31737 invoked by uid 99); 3 Dec 2007 09:11:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 01:11:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 09:11:49 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iz7Ka-0001Ys-Ib for joseph67@example.org; Mon, 03 Dec 2007 09:11:12 +0000 Received: from cust.static.84-253-63-109.cybernet.ch ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 09:11:12 +0000 Received: from andreas by cust.static.84-253-63-109.cybernet.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 09:11:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: joseph67@example.org From: Andreas Hartmann <joseph67@example.org> Subject: Re: Error Date: Mon, 03 Dec 2007 10:11:03 +0100 Lines: 27 Message-ID: <joseph67@example.org> References: <joseph67@example.org> <joseph67@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: joseph67@example.org X-Gmane-NNTP-Posting-Host: cust.static.84-253-63-109.cybernet.ch User-Agent: Thunderbird 83.161.120.155 (Macintosh/20071031) In-Reply-To: <joseph67@example.org> Sender: news <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Andreas Hartmann schrieb: > Markus Angst schrieb: >> Hi, >> >> after logging in to the default publication in revision 599391 i get >> this shiny >> white error page instead of the sample content import page. Is it just >> me or can >> somebody confirm this? > > I can confirm the problem. java.io.FileNotFoundException: /Users/nobby/apache/lenya/clean/trunk/src/modules-core/usecase/global-sitemap.xmap (No such file or directory) Strange ... somehow the source resolving seems to get in trouble. Maybe something has changed in Cocoon? -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: 418.369.4446 --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 09:41:56 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 50607 invoked from network); 3 Dec 2007 09:41:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 09:41:56 -0000 Received: (qmail 62621 invoked by uid 500); 3 Dec 2007 09:41:44 -0000 Delivered-To: joseph67@example.org Received: (qmail 62596 invoked by uid 500); 3 Dec 2007 09:41:44 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 62585 invoked by uid 99); 3 Dec 2007 09:41:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 01:41:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 09:41:45 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iz7nd-0007hR-Gx for joseph67@example.org; Mon, 03 Dec 2007 09:41:13 +0000 Received: from cust.static.84-253-63-109.cybernet.ch ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 09:41:13 +0000 Received: from andreas by cust.static.84-253-63-109.cybernet.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 09:41:13 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: joseph67@example.org From: Andreas Hartmann <joseph67@example.org> Subject: Re: Error Date: Mon, 03 Dec 2007 10:41:02 +0100 Lines: 70 Message-ID: <joseph67@example.org> References: <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: joseph67@example.org X-Gmane-NNTP-Posting-Host: cust.static.84-253-63-109.cybernet.ch User-Agent: Thunderbird 83.161.120.155 (Macintosh/20071031) In-Reply-To: <joseph67@example.org> Sender: news <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Andreas Hartmann schrieb: > Andreas Hartmann schrieb: >> Markus Angst schrieb: >>> Hi, >>> >>> after logging in to the default publication in revision 599391 i get >>> this shiny >>> white error page instead of the sample content import page. Is it >>> just me or can >>> somebody confirm this? >> >> I can confirm the problem. > > java.io.FileNotFoundException: > /Users/nobby/apache/lenya/clean/trunk/src/modules-core/usecase/global-sitemap.xmap > (No such file or directory) The problem is caused by commit r600218. After reverting it, it works again. Does someone have the time to look at it? ---- Author: anathaniel Date: Sat Dec 1 16:01:55 2007 New Revision: 600218 URL: http://svn.apache.org/viewvc?rev=600218&view=rev Log: Sitemap: Redirect to cocoon:/foo did not work in sub-sitemap when it is in same directory as the root sitemap. Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java cocoon/branches/BRANCH_2_1_X/status.xml Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java?rev=600218&r1=600217&r2=600218&view=diff ============================================================================== --- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java (original) +++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java Sat Dec 1 16:01:55 2007 @@ -286,7 +286,7 @@ // Get the processor that should process this request ConcreteTreeProcessor processor; - if (newEnv.getRootContext().equals(newEnv.getContext())) { + if ( newEnv.getURIPrefix().equals("") ) { processor = ((TreeProcessor)getRootProcessor()).concreteProcessor; } else { processor = this; -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: 418.369.4446 --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 15:18:39 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 57841 invoked from network); 3 Dec 2007 15:18:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 15:18:39 -0000 Received: (qmail 18754 invoked by uid 500); 3 Dec 2007 15:18:27 -0000 Delivered-To: joseph67@example.org Received: (qmail 18729 invoked by uid 500); 3 Dec 2007 15:18:26 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 18718 invoked by uid 99); 3 Dec 2007 15:18:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 07:18:26 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mxout005.mail.hostpoint.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 15:18:26 +0000 Received: from [83.161.120.155] (helo=asmtp002.mail.hostpoint.ch) by mxout005.mail.hostpoint.ch with esmtp (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzD3d-00004L-FJ for joseph67@example.org; Mon, 03 Dec 2007 16:18:05 +0100 Received: from [83.161.120.155] (helo=[83.161.120.155]) by asmtp002.mail.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzD3d-000Mov-9H for joseph67@example.org; Mon, 03 Dec 2007 16:18:05 +0100 X-Authenticated-Sender-Id: joseph67@example.org Message-Id: <joseph67@example.org> From: =?ISO-8859-1?Q?J=FCrgen_Ragaller?= <joseph67@example.org> To: joseph67@example.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Subject: [2.0] - indexing of usecase documents Date: Mon, 3 Dec 2007 16:18:04 +0100 X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Hi We use ResourceType usecase for CForms. The views of these documents/=20 resource types sometimes contain content that should be indexed (the =20 "content" is in our case in a jx template: a cform surrounded by some =20= text). Right now I can only think of dirty hacks/workarounds to this =20 phenomenon (douplication of content and redirection, or insertion of =20 douplicated content in the ResourceType usecases's content document =20 and switch on indexing for usecase ResourceTypes). Any hints are appreciated J=FCrgen null-oder-eins GmbH Z=FCrich web & graphic design www.null-oder-eins.ch joseph67@example.org Skype: callto://ragaller --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 16:07:59 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 77018 invoked from network); 3 Dec 2007 16:07:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 16:07:59 -0000 Received: (qmail 4691 invoked by uid 500); 3 Dec 2007 16:07:46 -0000 Delivered-To: joseph67@example.org Received: (qmail 4655 invoked by uid 500); 3 Dec 2007 16:07:46 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 4644 invoked by uid 99); 3 Dec 2007 16:07:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 08:07:46 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 16:07:47 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IzDbM-0001NA-2I for joseph67@example.org; Mon, 03 Dec 2007 15:52:56 +0000 Received: from cust.static.84-253-63-109.cybernet.ch ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 15:52:56 +0000 Received: from andreas by cust.static.84-253-63-109.cybernet.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <joseph67@example.org>; Mon, 03 Dec 2007 15:52:56 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: joseph67@example.org From: Andreas Hartmann <joseph67@example.org> Subject: Re: [2.0] - indexing of usecase documents Date: Mon, 03 Dec 2007 16:40:45 +0100 Lines: 27 Message-ID: <joseph67@example.org> References: <joseph67@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: joseph67@example.org X-Gmane-NNTP-Posting-Host: cust.static.84-253-63-109.cybernet.ch User-Agent: Thunderbird 83.161.120.155 (Macintosh/20071031) In-Reply-To: <joseph67@example.org> Sender: news <joseph67@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Jürgen Ragaller schrieb: > Hi > > > We use ResourceType usecase for CForms. The views of these > documents/resource types sometimes contain content that should be > indexed (the "content" is in our case in a jx template: a cform > surrounded by some text). > > Right now I can only think of dirty hacks/workarounds to this phenomenon > (douplication of content and redirection, or insertion of douplicated > content in the ResourceType usecases's content document and switch on > indexing for usecase ResourceTypes). IIUC the usecase view would have to be rendered for the Lucene index resource type format. What happens if you call the executeUsecase function in the Lucene index format matcher in modules/usecasedocument/sitemap.xmap? -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: 418.369.4446 --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Mon Dec 03 20:01:35 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 71740 invoked from network); 3 Dec 2007 20:01:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2007 20:01:35 -0000 Received: (qmail 19084 invoked by uid 500); 3 Dec 2007 20:01:22 -0000 Delivered-To: joseph67@example.org Received: (qmail 19055 invoked by uid 500); 3 Dec 2007 20:01:22 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 19044 invoked by uid 99); 3 Dec 2007 20:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 12:01:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph67@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO pc1.inventec.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 20:01:25 +0000 Received: from [83.161.120.155] (pc2.inventec.ch [83.161.120.155]) by pc1.inventec.ch (Postfix) with ESMTP id 43B454DD9A for <joseph67@example.org>; Mon, 3 Dec 2007 21:01:05 +0100 (CET) Message-ID: <joseph67@example.org> Date: Mon, 03 Dec 2007 21:01:05 +0100 From: Markus Angst <joseph67@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20071031) MIME-Version: 1.0 To: joseph67@example.org Subject: Re: Error References: <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> In-Reply-To: <joseph67@example.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Andreas Hartmann wrote: > Andreas Hartmann schrieb: >> Andreas Hartmann schrieb: >>> Markus Angst schrieb: >>>> Hi, >>>> >>>> after logging in to the default publication in revision 599391 i get >>>> this shiny >>>> white error page instead of the sample content import page. Is it >>>> just me or can >>>> somebody confirm this? >>> I can confirm the problem. >> java.io.FileNotFoundException: >> /Users/nobby/apache/lenya/clean/trunk/src/modules-core/usecase/global-sitemap.xmap >> (No such file or directory) > > The problem is caused by commit r600218. After reverting it, it works > again. Thanks for joseph67@example.org. The workaround works for me, too. Markus Angst > cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.java > Sat Dec 1 16:01:55 2007 > @@ -286,7 +286,7 @@ > > // Get the processor that should process this request > ConcreteTreeProcessor processor; > - if (newEnv.getRootContext().equals(newEnv.getContext())) { > + if ( newEnv.getURIPrefix().equals("") ) { > processor = > ((TreeProcessor)getRootProcessor()).concreteProcessor; > } else { > processor = this; --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Tue Dec 04 16:12:59 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 49564 invoked from network); 4 Dec 2007 16:12:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Dec 2007 16:12:58 -0000 Received: (qmail 27380 invoked by uid 500); 4 Dec 2007 16:12:45 -0000 Delivered-To: joseph67@example.org Received: (qmail 27304 invoked by uid 500); 4 Dec 2007 16:12:44 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 27001 invoked by uid 99); 4 Dec 2007 16:12:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 08:12:43 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mxout005.mail.hostpoint.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 16:12:44 +0000 Received: from [83.161.120.155] (helo=asmtp002.mail.hostpoint.ch) by mxout005.mail.hostpoint.ch with esmtp (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzaNj-0006zi-GT for joseph67@example.org; Tue, 04 Dec 2007 17:12:23 +0100 Received: from [83.161.120.155] (helo=[83.161.120.155]) by asmtp002.mail.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzaNf-0006jt-KK for joseph67@example.org; Tue, 04 Dec 2007 17:12:19 +0100 X-Authenticated-Sender-Id: joseph67@example.org Message-Id: <joseph67@example.org> From: =?ISO-8859-1?Q?J=FCrgen_Ragaller?= <joseph67@example.org> To: joseph67@example.org In-Reply-To: <joseph67@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: [2.0] - indexing of usecase documents Date: Tue, 4 Dec 2007 17:12:18 +0100 References: <joseph67@example.org> <joseph67@example.org> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Hi Am 03.12.2007 um 16:40 schrieb Andreas Hartmann: > J=FCrgen Ragaller schrieb: >> Hi >> We use ResourceType usecase for CForms. The views of these =20 >> documents/resource types sometimes contain content that should be =20 >> indexed (the "content" is in our case in a jx template: a cform =20 >> surrounded by some text). >> Right now I can only think of dirty hacks/workarounds to this =20 >> phenomenon (douplication of content and redirection, or insertion =20 >> of douplicated content in the ResourceType usecases's content =20 >> document and switch on indexing for usecase ResourceTypes). > > IIUC the usecase view would have to be rendered for the Lucene index =20= > resource type format. What happens if you call the executeUsecase =20 > function in the Lucene index format matcher in modules/=20 > usecasedocument/sitemap.xmap? Thanks for that information! In resource-type-usecase.xconf I have the following format: <format name=3D"luceneIndex" uri=3D"cocoon://modules/usecasedocument/=20 lucene-index"/> In the usecasedocument module I now match it as follows: <map:pipeline> <map:match pattern=3D"executeusecase.xml"> <map:call function=3D"executeUsecase"> <map:parameter name=3D"usecaseName" value=3D"{usecase-=20 document:usecase}"/> </map:call> </map:match> <!-- Generates the lenya metadata to be aggregated for each =20 page --> <!-- {1:pubId}/{2:area}/{3:uuid}/{4:language}/{5:revision} --> <map:match pattern=3D"lenyametadata.xml/*/*/*/*/*"> <map:generate type=3D"lenyaMetaData" src=3D"lenya-document:=20 {3},pub=3D{1},area=3D{2},lang=3D{4},rev=3D{5}"/> <map:serialize type=3D"xml"/> </map:match> <!-- {pub-id}/{area}/{uuid}/{language} --> <map:match pattern=3D"lucene-index/*/*/*/*"> <map:aggregate element=3D"cmsbody"> <map:part src=3D"cocoon:/executeusecase.xml"/> <map:part src=3D"cocoon:/lenyametadata.xml/{1}/{2}/{3}/=20 {4}/-1"/> </map:aggregate> <map:transform src=3D"fallback://lenya/modules/xhtml/xslt/=20 xhtml2index.xsl"> <map:parameter name=3D"url" value=3D"{request:requestURI}"/> </map:transform> <map:serialize type=3D"xml"/> </map:match> </map:pipeline> The lenyametadata part of the above pipeline is copied from the =20 resource module. Is it safe to say that the view (executeUsecase's output) of a =20 usecasedocument always should be indexed; or could there be cases =20 where such an approach will break the searching (depending on how the =20= usecase is written)? What do you think about the approach? Thanks a lot! J=FCrgen null-oder-eins GmbH Z=FCrich web & graphic design www.null-oder-eins.ch joseph67@example.org Skype: callto://ragaller --------------------------------------------------------------------- To unsubscribe, e-mail: joseph67@example.org For additional commands, e-mail: joseph67@example.org From joseph67@example.org Wed Dec 05 10:54:37 2007 Return-Path: <joseph67@example.org> Delivered-To: joseph67@example.org Received: (qmail 82661 invoked from network); 5 Dec 2007 10:54:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2007 10:54:36 -0000 Received: (qmail 27340 invoked by uid 500); 5 Dec 2007 10:54:25 -0000 Delivered-To: joseph67@example.org Received: (qmail 27088 invoked by uid 500); 5 Dec 2007 10:54:24 -0000 Mailing-List: contact joseph67@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:joseph67@example.org> List-Unsubscribe: <mailto:joseph67@example.org> List-Post: <mailto:joseph67@example.org> List-Id: <user.lenya.apache.org> Reply-To: joseph67@example.org Delivered-To: mailing list joseph67@example.org Received: (qmail 27077 invoked by uid 99); 5 Dec 2007 10:54:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 02:54:24 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mxout003.mail.hostpoint.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 10:54:01 +0000 Received: from [83.161.120.155] (helo=asmtp002.mail.hostpoint.ch) by mxout003.mail.hostpoint.ch with esmtp (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzrtC-000JSu-KB for joseph67@example.org; Wed, 05 Dec 2007 11:54:02 +0100 Received: from [83.161.120.155] (helo=[83.161.120.155]) by asmtp002.mail.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63 (FreeBSD)) (envelope-from <joseph67@example.org>) id 1IzrtC-000OyX-8M for joseph67@example.org; Wed, 05 Dec 2007 11:54:02 +0100 X-Authenticated-Sender-Id: joseph67@example.org Message-Id: <joseph67@example.org> From: =?ISO-8859-1?Q?J=FCrgen_Ragaller?= <joseph67@example.org> To: joseph67@example.org In-Reply-To: <joseph67@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: [2.0] - indexing of usecase documents Date: Wed, 5 Dec 2007 11:53:59 +0100 References: <joseph67@example.org> <joseph67@example.org> <joseph67@example.org> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Good morning Am 04.12.2007 um 17:12 schrieb J=FCrgen Ragaller: > Hi > > > Am 03.12.2007 um 16:40 schrieb Andreas Hartmann: > >> J=FCrgen Ragaller schrieb: >>> Hi >>> We use ResourceType usecase for CForms. The views of these =20 >>> documents/resource types sometimes contain content that should be =20= >>> indexed (the "content" is in our case in a jx template: a cform =20 >>> surrounded by some text). >>> Right now I can only think of dirty hacks/workarounds to this =20 >>> phenomenon (douplication of content and redirection, or insertion =20= >>> of douplicated content in the ResourceType usecases's content =20 >>> document and switch on indexing for usecase ResourceTypes). >> >> IIUC the usecase view would have to be rendered for the Lucene =20 >> index resource type format. What happens if you call the =20 >> executeUsecase function in the Lucene index format matcher in =20 >> modules/usecasedocument/sitemap.xmap? > > > Thanks for that information! > > > In resource-type-usecase.xconf I have the following format: > <format name=3D"luceneIndex" uri=3D"cocoon://modules/usecasedocument/=20= > lucene-index"/> > > > In the usecasedocument module I now match it as follows: > > <map:pipeline> > > <map:match pattern=3D"executeusecase.xml"> > <map:call function=3D"executeUsecase"> > <map:parameter name=3D"usecaseName" value=3D"{usecase-=20 > document:usecase}"/> > </map:call> > </map:match> > > <!-- Generates the lenya metadata to be aggregated for each =20 > page --> > <!-- {1:pubId}/{2:area}/{3:uuid}/{4:language}/{5:revision} --> > <map:match pattern=3D"lenyametadata.xml/*/*/*/*/*"> > <map:generate type=3D"lenyaMetaData" src=3D"lenya-document:=20 > {3},pub=3D{1},area=3D{2},lang=3D{4},rev=3D{5}"/> > <map:serialize type=3D"xml"/> > </map:match> > > <!-- {pub-id}/{area}/{uuid}/{language} --> > <map:match pattern=3D"lucene-index/*/*/*/*"> > <map:aggregate element=3D"cmsbody"> > <map:part src=3D"cocoon:/executeusecase.xml"/> > <map:part src=3D"cocoon:/lenyametadata.xml/{1}/{2}/{3}/=20 > {4}/-1"/> > </map:aggregate> > <map:transform src=3D"fallback://lenya/modules/xhtml/xslt/=20 > xhtml2index.xsl"> > <map:parameter name=3D"url" value=3D"{request:requestURI}"/> > </map:transform> > <map:serialize type=3D"xml"/> > </map:match> > > </map:pipeline> > > The lenyametadata part of the above pipeline is copied from the =20 > resource module. > Testing a bit, I just realized, that things are
{'source': 'Apache Software Foundation Public Mail Archives'}