Build Fail ?
Anyone experiencing same ? Since yesterday's CVS , building as thus : build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp I get this : [javac] Compiling 110 source files to C:\xml-cocoon2\build\cocoon\scratchpad \classes [javac] C:\xml-cocoon2\build\cocoon\scratchpad\src\org\apache\cocoon\ant\Del ayedFileOutputStream.java:105: cannot resolve symbol [javac] symbol : constructor FileOutputStream (java.io.File,boolean) [javac] location: class java.io.FileOutputStream [javac] fos = new FileOutputStream(file, append); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error BUILD FAILED file:C:/xml-cocoon2/build.xml:1009: Compile failed; see the compiler error outpu t for details. Total time: 4 minutes 56 seconds - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
development documantation vs. released documentation(was: Howto usesaxon with cocoon)
Hy, suggestion: Maybe it could help to add some additional labels at relevant places into the current documentation set, that state e.g.: new since cocoon version 2.1 last updated at 10-OCT-2002 or something like that? These labels could even be eliminated later from the released docs. Do you think, this could help, or are there better approaches currently discussed? why i send this request: I thought at first, it would not be wise to look into the current docs, because as a newby i can not distinguish between what's new and what's available in 2.0.3 which is the release i am currently using. For many of the problems i stumbled into so far (and bothered you with my requests ;-( ) i found solutions only after i turned to the current docs at http://xml.apache.org. and in the cocoon-wiki at http://outerthought.net/wiki/Wiki.jsp Now i am using both cocoon documentation sets in parallel, so i can see the differences. This helps me getting the best out of the docs and still be shure, that it is relevant for me ;-) By this i came to my suggestion above. regards, hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Fail ?
On Wednesday 06 November 2002 09:52, [EMAIL PROTECTED] wrote: I get this : [javac] Compiling 110 source files to C:\xml-cocoon2\build\cocoon\scratchpad \classes [javac] C:\xml-cocoon2\build\cocoon\scratchpad\src\org\apache\cocoon\ant\Del ayedFileOutputStream.java:105: cannot resolve symbol [javac] symbol : constructor FileOutputStream (java.io.File,boolean) [javac] location: class java.io.FileOutputStream [javac] fos = new FileOutputStream(file, append); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error BUILD FAILED AOL (which mean me too for those who are not into the jargon). Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters for Actions
Hi All, I don't find in documentation how to pass to an Action some parameters defined in one of the configuration files (web.xml, cocoon.xconf or sitemap.xmap). Someone knows ? Ludovic - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authentication-fw session-fw
L.S. What is the status of authentication-fw and/or session-fw, - are they stable enough to use in production? - can i use them in cocoon-2.0.3? - if so how do i get my hands on a usable version? they look mighty handy to me, problem is that i am momentarily on a very tight schedule for first release, and i need to make some decisions fast. maybe needless to add, but if before mentioned items are not usable yet, other suggestions on authentication and session methods are very welcome. kind regards, wouter - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Fail ?
Hi There, This should now be fixed in the lastest CVS. If there's any other problems please let me know. Cheers, Marcus On Wed, Nov 06, 2002 at 02:22:19PM +0530, sandhu@terra-firma wrote: Anyone experiencing same ? Since yesterday's CVS , building as thus : build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp I get this : [javac] Compiling 110 source files to C:\xml-cocoon2\build\cocoon\scratchpad \classes [javac] C:\xml-cocoon2\build\cocoon\scratchpad\src\org\apache\cocoon\ant\Del ayedFileOutputStream.java:105: cannot resolve symbol [javac] symbol : constructor FileOutputStream (java.io.File,boolean) [javac] location: class java.io.FileOutputStream [javac] fos = new FileOutputStream(file, append); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error BUILD FAILED file:C:/xml-cocoon2/build.xml:1009: Compile failed; see the compiler error outpu t for details. Total time: 4 minutes 56 seconds - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameters for Actions
On Wed, 2002-11-06 at 11:50, Ludovic de Beaurepaire wrote: Hi All, I don't find in documentation how to pass to an Action some parameters defined in one of the configuration files (web.xml, cocoon.xconf or sitemap.xmap). Someone knows ? the parameters given in the sitemap to the action, such as in: map:act type=myaction map:parameter name=foo value=bar/ /map:act are passed as a par argument in the act method of the Action. Parameters (or actually configurations) defined in de cocoon.xconf can't be read directly by actions, since those are used to configure specific components to which those configurations map (via the roles file, see the avalon documentation for how that works). Init parameters declared in the web.xml should be accessible through the standard servlet interfaces, thus in your action you would do something like: ObjectModelHelper.getContext(objectModel).getInitParameter(myparam) (objectModel is an argument supplied in the act method) Configuration for the action specified inside the component declaration in the map:actions element, such as in: map:components map:actions map:action name=foo src=com.bar.FooAction myparamhello/myparam /map:action /map:actions /map:components are accessible by implementing the Configurable interface (from Avalon) in your Action. (this is again described in the Avalon documentation) -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForms vs Struts
Steven has moved it to Links'. Thank you - I overlooked the already existing point at the links page. Regards, Reinhard Ivelin, I created a new main point in the left menu and called it Cocoon compared. Reinhard -Original Message- From: Ivelin Ivanov [mailto:ivelin;apache.org] Sent: Saturday, November 02, 2002 5:23 PM To: [EMAIL PROTECTED] Subject: Re: XMLForms vs Struts Please do. Wiki is great, but I am not sure in which section would this one article go. Please let me know where it went. Thank you, Ivelin - Original Message - From: Reinhard Poetz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 8:02 AM Subject: RE: XMLForms vs Struts Ivelin, As this is an often discussed question: Do you mind adding it to the CocoonWiki? If no I could do it for you ... Regards, Reinhard -Original Message- From: Ivelin Ivanov [mailto:ivelin;apache.org] Sent: Thursday, October 31, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: Re: XMLForms vs Struts I hope this will not make things even more confusing for you, but here is my view: Struts is 3 parts: 1) An URL map, matching URLs to Actions. Everything you can do with struts-config.xml (Struts), you can do with sitemap.xmap (Cocoon). 2) Custom JSP tags for rendering HTML, like i18n, access to JavaBean properties and others. Cocoon's set of transformers is a superset of Strut's visual tags. 3) Form handling. Automated binding between HTML input fields and JavaBeans. Cocoon's XMLForm does that and much more. It not only provides the binding, but it does it in a browser independent way. Struts is only designed to handle automatically HTML input. For fairness sake, I will tell you that over the last 2 years I have used Struts successfully in big enterprise projects. It is a good and sound technology when you are only interested to support the major HTML browsers and you are not concerned with other interfaces to your application like WML, VXML, Web Services, etc. My recommendation is, if you are in a hurry and you don't want to invest time in learning a new technology, go Struts. If you plan to build a lot of web applications in the future, you must learn Cocoon. It will add a very powerful weapon to your software tools arsenal. You don't have to use it all the time, but when things start to look dangerously complex, you will find it to be a life saver. Best, Ivelin - Original Message - From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:48 AM Subject: Re: XMLForms vs Struts Hy; First let me tell you: I like the idea of merging cocoon and struts, because i see both technologies to be helpfull also in conjunction... Omar Tazi wrote: If you like the MVC aspect in Struts and like the flexibility provided by XML/XSLT, and don't like the limitations that come with JSPs, check out our Framework. It's called OXF (Open XML Framework). OXF is the result of our combined passion for Cocoon and Struts/J2EE and our involvement in huge enterprise projects. It will dramatically help you in your tasks (listed below). Good luck! But i am also a bit confused. I'm following the discussons in this mailing list for about a week now and this is already the second mentioning of a product/component (whatever) that claims to be an on top of cocoon development. But when i enter the pages mentioned above, it is very hard to find the backpointers to cocoon as the base component... Despite that all this stuff sounds very interesting, but i get more and more unshure how to proceed. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking adavantage of the enhancements done there)? 3.) Why can't i find pointers to these add ons from the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? And now my final question (to come back to the technical part): Why is it so complicated to use struts and cocoon in parallel? As far as i understand the concepts of cocoon, i can embed JSP's in it's workflow, and if a jsp itself uses struts, why not??? Although i haven't tried yet, for me these things seem to be coexisting without problems ... Any enlightments on these points are happily welcome... best regards, Hussayn -- Dr. Hussayn Dabbous
AW: how do you document your projects?
Hi all! Producing 'good' javadoc for the classes seems to be also my way. Nevertheless I would be interested how to comment the whole XML stuff (sitemap, XSPs, XSLs ... being the main part of source for cocoon projects). Is it just usual comments '!-- ... --' or is there a more sophisticated and clever way to do this (maybe also some tools available)? Antonio Gallardo also mentioned the xsldoc tag. Is this filtered or does there exist some tags which allow documentation in the XML formatted sources? Thanks Kurt -Ursprüngliche Nachricht- Von: Barbara Post [mailto:babs33;ifrance.com] Gesendet: Mittwoch, 09. Oktober 2002 18:06 An: [EMAIL PROTECTED] Betreff: Re: how do you document your projects? I plainly : - produce good javadoc of the few java classes I create, - comment my sitemap and xsl while developping them, - produce a text (Word) document explaining more in detail pipelines' and xsl' roles... and also some notes about the Cocoon components I used (what they are for), and since I did not use every component available... But I am not creating a new system, just redesigning an old one. So my documents contain some info on Cocoon and much on what I developped. IMHO, you might think project documenting needs 15% of project developping time, and better a lot of comments in the code to be reordered afterwards. Babs - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 4:33 PM Subject: how do you document your projects? Hi, i am just wondering: if and how do you document your cocoon projects? I don´t mean cocoon itself, but the projects you build up on cocoon. For the moment i am working on my own, but i think if i should give the results in someoneelse´s hand, noone could easily understand what i did and why i did it. Also when developing in a team, a project documentation would be useful. (Besides that i sometimes loose my own structure ;) Are there any thougths about how to structure a cocoon project documentation? Is there maybe a graphical notation on what happens inside cocoon? E. g. which context is mapped where to and what kind of generators, transformators etc. are applied? Any tools you can recommend? best regards Jörn - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon user-roles=failure
On Tue, Nov 05, 2002 at 10:06:30PM +0100, Kjetil Kjernsmo wrote: On Tuesday 05 November 2002 21:44, Phil Shafer wrote: Peter Royal writes: Did you try /WEB-INF/ ? Nope, that did it. Cool. I was thinking the /localhost/jtk/ was part of the problem, but appearantly this is handled internally by something (jndi?). Hm, I posted a patch for this at Bugzilla after having spent a week in intense agony over this problem, and while my bug report as far from a piece of art, it would save many people some headaches if it was applied... Patch applied. Thanks for the reminder :) Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug in C2? this.characters(xyz);
Bug inCocoon2 ? We are about to migrate our Cocoon 1.8 application to Cocoon2.0.3. We are experiencing some problems with xsp:page and get-nested-contet template. Can anyone provide us a reasonable solution ? Why do we get different results, when we do the transformation steps manually ? the xsp file, original(Cocoon 1.8): ?xml version="1.0" encoding="UTF-8"? xsp:page language="java" xmlns:xinclude="http://www.w3.org/1999/XML/xinclude" xmlns:xsp="http://apache.org/xsp" xmlns:session="http://apache.org/xsp/session/2.0" xmlns:ecommerce="http://www.asset.sk/1999/XSP/ecommerce" xmlns:utils="http://www.asset.sk/1999/XSP/utils" xmlns:request="http://apache.org/xsp/request/2.0" xmlns:response="http://apache.org/xsp/response/2.0" xmlns:esql="http://apache.org/cocoon/SQL/v2" result ecommerce:store-items item name="mid" valuemain/value /item item name="internal_link_count" value ecommerce:get-link-count/ /value /item /ecommerce:store-items /result /xsp:page the ecommerce logicsheet: xsl:template match="ecommerce:store-items" xsp:logic xsl:for-each select="item" xsl:variable name="val" xsl:call-template name="get-nested-content" xsl:with-param name="content" select="value"/ /xsl:call-template /xsl:variable EcommerceTaglib.storeItem("xsl:value-of select="@name"/", xsl:copy-of select="$val"/, false, store); /xsl:for-each /xsp:logic /xsl:template results Java file main_xml.java EcommerceTaglib.storeItem("mid", this.characters("main"); -- this is the problem!!! , false, store); EcommerceTaglib.storeItem("internal_link_count", this.characters("\n "); -- where do the empty lines come from?! ( /* begin of ecommerce:get-link-count */ String.valueOf(EcommerceTaglib.getLinkCount()) /* end of ecommerce:get-link-count */ ) this.characters("\n "); , false, store); When we transform it (using our ecommerce.xsl and Cocoon2.0.3 xsp.xsl) manually using the Saxon transformer, we get: EcommerceTaglib.storeItem("mid", "main", false, store); EcommerceTaglib.storeItem("internal_link_count", ( /* begin of ecommerce:get-link-count */ String.valueOf(EcommerceTaglib.getLinkCount()) /* end of ecommerce:get-link-count */ ) ,false, store); what is exactly what we expected. This pages used to work well in Cocoon1.8. Does anyone know, why do we get ... this.characters() ... on argument to the logicsheet function EcommerceTaglib.storeItem when compiled by Cocoon 2.0.3 and we do NOT get that problem when we use Cocoon 1.8 or perform the transformation manualy with ecommerce.xsl and then with xsp.xsl. Thank you, Roman
Authenication FW: Protecting multiple resources
Hello, I'm still struggling with trying to protect multiple resources using authentication framework. I've modified the sitemap in the authentication-fw sample to use wildcard match (see the examples below), but either I'm not using it correctly, or there is a bug in the framework. !-- -- !-- Protected area -- !-- -- map:match pattern=* map:act type=auth-protect map:parameter name=handler value=demohandler/ map:generate src=docs/{1}.xml/ map:transform src=stylesheets/simple-page2html.xsl/ map:transform type=encodeURL/ map:serialize/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=login/ /map:match !-- = -- !-- Form target which performs auth service -- !-- = -- map:match pattern=do-login !-- try to login -- map:act type=auth-login map:parameter name=handler value=demohandler/ map:parameter name=parameter_name value={request-param:username}/ !-- ? -- !-- This is what I think it should be -- !-- ? -- map:redirect-to uri=context://{request-param:resource}/ /map:act !-- something was wrong, try it again -- map:redirect-to uri=login/ /map:match However, when I click on protected link, rather than being re-directed to http://localhost:8080/cocoon/samples/authentication-fw/protected I get a re-direct to http://localhost:8080/cocoon/samples/authentication-fw/do-login. Is this not how the resource parameter was intended to be used? Thanks, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using matchers, especially sessionstate...
Hello all! i have some troubles using the sessionstate matcher in a pipeline. I want to check for the existance of a session attribute, and when it doesn't exist we should be redirected to a login page: But i got lots of errors when i call want to use this pipeline... map:pipeline map:match pattern=* type=sessionstate map:parameter name=attribute-name value=user/ map:redirect uri=login/login.xml/ /map:match map:match pattern=**/*.css map:read src=css/{2}.css mime-type=text/css/ /map:match map:match pattern=images/**.* map:read src=images/{1}.{2} mime-type=image/{2}/ /map:match map:match pattern=**/*.js map:read src=jscript/{2}.js mime-type=text/javascript/ /map:match map:match pattern=applets/** map:read src=applets/{1} mime-type=application/octet-stream/ /map:match map:match pattern=*/** map:mount uri-prefix={1} src={1}/ check-reload=yes/ /map:match /map:pipeline thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20203/pgp0.pgp Description: PGP signature
No more DTM IDs are available
during the execution of my xsp page with logicsheets I get the DTMException No more DTM IDs are available how can i prevent this error? Peter Smink Osirion b.v. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameters for Actions
Thank you Bruno for these informations. I tried to put init parameters in the web.xml like this : init-param param-namesrvImpDirName/param-name param-valuewebapps/cocoon/samples/srvimp/content/xml//param-value /init-param ...and to read it in Action like this : dirName = ObjectModelHelper.getContext(objectModel).getInitParameter(srvImpDirName); but my result is 'null'. An idea ? Ludovic - Original Message - From: Bruno Dumon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 06, 2002 1:47 PM Subject: Re: Parameters for Actions On Wed, 2002-11-06 at 11:50, Ludovic de Beaurepaire wrote: Hi All, I don't find in documentation how to pass to an Action some parameters defined in one of the configuration files (web.xml, cocoon.xconf or sitemap.xmap). Someone knows ? the parameters given in the sitemap to the action, such as in: map:act type=myaction map:parameter name=foo value=bar/ /map:act are passed as a par argument in the act method of the Action. Parameters (or actually configurations) defined in de cocoon.xconf can't be read directly by actions, since those are used to configure specific components to which those configurations map (via the roles file, see the avalon documentation for how that works). Init parameters declared in the web.xml should be accessible through the standard servlet interfaces, thus in your action you would do something like: ObjectModelHelper.getContext(objectModel).getInitParameter(myparam) (objectModel is an argument supplied in the act method) Configuration for the action specified inside the component declaration in the map:actions element, such as in: map:components map:actions map:action name=foo src=com.bar.FooAction myparamhello/myparam /map:action /map:actions /map:components are accessible by implementing the Configurable interface (from Avalon) in your Action. (this is again described in the Avalon documentation) -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using matchers, especially sessionstate...
Hello again! i have tried to setup the pipeline another way and lokked at the compiled sitemap java code. it seems that the java code generated is far away from being complete... are the sessionstate matcher code for the sitemap broken in cocoon 2.0.1? if so, can i change only the sessionstate code parts to avoid migrating the whole application to a newer cocoon version? thx, Chris btw: sitemap and compiled sitemap attached for interest... On Wed, Nov 06, 2002 at 02:52:15PM +0100, Christian Joelly wrote: i have some troubles using the sessionstate matcher in a pipeline. I want to check for the existance of a session attribute, and when it doesn't exist we should be redirected to a login page: But i got lots of errors when i call want to use this pipeline... map:pipeline map:match pattern=* type=sessionstate map:parameter name=attribute-name value=user/ map:redirect uri=login/login.xml/ /map:match map:match pattern=**/*.css map:read src=css/{2}.css mime-type=text/css/ /map:match map:match pattern=images/**.* map:read src=images/{1}.{2} mime-type=image/{2}/ /map:match map:match pattern=**/*.js map:read src=jscript/{2}.js mime-type=text/javascript/ /map:match map:match pattern=applets/** map:read src=applets/{1} mime-type=application/octet-stream/ /map:match map:match pattern=*/** map:mount uri-prefix={1} src={1}/ check-reload=yes/ /map:match /map:pipeline -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- This is the 'heart' of Cocoon. The sitemap maps URI space to resources. It consists basicly of two parts: components and pipelines. Pipelines are made out of components. There is such a vast number of components available that it would be impossible to describe them here, please refer to the accompanying documentation. For specific components, have a look also at the javadocs for them. Most pipelines are present to demonstrate some feature or technique, often they are explained in more detail in the accompanying documentation. There are some other, less important parts that deal with resources, views and action sets. For now, ignore them. -- !-- === Components -- map:components !-- All pipelines consist at least of two components: a generator, that produces the content and a serialiser, that delivers the content to the client. More precisely: a generator generates SAX events and a serializer consumes these events and produces a character stream. Some things to note here: each generator has a unique name, this name is mapped to a java class, one name is declared as default generator. In addition each generator may have additional configurations as child elements. Additional attributes are targeted at the component manager. The optional label attribute is relevant for the view concept below. It is possible to have the same java class declared as different generators by using different names. No configuration options are shared between these instances, however. All components follow this schema. -- map:generators default=file map:generator name=filesrc=org.apache.cocoon.generation.FileGenerator label=content pool-max=32 pool-min=16 pool-grow=4/ map:generator name=directory src=org.apache.cocoon.generation.DirectoryGenerator label=content/ map:generator name=imagedirectory src=org.apache.cocoon.generation.ImageDirectoryGenerator label=content/ map:generator name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator label=content/ map:generator name=request src=org.apache.cocoon.generation.RequestGenerator/ map:generator name=status src=org.apache.cocoon.generation.StatusGenerator/ map:generator name=extractor
Unicode(cyrilic) indexing/searching using SimpleLuceneCocoonIndexer
hi allI have troubles using "search" example that comes with cocoon2 war file.The example works fine but I can't find information about using it when =indexing non-latin xml content. If anyone can help me with advise what I =could do to make available cyrilic indexing/searching I would appreciate =it very much.=20Best regards/Pozdravi,..Pavel Natovmailto:[EMAIL PROTECTED] Best regards/Pozdravi, ..Pavel NatovSystems DeveloperBIANOR5 Stratsin Str.1407 Sofia, BulgariaMobile: (+359 87) 658 049Switchboard: (+359 2) 962 4564, (+359 2) 962 4574Fax: (+359 2) 962 4416mailto:[EMAIL PROTECTED]http://www.bianor.com..
Re: No more DTM IDs are available
Take a look at: http://www.mail-archive.com/cocoon-users;xml.apache.org/msg19907.html --- Peter Smink [EMAIL PROTECTED] wrote: during the execution of my xsp page with logicsheets I get the DTMException No more DTM IDs are available how can i prevent this error? Peter Smink Osirion b.v. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[final reminder] Cocoon GetTogether (19 Nov) registration closing
Hi all, just a final reminder: registrations for the Cocoon GetTogether on the 19th November will be closing next week. The GetTogether is held in Nazareth, near Ghent in Belgium. Apache Cocoon is an XML publishing framework that raises the usage of XML and XSLT technologies for server applications to a new level. Designed for performance and scalability around pipelined SAX processing, Cocoon offers a flexible environment based on a separation of concerns between content, logic, and style. To top this all off, Cocoon's centralized configuration system and sophisticated caching help you to create, deploy, and maintain rock-solid XML server applications. You'll find all pertinent information about the event at http://outerthought.org/cocoon/gettogether/ Already, more than 80 people have registered, so if you are interested to meet and greet fellow Cocoon users or developers, this event is a must-attend. Besides, this event is free thanks to the kind sponsorship of SN AG, X-Hive, Hippo WebWorks and Outerthought. Note to Apachecon attendees: the coincidence with the Apachecon dates is entirely incidental. /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using matchers, especially sessionstate...
Hello again! i have tried to setup the pipeline another way and lokked at the compiled sitemap java code. it seems that the java code generated is far away from being complete... are the sessionstate matcher code for the sitemap broken in cocoon 2.0.1? if so, can i change only the sessionstate code parts to avoid migrating the whole application to a newer cocoon version? thx, Chris btw: sitemap and compiled sitemap attached for interest... bbtw: compiled sitemap not fully attached because listadmin tells me the posting is too big... ;-( -snip //line numbers not supported with xalan// method for handling * private final boolean matchN101AC(SitemapRedirector redirector, Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline, boolean internalRequest, List listOfMaps) throws ConnectionResetException, ResourceNotFoundException, Exception { Map map; Parameters param; Map objectModel = environment.getObjectModel(); String cocoon_view = environment.getView(); String cocoon_action = environment.getAction(); final boolean debug_enabled = getLogger().isDebugEnabled(); if ((map = matches(wildcard, matcher_N101AC_expr, *, Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug(Matched wildcard pattern *); listOfMaps.add (map); this.dumpParameters(listOfMaps); param = new Parameters (); param.setParameter (attribute-name, user); // handling * * if ((map = matches(sessionstate, matcher_N101AF_expr, *, param, objectModel)) != null) { if (debug_enabled) getLogger().debug(Matched sessionstate pattern *); listOfMaps.add (map); this.dumpParameters(listOfMaps); // handling **/*.css if ((map = matches(wildcard, matcher_N101B7_expr, **/*.css, Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug(Matched wildcard pattern **/*.css); listOfMaps.add (map); this.dumpParameters(listOfMaps); getLogger().debug(Component reader:resource(Parameters.EMPTY_PARAMETERS)); if (debug_enabled) getLogger().debug(Source= + substitute(listOfMaps, css/{2}.css)); getLogger().debug(Mime-type= text/css); pipeline.setReader (resource, substitute(listOfMaps, css/{2}.css), Parameters.EMPTY_PARAMETERS, text/css); if (!internalRequest) { return pipeline.process(environment); } if (true) return true; listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } // handling images/**.* if ((map = matches(wildcard, matcher_N101BF_expr, images/**.*, Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug(Matched wildcard pattern images/**.*); listOfMaps.add (map); this.dumpParameters(listOfMaps); getLogger().debug(Component reader:resource(Parameters.EMPTY_PARAMETERS)); if (debug_enabled) getLogger().debug(Source= + substitute(listOfMaps, images/{1}.{2})); getLogger().debug(Mime-type= image/{2}); pipeline.setReader (resource, substitute(listOfMaps, images/{1}.{2}), Parameters.EMPTY_PARAMETERS, image/{2}); if (!internalRequest) { return pipeline.process(environment); } if (true) return true; listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } // handling **/*.js if ((map = matches(wildcard, matcher_N101C7_expr, **/*.js, Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug(Matched wildcard pattern **/*.js); listOfMaps.add (map); this.dumpParameters(listOfMaps); getLogger().debug(Component reader:resource(Parameters.EMPTY_PARAMETERS)); if (debug_enabled) getLogger().debug(Source= + substitute(listOfMaps, jscript/{2}.js)); getLogger().debug(Mime-type= text/javascript); pipeline.setReader (resource, substitute(listOfMaps, jscript/{2}.js), Parameters.EMPTY_PARAMETERS, text/javascript); if (!internalRequest) { return pipeline.process(environment); } if
Re: Build Fail ?
Yes. This is a new constructor in j2sdk 1.4.x. While you can craft around it, the easiest is to upgrade to j2sdk 1.4.x. /mde/ just my two cents . . . . --- sandhu@terra-firma [EMAIL PROTECTED] wrote: Anyone experiencing same ? Since yesterday's CVS , building as thus : build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp I get this : [javac] Compiling 110 source files to C:\xml-cocoon2\build\cocoon\scratchpad \classes [javac] C:\xml-cocoon2\build\cocoon\scratchpad\src\org\apache\cocoon\ant\Del ayedFileOutputStream.java:105: cannot resolve symbol [javac] symbol : constructor FileOutputStream (java.io.File,boolean) [javac] location: class java.io.FileOutputStream [javac] fos = new FileOutputStream(file, append); [javac] ^ [javac] Note: Some input files use or override a deprecated API. __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what does this mean?
I am using cocoon-CVS from Nov 4, and applied patch for this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247 because I was getting errors from the SVGSerializer about closed output streams. I no longer get those errors, but now I get this: org.apache.cocoon.ProcessingException: Could not read resource file:/C:/Sun/AppServer7/domains/domain1/server1/applications/j2ee-module s/cocoon_1/buisnessCard/buisCard_copy.xml: javax.xml.transform.TransformerException: org.apache.xalan.xsltc.TransletException: java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1 50) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:273) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:483) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( SerializeNode.java:149) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i nvoke(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( PipelinesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:595) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1069) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(Stand ardWrapperValve.java:720) at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapper Valve.java:118) at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve .java:278) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:274) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 05) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 05) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 05) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcesso r.java:157) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598) Caused by: javax.xml.transform.TransformerException: org.apache.xalan.xsltc.TransletException: java.lang.ArrayIndexOutOfBoundsException at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja va:639) at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja va:201) at org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endDocument(Transform erHandlerImpl.java:205) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:9 1) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransfo rmer.java:608) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParse r.java:741) at org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder .java:705) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScann erImpl.java:451) at org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java: 1246) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityMana ger.java:3283) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEnti tyManager.java:2982) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dis patch(XMLDocumentScannerImpl.java:1017) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 25) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 81) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at
Re: what does this mean?
Hello Kyle, this has nothing to do with SVG anymore. XSLTC raises a TransformerException. Either you have a bug in a XSLT in your pipeline or a bug in XSLTC. Try to use Xalan instead of XSLTC. Regards, Joerg Kyle Koss wrote: I am using cocoon-CVS from Nov 4, and applied patch for this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247 because I was getting errors from the SVGSerializer about closed output streams. I no longer get those errors, but now I get this: org.apache.cocoon.ProcessingException: Could not read resource file:/C:/Sun/AppServer7/domains/domain1/server1/applications/j2ee-module s/cocoon_1/buisnessCard/buisCard_copy.xml: javax.xml.transform.TransformerException: org.apache.xalan.xsltc.TransletException: java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1 50) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:273) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:483) stacktrace snipped/ What do I do now? Please help, Kyle Koss P.S. (server: SunOne app server 7.0, jdk1.4, WinXP) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: what does this mean?
Thanks Joerg, that helped, but now I get this: ERROR (2002-11-06) 13:51.26:291 [sitemap] (/cocoon/buisCard_copy.htm) service-j2ee/SVGSerializer: SVGSerializer: Exception writing image java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.j ava:136) at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream. java:105) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112) at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java: 275) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) ERROR (2002-11-06) 13:51.26:291 [sitemap] (/cocoon/buisCard_copy.htm) service-j2ee/SVGBuilder: SVGBuilder: endDocument java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java: 279) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) FATAL_E (2002-11-06) 13:51.26:311 [core.xslt-processor] (/cocoon/buisCard_copy.htm) service-j2ee/TraxErrorHandler: Error in TraxTransformer: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1226) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:137) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) ... 2 more - java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:137) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) - java.lang.ArrayIndexOutOfBoundsException at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java: 279) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) - java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.j ava:136) at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream. java:105) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112) at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java: 275) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan dler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) What now? Kyle Koss -Original Message- From: Joerg Heinicke [mailto:joerg.heinicke;gmx.de] Sent: November 6, 2002 1:02 PM To: [EMAIL PROTECTED] Subject: Re: what does this mean? Hello Kyle, this has nothing to do with SVG anymore. XSLTC raises a TransformerException. Either you have a bug in a XSLT in your pipeline or a bug in XSLTC. Try to use Xalan instead of XSLTC. Regards, Joerg Kyle Koss wrote: I am using cocoon-CVS from Nov 4, and applied patch for this
re. ISP Cocoon hosting
Hi all, I've just read this on http://outerthought.net/wiki/Wiki.jsp?page=UnderstandingCocoonMounts It also provides a fairly clean way to package a Cocoon application for sharing with others: create a directory complete with sitemap.xmap, cocoon.xconf if required, and all additional supporting files. This package can then be passed on to others who can install it by simply unpacking it into their file-system and adding the appropriate mount elements into their root sitemap (or one of it's sub-sitemaps). In this way, a service provider can also choose to host Cocoon applications for others. Question: I believe it is possible using the cocoon:/ protocol to access any pipeline in the whole cocoon space (not just the current sitemap); including those marked internal-only=true. Am I correct in this? If so, would there not be security issues with such a 'shared' arrangement say hosted by an ISP? Cheers, Mark Leicester. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Poor performance of document() in XSL [Was: Re: simpel cocoon question]
I say, document() is good for rapid prototyping, but is a poor choice for final deployment for performance reasons. Use aggregation instead. The Cocoon developers recommend to use aggregation or xinclude because of SoC (XSLT is for transforming, not for aggregating content). Sure, but I have a big lookup table in an xml file--it seems much more natural to reference the lookup table from xslt using document rather than to jam it into my content stream --Steve - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Native XML Database Manipulation
Hi I'm storing XML documents in Xindice (Apaches Native XML Database). I want to apply various XSLT style-sheets to the data contained in the database and then have the resulting output placed in a specific directory. How best do I apply Cocoon for this purpose?Get a bigger mailbox -- choose a size that fits your needs.
getting CacheValidity object for existing CachedEventPipeline
I'm writing a Cacheable Generator. The Cache Validity is dependant on the state of several objects. I need to work out which object these are based on the request. On the first request, I discover what these objects are, and store these on the CacheValidity object. To save myself from finding these objects each time I check validity, I wish to get access to the existing CacheValidity object. This way I will know what objects I need to check for validity and save myself that extra work each request. Could anyone tell me how I can get access to the CacheValidity, given that I can call generateKey() to give me the key for the lookup. Thanks, Mooch. DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
Reinhard Poetz wrote: Ivelin, I created a new main point in the left menu and called it Cocoon compared. wiki-polizei In order to keep the left Wiki menu as small as possible, I 'moved' the comparison page (which I like) underneath 'Links' /wiki-polizei Hope you don't mind... /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging into a user-defined category
Hi! I have written an XSP page and want to log into a specified target (category). I can log into the category 'sitemap.generator.serverpages.xxx' by using getLogger().getChildLogger(xxx); Is it possible to log into a lower level category (e.g. into category 'xxx')? Felix -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Actions - Help
Hi, I am trying to implement the following simple action: - The URL ...cocoon/learn/hello?language=english should invoke an action called HelloWorldAction. - HelloWorldAction plugs in the a new parameter greeting, whose value is the word for 'Hello' in the language specified. - Upon success, the user is redirected to ...cocoon/xsp/helloWorld.xsp. - helloWorld.xsp will print out something like 'The english greet you with a hello'. The trouble is, the actions *seems* to get invoked (the success branch redirect is happening), but - none of the log statements get printed (I am looking at core.log) - the parameters langauge and greet are not passed on to helloWorld.xsp. Here are my sources: 1. Sitemap: map:components ... map:actions map:action name=hello-action src=learn.HelloWorldAction/ /map:actions /map:components ... map:match pattern=hello* map:act type=hello-action map:parameter name=parameters value=true/ map:parameter name=language value={language}/ map:redirect-to uri=xsp/helloWorld.xsp?language={language}amp;greeting={greeting}/ /map:act map:redirect-to uri=index.html/ /map:match 2. act method in HelloWorldAction.java public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par) { String language = par.getParameter(language, English); this.getLogger().fatalError(* GET LANGUAGE = + language); String greet = null; if (language == null || language.equalsIgnoreCase()) { language = Tamil; greet = vaNakkaM; } else { if (language.equalsIgnoreCase(ENGLISH)) { greet = Hello; } if (language.equalsIgnoreCase(TELUGU)) { greet = giDigiDi; } if (language.equalsIgnoreCase(HINDI)) { greet = Namaste; } } this.getLogger().fatalError(* SET LANGUAGE = + language); this.getLogger().fatalError(* SET GREETING = + greet); Map map = new HashMap(1); map.put(greeting, greet); return map; } 3. helloWorld.xsp (I know this is fine, I can invoke it directly with the parameters and it shows up correctly) ?xml version=1.0 encoding=UTF-8? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:request=http://apache.org/xsp/request/2.0; page titleLanguage Primer/title content para The xsp:exprrequest.getParameter(language)/xsp:expr greet you with a xsp:exprrequest.getParameter(greeting)/xsp:expr. /para /content /page /xsp:page What am I doing wrong? Thanks for any and all help, Sreedhar winmail.dat- Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
[EMAIL PROTECTED] wrote: Steven has moved it to Links'. Thank you - I overlooked the already existing point at the links page. oops - you found out already ;-) /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Poor performance of document() in XSL [Was: Re: simpel cocoonquestion]
Stephen Ng wrote: The Cocoon developers recommend to use aggregation or xinclude because of SoC (XSLT is for transforming, not for aggregating content). Sure, but I have a big lookup table in an xml file--it seems much more natural to reference the lookup table from xslt using document rather than to jam it into my content stream I don't mind this, slug it out with the list gurus. I personally like document() too for certain purposes, one being lookup tables, another one being importing boilerplate determined dynamically by input XML data. In Cocoon, the latter requires a three stage pipeline: transformation into an intermediate XML with XIncludes, the XInclude step, the final transformation. Unfortunately, the cache issue and the 2.0.2 problem with getting null resolvers which may or may be not fully fixed in 2.0.3 prevents using document() for many sensible applications. J.Pietschmann - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simpel cocoon question
Thanks for the hints, aggregation is the way to go for sure, but im still facing a problem Basicly what im looking for is how to (fastest possible way) do to a project (relational algebra) operation on a long list of relations in xsl. Im not sure this should be done in xsl perhaps I need a custom transformer anyway Let's say I have this document all view name=economy columns measure name=economy_estimate/ measure name=economy_actual/ measure name=responsible/ /columns /view projects project measure name=responsible kav /measure measure name=economy_actual991233/measure measure name=economy_estimate881123/measure measure name=schedule_actual123/measure measure name=schedule_estimate823/measure /project project measure name=responsible pjc /measure measure name=economy_actual77123123/measure measure name=economy_estimate44123123/measure measure name=schedule_actual723/measure measure name=schedule_estimate923/measure /project . 100's of other projects /projects /all how do I transform this document into something like this: The order between measures is as defined in the view part, ie (estimate before actual) before responsible projects project measure name=economy_estimate881123/measure measure name=economy_actual991233/measure measure name=responsible kav /measure /project project measure name=economy_estimate44123123/measure measure name=economy_actual77123123/measure measure name=responsible pjc /measure /project /projects regards Kasper - Original Message - From: Kasper Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 2:27 PM Subject: simpel cocoon question Just started using Cocoon and I have a rather simple question: Lets say i have a document with all my data (projects.xml) projects project id=A1 name RailwayTrack DF/name responsible kni /responsible economy_actual123/economy_actual economy_estimate456/economy_estimate schedule_estimate789/economy_estimate /project project id=B4 name Digital Transmission /name responsible pjc /responsible economy_actual987/economy_actual economy_estimate654/economy_estimate schedule_estimate321/economy_estimate /project /projects And i also have a definition of some views of the data (views.xml) views view name=estimate columns measure name=schedule_estimate/ measure name=economy_estimate/ /columns /view view name=overview columns measure name=name/ measure name=responsible/ /columns /view /views Now I want to given the name of the view, lets say estimate to combine it into another xml document, that is extract only the data mentioned in the view, in this case it would be the schedule_estimate column and the economy_estimate column The resulting document should look something like this table columndefs columndef column-nameschedule_estimate/column-name /columndef columndef column-nameeconomy_estimate/column-name /columndef /columndefs tabledata row entry456/entry entry789/entry /row row entry654/entry entry321/entry /row /tabledata /table Can I merge 2 documents in that way with xslt? Or do I need a custom transformer? regards Kasper Nielsen - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alterative to Chiba Xforms formbuilder
Hi All The main reason for this mail is i want to implement a template based xml document creation. The scenario is there is a admin who create template to capture data and to generate xml document. The admin should have the flexiblity to build the form without any coding. The user then use the template which was created by the admin to generate xml document. I found Chiba (http://chiba.sourceforge.org) doing the same, but one problem is the performance issue. It take more memory and very slow. Anyone know any tool similar to this or is there any way to create such an environment Thanks in advance Regards Sreenivasan. Attitudes are much more important than aptitudes. Nothing is impossible for a willing heart Sreenivasan N. Sony SARD Ext 5816 Email. [EMAIL PROTECTED] Per: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]