[HELP] What's wrong?
All of a sudden cocoon can't find my transformer and gives the next error message: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: store Here are the critical parts of my sitemap: ... map:transformers default=xslt map:transformer name=store src=org.apache.cocoon.transformation.StoreTransformer/ /map:transformers ... map:match pattern=Transform map:act type=request map:parameter name=parameters value=true/ map:generate src={xmlu}/ map:transform src={xslu} map:parameter name=use-request-parameters value=true/ /map:transform map:transform type=store/ map:serialize type=xml/ /map:act /map:match Could anyone tell what's wrong? Thanks! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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]
AW: [HELP] What's wrong?
are you sure that org.apache.cocoon.transformation is the correct package path of your Transformer? If so, check if the Transformer is contained in webapps/cocoon/WEB-INF/lib/cocoon.jar. However I would recommend to use a specific package path for your own components, generate also your specific jar file containing your Transformer class file and put it into webapps/cocoon/WEB-INF/lib/cocoon.jar. -Ursprüngliche Nachricht- Von: simo kauranen [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 16. Oktober 2002 08:34 An: [EMAIL PROTECTED] Betreff: [HELP] What's wrong? All of a sudden cocoon can't find my transformer and gives the next error message: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: store Here are the critical parts of my sitemap: ... map:transformers default=xslt map:transformer name=store src=org.apache.cocoon.transformation.StoreTransformer/ /map:transformers ... map:match pattern=Transform map:act type=request map:parameter name=parameters value=true/ map:generate src={xmlu}/ map:transform src={xslu} map:parameter name=use-request-parameters value=true/ /map:transform map:transform type=store/ map:serialize type=xml/ /map:act /map:match Could anyone tell what's wrong? Thanks! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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] - 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: AW: [HELP] What's wrong?
As a matter of fact cocoon finds my transformer (which I have written myself and which is placed in WEB-INF/classes/org/apache/cocoon/transformation) in the components element, otherwise it would throw ClassNotFoundException. The problem is that cocoon don't understand my call for StoreTransformer inside the map:match element. I got it working for a while but after I tried to give the transformer user parameters it got stuck. I tried to reset the sitemap in a working state but obviously I made some changes I can't recall. I really wonder the snippets below are just by the book. --- Sternath Elmar [EMAIL PROTECTED] wrote: are you sure that org.apache.cocoon.transformation is the correct package path of your Transformer? If so, check if the Transformer is contained in webapps/cocoon/WEB-INF/lib/cocoon.jar. However I would recommend to use a specific package path for your own components, generate also your specific jar file containing your Transformer class file and put it into webapps/cocoon/WEB-INF/lib/cocoon.jar. -Ursprüngliche Nachricht- Von: simo kauranen [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 16. Oktober 2002 08:34 An: [EMAIL PROTECTED] Betreff: [HELP] What's wrong? All of a sudden cocoon can't find my transformer and gives the next error message: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: store Here are the critical parts of my sitemap: ... map:transformers default=xslt map:transformer name=store src=org.apache.cocoon.transformation.StoreTransformer/ /map:transformers ... map:match pattern=Transform map:act type=request map:parameter name=parameters value=true/ map:generate src={xmlu}/ map:transform src={xslu} map:parameter name=use-request-parameters value=true/ /map:transform map:transform type=store/ map:serialize type=xml/ /map:act /map:match Could anyone tell what's wrong? Thanks! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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] - 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] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.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]
Re: PosgreSQL and Modular DB Actions.
On 15.Oct.2002 -- 07:26 PM, Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ I got it to work with Sybase. Above, the mode name=auto, by default is configured in cocoon/WEB_INF/cocoon.xconf as org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. I had to add a description for the ManualAutoIncrementModule. Bobby, could you spare the time and try to come up with an AutoIncrementModule for Sybase? It should be fairly easy to adopt one of the other ones to Sybase. That would be really great! Coincidently, I have just received such a module for PostgreSQL :-) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: How to insert multiple rows in a table at once?
On 15.Oct.2002 -- 08:05 PM, Tuomo Lesonen wrote: In your sitemap inside map:actions put: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptorcontext://foo/bar/database.xml/descriptor throw-exceptiontrue/throw-exception /map:action In pipeline: map:act type=mod-db-add map:parameter name=table-set value=some_table_set / /map:act In database.xml put: table name=foo keys key name=my_sub_id type=int autoincrement=true primarykey=true @primarykey is not known to the DatabaseActions. It does no harm either. The @set stuff is explained in the Cocoon docs. The mod-db example uses it as well. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: PosgreSQL and Modular DB Actions.
Can you send me the PostgreSQL module Christian? Antonio Gallardo El Miércoles, 16 de Octubre de 2002 01:47, Christian Haul escribió: On 15.Oct.2002 -- 07:26 PM, Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ I got it to work with Sybase. Above, the mode name=auto, by default is configured in cocoon/WEB_INF/cocoon.xconf as org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementMo dule. I had to add a description for the ManualAutoIncrementModule. Bobby, could you spare the time and try to come up with an AutoIncrementModule for Sybase? It should be fairly easy to adopt one of the other ones to Sybase. That would be really great! Coincidently, I have just received such a module for PostgreSQL :-) Chris. - 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: Proposal: Documentation about database connection
I think this is fine. What about to make it in Wiki? Antonio Gallardo El Martes, 15 de Octubre de 2002 23:40, Gabriele Domenichini escribió: What about setting up a page with the configurations needed to connect cocoon to the various database ? There is already something but is distributed among web pages, cocoon official documentation, mailing lists, etc... I was thinking about a page in which for any commercial or open source databases is written: * where to find jdbc drivers * how to modify the configuration filles * notes about personal experiences Example: Oracle: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following Notes:.. IBM As400: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following I could do it for theese database and the ideal page is on cocoon wiky. If you give me suggestion on where to put it and the mailing list can contribute I can start the page - 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: Proposal: Documentation about database connection
This is great, I can provide the part for Tamino 3.1, XML native DB. However, I would need to host a small zip file somewhere, since the officially released jar is not ok for now... A colleague modified the classes for it to work with Cocoon. Within some months changes are expected : version 4.1 of Tamino will be issued in December so I don't know about the driver's usability Unfortunately I leave the company the same month (end of internship, looking for a first job... I live in Paris, France) so won't be able to help more afterwards. Official link will be provided in what I have to prepare to post :-) and whic will then only be a summary. Idea for my page's name : Tamino31; Let me know when I can link it and where :-) - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 10:09 AM Subject: Re: Proposal: Documentation about database connection I think this is fine. What about to make it in Wiki? Antonio Gallardo El Martes, 15 de Octubre de 2002 23:40, Gabriele Domenichini escribió: What about setting up a page with the configurations needed to connect cocoon to the various database ? There is already something but is distributed among web pages, cocoon official documentation, mailing lists, etc... I was thinking about a page in which for any commercial or open source databases is written: * where to find jdbc drivers * how to modify the configuration filles * notes about personal experiences Example: Oracle: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following Notes:.. IBM As400: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following I could do it for theese database and the ideal page is on cocoon wiky. If you give me suggestion on where to put it and the mailing list can contribute I can start the page - 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] - 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]
Cocoon components list
Hello, I have just finished to read the Carsten and Matthew Cocoon book. I recommend this book to all of the persons who want to start in Cocoon. In the book there is a part that is very useful for Cocoon users (I think): the Cocoon components list (Appendix A). But the book lists the components that we are most likely using but there are not all components! Are there somewhere a complete list of all the components (with the Cocoon version which include the component)?? Thank you Sylvain - 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]
Coocon Error Handling
In cocoon we have this tag to show the error message map:handle-errors map:transform src=../stylesheets/system/error2html.xsl/ map:serialize status-code=500/ /map:handle-errors But I want to customize the error messages...and I want to display the message according to the the exception catch...in coocn there is only stylesheet ,it displaying exception as it is So How to cature the Exception object in stylesheet and show the message??? Thanks - 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]
Request parameters in a cocoon:/
When you call a cocoon:/ from your pipeline, the sitemap calls itself. But inside this new call, you lose the initial request parameters. Is there a way to set new request-parameters for the cocoon:/ call? Or keep the intial request parameters when the sitemap calls itself? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: [newbie] wml serializer
Zein Dowe wrote: I got this one in my Sitemap: map:serializer logger=sitemap.serializer.wml mime-type=text/vnd.wap.wml name=wml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype-system encodingASCII/encoding Did you try 'US-ASCII'? omit-xml-declarationyes/omit-xml-declaration /map:serializer -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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]
Caching Problem
Hi, I got a problem when calling a pipeline with the cocoon:/ protocol. I always get a cached xml response instead of the updated content. I turned the pipeline component configuration to noncaching but it does not seems to work. Here is the snippet from my sitemap. map:pipeline map:match pattern=save-post-as-xml.xml map:generate type=serverpages src=list/xsp/get-post-as-xml.xsp/ map:transform src=list/xsl/get-xsp-page.xsl / map:serialize type=xml/ /map:match /map:pipeline map:pipeline map:match pattern=save-post-as-xml.html map:generate type=serverpages src=cocoon:/save-post-as-xml.xml/ map:serialize type=xml/ /map:match /map:pipeline Any hints appreciated! TIA, Johann - 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]
[SUMMARY] Exception object in handle-errors? Re: Coocon Error Handling
Murari wrote: In cocoon we have this tag to show the error message map:handle-errors map:transform src=../stylesheets/system/error2html.xsl/ map:serialize status-code=500/ /map:handle-errors But I want to customize the error messages...and I want to display the message according to the the exception catch...in coocn there is only stylesheet ,it displaying exception as it is So How to cature the Exception object in stylesheet and show the message??? In handle-errors/ Cocoon places in the Context the Notifying Object that was created from the Exception. NotifyingGenerator (the default one) does it like this: notification = (Notifying)objectModel.get(Constants.NOTIFYING_OBJECT); So you can use this object in an Action for example, or other Cocoon components, to make the selection. Or simply make a stylesheet that uses xsl:choose to show the appropriate message. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: [SUMMARY] Exception object in handle-errors? Re: Coocon Error Handling
Hello, I m not able to get that object in action...can u tell me how will I get this object in XSP and how will I call get and set method on that. -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 6:28 PM To: [EMAIL PROTECTED] Subject: [SUMMARY] Exception object in handle-errors? Re: Coocon Error Handling Murari wrote: In cocoon we have this tag to show the error message map:handle-errors map:transform src=../stylesheets/system/error2html.xsl/ map:serialize status-code=500/ /map:handle-errors But I want to customize the error messages...and I want to display the message according to the the exception catch...in coocn there is only stylesheet ,it displaying exception as it is So How to cature the Exception object in stylesheet and show the message??? In handle-errors/ Cocoon places in the Context the Notifying Object that was created from the Exception. NotifyingGenerator (the default one) does it like this: notification = (Notifying)objectModel.get(Constants.NOTIFYING_OBJECT); So you can use this object in an Action for example, or other Cocoon components, to make the selection. Or simply make a stylesheet that uses xsl:choose to show the appropriate message. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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]
XLS serializer and non-english characters
Hello folks! Can I use non-english characters in xls document (dynamically generated by HSSFSerializer)? I'm trying the following configuration: map:serializer name=xls src=org.apache.cocoon.serialization.HSSFSerializer mime-type=application/vnd.ms-excel encodingKOI8-R/encoding /map:serializer but it doesn't work :((( I have the following symbols (C8=3 2 #:@08=0) in document instead russian text :((( Can anyone help me? Thanks. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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: XLS serializer and non-english characters
There is a minor problem I have not had time to correct yet. encoding is an attribute, but if its set the serializer should check that its non-us/uk/aus and in that case set encoding to 16-bit. However currently it just assumes 8-bit. I'm under a mountain of to-dos but thats at the top of my cocoon list. -Andy On Wed, 2002-10-16 at 07:10, Yury Mikhienko wrote: Hello folks! Can I use non-english characters in xls document (dynamically generated by HSSFSerializer)? I'm trying the following configuration: map:serializer name=xls src=org.apache.cocoon.serialization.HSSFSerializer mime-type=application/vnd.ms-excel encodingKOI8-R/encoding /map:serializer but it doesn't work :((( I have the following symbols (C8=3 2 #:@08=0) in document instead russian text :((( Can anyone help me? Thanks. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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] -- http://www.superlinksoftware.com - software solutions for business http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in Java http://krysalis.sourceforge.net/centipede - the best build/project structure a guy/gal could have! - Make Ant simple on complex Projects! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh - 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: PosgreSQL and Modular DB Actions.
Sure, I can work on that. Christian Haul wrote: On 15.Oct.2002 -- 07:26 PM, Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ I got it to work with Sybase. Above, the mode name=auto, by default is configured in cocoon/WEB_INF/cocoon.xconf as org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. I had to add a description for the ManualAutoIncrementModule. Bobby, could you spare the time and try to come up with an AutoIncrementModule for Sybase? It should be fairly easy to adopt one of the other ones to Sybase. That would be really great! Coincidently, I have just received such a module for PostgreSQL :-) Chris. -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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: XLS serializer and non-english characters
On 16 Oct 2002 07:16:29 -0400 Andrew C. Oliver [EMAIL PROTECTED] wrote: There is a minor problem I have not had time to correct yet. encoding is an attribute, but if its set the serializer should check that its non-us/uk/aus and in that case set encoding to 16-bit. However currently it just assumes 8-bit. I'm under a mountain of to-dos but thats at the top of my cocoon list. -Andy Yes... I'm in waiting for this future -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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]
Cocoon Connection Pooling and Database Shutdown
Could anyone shed some light on what happens to the Cocoon connection pool when the database it depends on is shutdown and then restarted. I expect an exception to be thrown as the connections are invalid, and though I don't explicitly catch it using esql:error-results in my XSP page, I expect that this exception should appear somewhere; perhaps in a log file or returned as part of the XML generated by the XSP. However, if my database has been shutdown and then restarted, the XSP below returns tradingbookSorry, no trading book results!/tradingbook. I have to restart Tomcat to get it working again. tradingbook esql:connection esql:poolmosaic/esql:pool esql:execute-query esql:querySELECT distinct vm_tradingbook_id as tradingbook_code, tradingbookname FROM V_TRADINGBOOK_VM order by 2/esql:query esql:results esql:row-results tradingbookcodeesql:get-string column=tradingbook_code//tradingbookcode tradingbookesql:get-string column=tradingbookname//tradingbook /esql:row-results /esql:results esql:no-results tradingbookSorry, no trading book results!/tradingbook /esql:no-results /esql:execute-query /esql:connection /tradingbook Regards Michael --- Michael Edge Global Markets Technology Institutional Client Group Phone: +44 (0) 20 7545 3204 Fax : +44 (0) 20 7545 1559 Internet email:[EMAIL PROTECTED] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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 Connection Pooling and Database Shutdown
Try this tag: esql:error-results The error is: esql:get-message/ /esql:error-results Antonio Gallardo El Miércoles, 16 de Octubre de 2002 06:51, Michael Edge escribió: Could anyone shed some light on what happens to the Cocoon connection pool when the database it depends on is shutdown and then restarted. I expect an exception to be thrown as the connections are invalid, and though I don't explicitly catch it using esql:error-results in my XSP page, I expect that this exception should appear somewhere; perhaps in a log file or returned as part of the XML generated by the XSP. However, if my database has been shutdown and then restarted, the XSP below returns tradingbookSorry, no trading book results!/tradingbook. I have to restart Tomcat to get it working again. tradingbook esql:connection esql:poolmosaic/esql:pool esql:execute-query esql:querySELECT distinct vm_tradingbook_id as tradingbook_code, tradingbookname FROM V_TRADINGBOOK_VM order by 2/esql:query esql:results esql:row-results tradingbookcodeesql:get-string column=tradingbook_code//tradingbookcode tradingbookesql:get-string column=tradingbookname//tradingbook /esql:row-results /esql:results esql:no-results tradingbookSorry, no trading book results!/tradingbook /esql:no-results /esql:execute-query /esql:connection /tradingbook Regards Michael --- Michael Edge Global Markets Technology Institutional Client Group Phone: +44 (0) 20 7545 3204 Fax : +44 (0) 20 7545 1559 Internet email:[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 Connection Pooling and Database Shutdown
Michael Edge wrote: Could anyone shed some light on what happens to the Cocoon connection pool when the database it depends on is shutdown and then restarted. I expect an exception to be thrown as the connections are invalid, and though I don't explicitly catch it using esql:error-results in my XSP page, I expect that this exception should appear somewhere; perhaps in a log file or returned as part of the XML generated by the XSP. However, if my database has been shutdown and then restarted, the XSP below returns tradingbookSorry, no trading book results!/tradingbook. I have to restart Tomcat to get it working again. ot please use carriage returns in your messages /ot The way the connection pooling works is that when the connections are set with a specific Keep-Alive query that works, the connection will try to be reestablished when the Keep-Alive fails. If the Pool cannot return a valid connection, then it will throw an exception. You may experience a long timeout while it is waiting to get a valid connection. The ESQL logicsheet swollows *alot* of error messages. It is very possible that ESQL is your problem. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - 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 Connection Pooling and Database Shutdown
I forgot: See below El Miércoles, 16 de Octubre de 2002 06:51, Michael Edge escribió: Could anyone shed some light on what happens to the Cocoon connection pool when the database it depends on is shutdown and then restarted. I expect an exception to be thrown as the connections are invalid, and though I don't explicitly catch it using esql:error-results in my XSP page, I expect that this exception should appear somewhere; perhaps in a log file or returned as part of the XML generated by the XSP. However, if my database has been shutdown and then restarted, the XSP below returns tradingbookSorry, no trading book results!/tradingbook. I have to restart Tomcat to get it working again. tradingbook esql:connection esql:poolmosaic/esql:pool esql:execute-query esql:querySELECT distinct vm_tradingbook_id as tradingbook_code, tradingbookname FROM V_TRADINGBOOK_VM order by 2/esql:query esql:results esql:row-results tradingbookcodeesql:get-string column=tradingbook_code//tradingbookcode tradingbookesql:get-string column=tradingbookname//tradingbook /esql:row-results /esql:results esql:no-results tradingbookSorry, no trading book results!/tradingbook /esql:no-results esql:error-results The erro is: esql:get-message/ /esql:error-results /esql:execute-query /esql:connection /tradingbook Regards Michael --- Michael Edge Global Markets Technology Institutional Client Group Phone: +44 (0) 20 7545 3204 Fax : +44 (0) 20 7545 1559 Internet email:[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 1.8.2 and FOP 0.20.4
Do you know if new Cocoon 2.0 supports the new FOP ? Even though I think cocoon and APIs such as FOP are great the general trend that I seem to finding is that the software tends not to be backward compatable which sometimes make it difficult in a corporate environment. Thanks for your assistance! -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon 1.8.2 and FOP 0.20.4 George Pieri wrote: Should I be able to change 1) the fop_0_15_0.jar to the new fop.jar FOP's API evolved quite significantly between 0.15 and 0.20.4, with major changes between 0.20.1 and 0.20.2. I don't expect the new jar to work with an old Cocoon wrapper. 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] - 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]
Reference to a servlet in sitemap
Hi! I have tried to reference a servlet in sitemap without success. I searched in the web and in the mails an haven't found an answer. I have to program a servlet (e.g. a simple servlet that throws a html). So I configured the servlet in the web.xml file. Then, because I'm using cocoon, I have to configure a match in the sitemap. I do not know how to do it. I've tried everything. Help please! Thanks. Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - 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]
xInclude and SQL Transformer NullPointerException
I experience the following problem: I am including fragments of another xml file using xinclude and the xpointer() syntax. Works fine. If I then want to use the SQLTransformer within the same pipeline, I get a org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException Original exception : java.lang.Original exception : java.lang.NullPointerException at org.apache.xml.utils.AttList.getValue(AttList.java:247) at org.apache.cocoon.transformation.SQLTransformer.startQueryElement(SQLTransformer.java:403) at org.apache.cocoon.transformation.SQLTransformer.startTransformingElement(SQLTransformer.java:742) ... If I take the result of the xinclude step, save it as a file and just process it using the same SQLTransformer step, everything works fine... Using 2.03 / Tomcat 4.04, but a recent CVS shows the same behaviour. I personally didn't find anything in bugzilla, but is it a known bug, or could I have done something wrong? Any ideas? Martin. - 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: AW: [HELP] What's wrong?
--- simo kauranen [EMAIL PROTECTED] wrote: As a matter of fact cocoon finds my transformer (which I have written myself and which is placed in WEB-INF/classes/org/apache/cocoon/transformation) in the components element, otherwise it would throw ClassNotFoundException. Are you certain that it is found, or are you just surmising that from the error reported? The ClassNotFound would happen at container startup when the sitemap is initialized. If it is failing (as I suspect it is) it would silently fail, the component would not exist and when your sitemap tries to access it, would return an error finding the component, which is what you are seeing. Is your transformer doing any logging during startup that can confirm it is loaded sucessfully? If not, try adding logging to the beginning and end of configure(). Have you looked in the core.log and others to look for loading errors/sucess for the hint store? Geoff Howard __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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]
PHP servlet problems
Hi, I am trying to integrate the functionality of PHP with Cocoon, but I seem to have run into some problems. When I try to run a small test script, 1 of 2 things will happen. 1. I get nothing back (the browser just sits and acts busy), or 2. If I restart my servlet engine, I receive a blank page. I'm rather at a loss, so any hints, ideas, or thoughts would be greatly appreciated. Following is my sitemap entry, php code, and system specs. map:pipeline map:match src=phptest map:generate src=hello.php type=php/ map:transform src=hello.xsl/ map:serialize/ /map:match /map:pipeline ?php print(?xml version='1.0'?\n); print(greeting\ntextHello World/text\n/greeting); ? Red Hat 7.2 Apache 2.0.42 JDK 1.4.0 Tomcat 4.0.4 Cocoon 2.0.3 Thanx. Gabe - 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]
mod-db example not working.
I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Regards, Antonio Gallardo. - 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 Connection Pooling and Database Shutdown
Why should I use carriage returns in my messages, Berin? Michael - Message from Berin Loritsch [EMAIL PROTECTED] on Wed, 16 Oct 2002 09:01:01 -0400 - To: [EMAIL PROTECTED] Subject: Re: Cocoon Connection Pooling and Database Shutdown ot please use carriage returns in your messages /ot -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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 Connection Pooling and Database Shutdown
Michael Edge wrote: Why should I use carriage returns in my messages, Berin? So that we don't have to scroll on forever in one direction, and it makes it alot easier to interpose comments throughout your message--adding context to other people's response. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - 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: mod-db example not working.
On 16.Oct.2002 -- 07:53 AM, Antonio Gallardo Rivera wrote: Thread-9/DatabaseAction: Could not select output mode attribute:null So, you are using a CVS version, eh? The default outputmode used to be (and still is) attribute which was recently renamed request-attr. You need to add / change the output-mode/ tag of the action declaration accordingly. Most likely you will need to add inputrequest-param/input as well. I'm currently creating a block for the database stuff. When that is done, I'll change all the defaults to the new values. Sorry for now. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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 Connection Pooling and Database Shutdown
Why should I use carriage returns in my messages, Berin? So that we don't have to scroll on forever in one direction, and it makes it alot easier to interpose comments throughout your message--adding context to other people's response. Berin, what mail client are you using? Most have a configurable setting to tell them when to wrap long lines. I for one only put in CR/LF when starting new paragraphs; I've been using e-mail for some 20 years now (showing my age! ;-) and never had anyone complain... - 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 Connection Pooling and Database Shutdown
Hunsberger, Peter wrote: Why should I use carriage returns in my messages, Berin? So that we don't have to scroll on forever in one direction, and it makes it alot easier to interpose comments throughout your message--adding context to other people's response. Berin, what mail client are you using? Most have a configurable setting to tell them when to wrap long lines. I for one only put in CR/LF when starting new paragraphs; I've been using e-mail for some 20 years now (showing my age! ;-) and never had anyone complain... I've had other people complain to me about the same thing. When you *respond* using Mozilla, what was once a auto-wrapped line is now one long line that goes on forever. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - 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: mod-db example not working.
Antonio Gallardo Rivera wrote: I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Check the documentation at User Documentation/Actions/Database. Read closely the sections How to obtain Values and How to store Values e.g. in your Session. It's not completely clear, but it helps. Here are some examples from what I have done so far. I hope they are right. 1. Declaration of the modular action in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction !-- throw-exceptiontrue/throw-exception -- !-- If this is set false, when the action fails it does not produce an error inputrequest-parameter/input !--This input module has to be described in cocoon.xconf. -- outputsession-attribute/output !--Ditto for the output module-- /map:action 2. Define map:act/ in the sitemap: map:act type=mod-db-add src=optional src map:parameter name=descriptor value=database.xml/ map:parameter name=table-set value=table-set value/ !-- You can also map parameters for the action, such as map:parameter name=throw-exception value=true/ -- /map:act Hope this helps. Regards, Antonio Gallardo. - 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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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 Connection Pooling and Database Shutdown
Berin Loritsch wrote: I've had other people complain to me about the same thing. When you *respond* using Mozilla, what was once a auto-wrapped line is now one long line that goes on forever. In the message composition menu: Options Rewrap. I use it all the time - dunnow if my mails are well received at the other side however. /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: TransFormers
On Wed, Oct 16, 2002 at 01:57:38PM +0900, Tanmay Kumar wrote: Hi all, I am finding Cocoon very useful for our project. Thanks a lot to the developers... I have one requirement like this. Is there any Cocoon class to address this issue? Input will be a DOM node, but while parsing the DOM node all SAX events should be fir. Example: R A101/A BWorld/B /R While it got the root element as 'R', startElement() method should be invoked with proper arguments i.e name, attributelist. Again when the child element is a text node as per DOM(101 in ex.) , characters() method should be fired. I think you want org.apache.cocoon.xml.dom.DOMStreamer: * The codeDOMStreamer/code is a utility class that will generate SAX * events from a W3C DOM Document. If you want to use this in a Transformer, have a look at AbstractDOMTransformer. --Jeff thanks, Tans - 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: Request parameters in a cocoon:/
In my experience the request parameters seem to be preserved. I am using the interpreted sitemap (not sure if that makes a difference) and have several places in my sitemap where I am certain they are working. For example: map:match pattern=*.xsp map:generate type=serverpages src=xsp/(1).xsp/ map:transform src=stylesheets/copySelf.xsl / map:serialize type=xml/ /map:match map:match pattern=bigPage map:aggregate element=page map:part src=cocoon:/data1.xsp/ map:part src=cocoon:/data2.xsp/ map:part src=cocoon:/data3.xsp/ /map:aggregate map:transform src=stylesheets/bigPage.xsl / map:serialize / /map:match -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 5:43 AM To: '[EMAIL PROTECTED]' Subject: Request parameters in a cocoon:/ When you call a cocoon:/ from your pipeline, the sitemap calls itself. But inside this new call, you lose the initial request parameters. Is there a way to set new request-parameters for the cocoon:/ call? Or keep the intial request parameters when the sitemap calls itself? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: mod-db example not working.
Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Check the documentation at User Documentation/Actions/Database. Read closely the sections How to obtain Values and How to store Values e.g. in your Session. It's not completely clear, but it helps. Here are some examples from what I have done so far. I hope they are right. 1. Declaration of the modular action in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction !-- throw-exceptiontrue/throw-exception -- !-- If this is set false, when the action fails it does not produce an error inputrequest-parameter/input !--This input module has to be described in cocoon.xconf. -- outputsession-attribute/output !--Ditto for the output module-- /map:action 2. Define map:act/ in the sitemap: map:act type=mod-db-add src=optional src map:parameter name=descriptor value=database.xml/ map:parameter name=table-set value=table-set value/ !-- You can also map parameters for the action, such as map:parameter name=throw-exception value=true/ -- /map:act Hope this helps. Forgot a couple of things. In the descriptor file: value name=ID type=int mode name=session-attribute parameter=org.apache.cocoon.components.modules.output.OutputModule:ID[0] type=attrib/ !-- if others-mode=attrib, use this one -- mode name=request-parameter parameter=ID type=request/ !-- if others-mode=request, use this one -- mode name=something parameter=ID type=all/ !-- I don't care what others-mode is, always use this one -- /value mode name=request-parameter parameter=PREFIX type=request table-set name=MAILLIST-upd table name=NIAC_MAILLIST others-mode=request/ /table-set Here others-mode request is saying get the values from however I defined type=request in the mode name. Other values are: attrib - get values from attributes; session if input/ is session, request if input/ is request. others -- I'm not sure. I could be absolutely wrong on this one, but it seems to work. It would be
Re: Cocoon Connection Pooling and Database Shutdown
Hunsberger, Peter wrote: Why should I use carriage returns in my messages, Berin? So that we don't have to scroll on forever in one direction, and it makes it alot easier to interpose comments throughout your message--adding context to other people's response. Berin, what mail client are you using? Most have a configurable setting to tell them when to wrap long lines. I for one only put in CR/LF when starting new paragraphs; I've been using e-mail for some 20 years now (showing my age! ;-) and never had anyone complain... I'm trying to forget about age, but I'm forgetting parts of everything. I've even forgotten how old I am at times. - 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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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: mod-db example not working.
Thanks Bobby. Antonio Gallardo El Miércoles, 16 de Octubre de 2002 08:53, Bobby Mitchell escribió: Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Check the documentation at User Documentation/Actions/Database. Read closely the sections How to obtain Values and How to store Values e.g. in your Session. It's not completely clear, but it helps. Here are some examples from what I have done so far. I hope they are right. 1. Declaration of the modular action in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction !-- throw-exceptiontrue/throw-exception -- !-- If this is set false, when the action fails it does not produce an error inputrequest-parameter/input !--This input module has to be described in cocoon.xconf. -- outputsession-attribute/output !--Ditto for the output module-- /map:action 2. Define map:act/ in the sitemap: map:act type=mod-db-add src=optional src map:parameter name=descriptor value=database.xml/ map:parameter name=table-set value=table-set value/ !-- You can also map parameters for the action, such as map:parameter name=throw-exception value=true/ -- /map:act Hope this helps. Forgot a couple of things. In the descriptor file: value name=ID type=int mode name=session-attribute parameter=org.apache.cocoon.components.modules.output.OutputModule:ID[0] type=attrib/ !-- if others-mode=attrib, use this one -- mode name=request-parameter parameter=ID type=request/ !-- if others-mode=request, use this one -- mode name=something parameter=ID type=all/ !-- I don't care what others-mode is, always use this one -- /value mode name=request-parameter parameter=PREFIX type=request table-set name=MAILLIST-upd table name=NIAC_MAILLIST others-mode=request/ /table-set Here others-mode request is saying get the values from however I defined type=request in the mode name. Other values
Re: mod-db example not working.
Thanks, Chris. Yes, I am using the lastest 2.1 CVS, like always ;) I made this changes in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action map:action name=mod-db-upd src=org.apache.cocoon.acting.modular.DatabaseUpdateAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action map:action name=mod-db-del src=org.apache.cocoon.acting.modular.DatabaseDeleteAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action I will put a copy on this on the Wiki now :) Thanks again, Antonio Gallardo. El Miércoles, 16 de Octubre de 2002 08:12, Christian Haul escribió: On 16.Oct.2002 -- 07:53 AM, Antonio Gallardo Rivera wrote: Thread-9/DatabaseAction: Could not select output mode attribute:null So, you are using a CVS version, eh? The default outputmode used to be (and still is) attribute which was recently renamed request-attr. You need to add / change the output-mode/ tag of the action declaration accordingly. Most likely you will need to add inputrequest-param/input as well. I'm currently creating a block for the database stuff. When that is done, I'll change all the defaults to the new values. Sorry for now. Chris. - 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: Request parameters in a cocoon:/
map:match pattern=*.xsp map:generate type=serverpages src=xsp/(1).xsp/ map:transform src=stylesheets/copySelf.xsl / map:serialize type=xml/ /map:match map:match pattern=bigPage map:aggregate element=page map:part src=cocoon:/data1.xsp/ map:part src=cocoon:/data2.xsp/ map:part src=cocoon:/data3.xsp/ /map:aggregate map:transform src=stylesheets/bigPage.xsl / map:serialize / /map:match My quiestion is that if I send this URl to Cocoon: http://.../bigPage?foo=1bar=0 Will I be able to retrieve those data in the copySelf.xsl? (defining use-stylesheet-parameters for it, of course) This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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]
Q: Stripped-Down usage? (no web server)
Has anyone used *just* the core components of cocoon in a project? I don't have a web server, I'm not running tomcat. Currently, I have a bunch of java classes that make SQL calls against a DB, and build up a big XML doc. I then have more java classes that apply various XSL transformations to create some HTML pages on disk. (It is for documentation purposes.) After finding out about cocoon and reading the docs, parts of it look perfect for me, but I haven't found any docs or examples of people using *just* the core DB to output (HTML) pipeline without using all the other tomcat etc overhead. Does anyone know of a doc, have an example, or have advice on where to look to create a minimalist non-webby implementation using cocoon tech? _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp - 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: xInclude and SQL Transformer NullPointerException
I had a similar problem. When I used the XInclude transformer, I got a NullPointerException when I tried to refer to the results with the cocoon:/ protocol. Here was my solution (bad hack, but it worked): I made a stylesheet copy-of.xsl that simply copied what it was passed without changing it. Then I used this stylesheet after the XInclude transformer to get rid of the errors: map:match pattern=somefile.xml map:generate src=somefile.xml/ map:transform type=xinclude/ map:transform src=copy-of.xsl/ !-- maybe SLQTransformer will work here now :) -- map:serialize/ /map:match map:match pattern=otherfile.xml map:generate src=cocoon:/somefile/ map:serialize/ /map:match Hope this helps, Tim [EMAIL PROTECTED] 10/16/02 09:27AM I experience the following problem: I am including fragments of another xml file using xinclude and the xpointer() syntax. Works fine. If I then want to use the SQLTransformer within the same pipeline, I get a org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException Original exception : java.lang.Original exception : java.lang.NullPointerException at org.apache.xml.utils.AttList.getValue(AttList.java:247) at org.apache.cocoon.transformation.SQLTransformer.startQueryElement(SQLTransformer.java:403) at org.apache.cocoon.transformation.SQLTransformer.startTransformingElement(SQLTransformer.java:742) ... If I take the result of the xinclude step, save it as a file and just process it using the same SQLTransformer step, everything works fine... Using 2.03 / Tomcat 4.04, but a recent CVS shows the same behaviour. I personally didn't find anything in bugzilla, but is it a known bug, or could I have done something wrong? Any ideas? Martin. - 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: Request parameters in a cocoon:/
Good question -- I have not tried that scenario. As a workaround, instead of extracting request parameters from a stylesheet, you could something like this in the xsp fooxsp:exprrequest.getParameter(foo)/xsp:expr/foo barxsp:exprrequest.getParameter(bar)/xsp:expr/bar and use XSLT to get the params during transformation. -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:26 AM To: '[EMAIL PROTECTED]' Subject: RE: Request parameters in a cocoon:/ My quiestion is that if I send this URl to Cocoon: http://.../bigPage?foo=1bar=0 Will I be able to retrieve those data in the copySelf.xsl? (defining use-stylesheet-parameters for it, of course) - 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: Request parameters in a cocoon:/
Good question -- I have not tried that scenario. As a workaround, instead of extracting request parameters from a stylesheet, you could something like this in the xsp fooxsp:exprrequest.getParameter(foo)/xsp:expr/foo barxsp:exprrequest.getParameter(bar)/xsp:expr/bar and use XSLT to get the params during transformation. I think that a cocoon:/ call resets all the requestParameters. It seems that you can retrieve them if you manage to include them as *part of* the URL of the cocoon:/. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: Request parameters in a cocoon:/
ROSSEL Olivier wrote: Good question -- I have not tried that scenario. As a workaround, instead of extracting request parameters from a stylesheet, you could something like this in the xsp fooxsp:exprrequest.getParameter(foo)/xsp:expr/foo barxsp:exprrequest.getParameter(bar)/xsp:expr/bar and use XSLT to get the params during transformation. I think that a cocoon:/ call resets all the requestParameters. Maybe, but it should not! Its purpose is to create a new request with old AND new parameters (AFAIU) It seems that you can retrieve them if you manage to include them as *part of* the URL of the cocoon:/. That works great. - 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: Request parameters in a cocoon:/
I think that a cocoon:/ call resets all the requestParameters. Maybe, but it should not! Are you sure? Its purpose is to create a new request with old AND new parameters (AFAIU) Well, if you have ideas about how I can pass NEW request parameters for the cocoon:/ call, I am really interested. Using a GET-style URL (cocoon:/toto.xsp?foo=1) fails for me (C2.0.2). This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: mod-db example not working.
Sorry, I made and error, I needed to change: output-mode to output in the below description. Antonio Gallardo El Miércoles, 16 de Octubre de 2002 09:09, Antonio Gallardo Rivera escribió: Thanks, Chris. Yes, I am using the lastest 2.1 CVS, like always ;) I made this changes in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action map:action name=mod-db-upd src=org.apache.cocoon.acting.modular.DatabaseUpdateAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action map:action name=mod-db-del src=org.apache.cocoon.acting.modular.DatabaseDeleteAction descriptordatabase.xml/descriptor inputrequest-param/input output-moderequest-attr/output-mode throw-exceptionfalse/throw-exception /map:action I will put a copy on this on the Wiki now :) Thanks again, Antonio Gallardo. El Miércoles, 16 de Octubre de 2002 08:12, Christian Haul escribió: On 16.Oct.2002 -- 07:53 AM, Antonio Gallardo Rivera wrote: Thread-9/DatabaseAction: Could not select output mode attribute:null So, you are using a CVS version, eh? The default outputmode used to be (and still is) attribute which was recently renamed request-attr. You need to add / change the output-mode/ tag of the action declaration accordingly. Most likely you will need to add inputrequest-param/input as well. I'm currently creating a block for the database stuff. When that is done, I'll change all the defaults to the new values. Sorry for now. Chris. - 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: mod-db example not working.
Bobby: Are you using the lastes CVS too? Antonio Gallardo El Miércoles, 16 de Octubre de 2002 08:53, Bobby Mitchell escribió: Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Check the documentation at User Documentation/Actions/Database. Read closely the sections How to obtain Values and How to store Values e.g. in your Session. It's not completely clear, but it helps. Here are some examples from what I have done so far. I hope they are right. 1. Declaration of the modular action in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction !-- throw-exceptiontrue/throw-exception -- !-- If this is set false, when the action fails it does not produce an error inputrequest-parameter/input !--This input module has to be described in cocoon.xconf. -- outputsession-attribute/output !--Ditto for the output module-- /map:action 2. Define map:act/ in the sitemap: map:act type=mod-db-add src=optional src map:parameter name=descriptor value=database.xml/ map:parameter name=table-set value=table-set value/ !-- You can also map parameters for the action, such as map:parameter name=throw-exception value=true/ -- /map:act Hope this helps. Forgot a couple of things. In the descriptor file: value name=ID type=int mode name=session-attribute parameter=org.apache.cocoon.components.modules.output.OutputModule:ID[0] type=attrib/ !-- if others-mode=attrib, use this one -- mode name=request-parameter parameter=ID type=request/ !-- if others-mode=request, use this one -- mode name=something parameter=ID type=all/ !-- I don't care what others-mode is, always use this one -- /value mode name=request-parameter parameter=PREFIX type=request table-set name=MAILLIST-upd table name=NIAC_MAILLIST others-mode=request/ /table-set Here others-mode request is saying get the values from however I defined type=request in the
Re: Q: Stripped-Down usage? (no web server)
You can use the cocoon CLI command line interface, by executing org.apache.cocoon.Main. It's not very well documented, but you can glean enough to use it from the archive, the source code and the build target for the docs. HTH, Geoff Howard --- Torched Salamander [EMAIL PROTECTED] wrote: Has anyone used *just* the core components of cocoon in a project? I don't have a web server, I'm not running tomcat. Currently, I have a bunch of java classes that make SQL calls against a DB, and build up a big XML doc. I then have more java classes that apply various XSL transformations to create some HTML pages on disk. (It is for documentation purposes.) After finding out about cocoon and reading the docs, parts of it look perfect for me, but I haven't found any docs or examples of people using *just* the core DB to output (HTML) pipeline without using all the other tomcat etc overhead. Does anyone know of a doc, have an example, or have advice on where to look to create a minimalist non-webby implementation using cocoon tech? _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp - 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] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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]
Re: mod-db example not working.
On 16.Oct.2002 -- 10:53 AM, Bobby Mitchell wrote: Here others-mode request is saying get the values from however I defined type=request in the mode name. Other values are: attrib - get values from attributes; session if input/ is session, request if input/ is request. others -- I'm not sure. I could be absolutely wrong on this one, but it seems to work. If a mode @name is omitted, the default is used which is set using the input/ tag when configuring the action. If that is missing as well, the actions default to request (will be request-param). Any other InputModule could be used instead. What modules exist is constantly changing, their description can be found in the javadocs in the o.a.c.components.modules.input package. It would be really nice if we could list all combinations of values with a short description(not too short) about what each setting accomplishes and put it in the docs for the mod-db actions. Could you be a bit more specific, what values you are referring to? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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]
Problems running servlets under cocoon
Hello! I'm having problems trying to run servlets under cocoon. Error message on browser: Cocoon 2 - Internal server error java.lang.RuntimeException: servlet/maeff could not be found. (possible context problem) at org.apache.cocoon.components.url.ContextURLFactory.getURL(ContextURLFactory.java:98) at org.apache.cocoon.components.url.URLFactoryImpl.getURL(URLFactoryImpl.java:116) at org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:181) .. In the web.xml configuration file, I added the following lines: --- ... servlet servlet-namemaeFilterForm/servlet-name descriptionun servlet sencillo/description servlet-classuseOfTrax.MaeFilterFormServlet/servlet-class load-on-startup5/load-on-startup /servlet servlet-mapping servlet-namemaeFilterForm/servlet-name url-pattern/servlet/maeff/url-pattern /servlet-mapping ... In the sitemap, inside pipeline: --- ... map:match pattern=maeff map:read mime-type=text/html src=context://servlet/maeff / /map:match ... The URL: --- http://host:port/MaeQueryPrototype/maeff (MaeQueryPrototype is the project) What Am I doing wrong? Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - 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: mod-db example not working.
Antonio Gallardo Rivera wrote: Bobby: Are you using the lastes CVS too? Yes, from about 2 weeks ago. Antonio Gallardo El Miércoles, 16 de Octubre de 2002 08:53, Bobby Mitchell escribió: Bobby Mitchell wrote: Antonio Gallardo Rivera wrote: I am trying to start the example of mod-db using PostgreSQL. Currently, I have the autoincr, working, but the problem now is inserting a new row in the table groups - the easier one ;). In the database.xml there is defined as: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table Also table-set name=groups table name=groups/ /table-set In the userlist.xsp there is a form that handle the new-group action: sqltblrow gname form input type=text name=groups.gname size=20 maxsize=20/ input type=submit name=add-group value=new group/ /form /gname /sqltblrow But when I try to Add a new group, It cannot get the groups.gname parameter. It store a null. In the sitemap.log I found the following: Current Sitemap Parameters: LEVEL 2 PARAM: 'add-group' VALUE: 'new group' PARAM: 'groups.gname' VALUE: 'wsqa' LEVEL 1 PARAM: '../0' VALUE: 'user-list' PARAM: '../1' VALUE: 'user-list' Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Thread-9/DefaultComponentFactory: no logger attribute available, using standard logger Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr} Thread-9/DatabaseAction: i=0 Thread-9/DatabaseAction: requested mode was autoincr returning autoincr Thread-9/DatabaseAction: i=1 Thread-9/DatabaseAction: requested mode was others returning others Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?) Thread-9/DatabaseAction: Trying to set column groups.gname from request using getAttribute method Thread-9/DatabaseAction: Setting column groups.gname [0] null Thread-9/DatabaseAction: row no. 0 Thread-9/DatabaseAddAction: Automatically setting key Thread-9/DatabaseAction: Setting column groups.gname[0] to null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Setting column groups.gid[0] to 10 Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DatabaseAction: Could not select output mode attribute:null Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.acting.modular.DatabaseAddAction. Also, the sitemap is: !-- add own new group -- map:act type=req-params map:parameter name=parameters value=add-group groups.gname/ map:act type=mod-db-add map:parameter name=table-set value=groups/ /map:act /map:act Please help, Check the documentation at User Documentation/Actions/Database. Read closely the sections How to obtain Values and How to store Values e.g. in your Session. It's not completely clear, but it helps. Here are some examples from what I have done so far. I hope they are right. 1. Declaration of the modular action in the sitemap: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction !-- throw-exceptiontrue/throw-exception -- !-- If this is set false, when the action fails it does not produce an error inputrequest-parameter/input !--This input module has to be described in cocoon.xconf. -- outputsession-attribute/output !--Ditto for the output module-- /map:action 2. Define map:act/ in the sitemap: map:act type=mod-db-add src=optional src map:parameter name=descriptor value=database.xml/ map:parameter name=table-set value=table-set value/ !-- You can also map parameters for the action, such as map:parameter name=throw-exception value=true/ -- /map:act Hope this helps. Forgot a couple of things. In the descriptor file: value name=ID type=int mode name=session-attribute parameter=org.apache.cocoon.components.modules.output.OutputModule:ID[0] type=attrib/ !-- if others-mode=attrib, use this one -- mode name=request-parameter parameter=ID type=request/ !-- if others-mode=request, use this one -- mode name=something parameter=ID type=all/ !-- I don't care what others-mode is, always use this one -- /value mode name=request-parameter parameter=PREFIX type=request table-set name=MAILLIST-upd table name=NIAC_MAILLIST others-mode=request/ /table-set Here others-mode request is saying get the values from however I defined type=request in the mode name. Other values are: attrib - get values from attributes; session if input/ is session, request if input/ is request. others
Re: mod-db example not working.
Could you be a bit more specific, what values you are referring to? I had the most trouble figuring out the descriptor file. keys key name=ID type=string autoincrement=false mode name=request parameter=ID type=all/ !-- if mode is not defined it defaults to request parameter -- !-- name=the name of the input-module or autoincrement-module as defined in cocoon.xconf/ -- !--parameter=the name of the parameter that the data is retrieved from, choices could be session attribute, request attribute, request parameter/-- !--type=defined in table-set/table/others-mode, choices are: request, attrib, all/ -- !-- if type=autoincr , then name will be an autoincrement-module -- !-- retrieve data from the mode tag with type=others-mode-- !-- if a mode tag has a type=all this tag is always used regardless of others-mode -- /key /keys !-- mode tags are only useful in key/ elements -- I know that a lot of info is included in the database.xml file in the sample, but I think it would be helpful to slow people like me to have it in the documentation, also. Bobby -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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: Q: Stripped-Down usage? (no web server)
My home-rolled version (which you can easily improve) is: #!/bin/tcsh setenv CATALINA_HOME here setenv CATALINA_BASE there cd $CATALINA_BASE foreach lib (`find $CATALINA_HOME/common/lib webapps/cocoon/WEB-INF/lib -name *.jar`) if (! $?CLASSPATH ) then setenv CLASSPATH $lib else setenv CLASSPATH $CLASSPATH':'$lib endif end setenv CLASSPATH $CLASSPATH':'webapps/cocoon/WEB-INF/classes if ( ! $#argv ) then echo Usage: echo $0 '[http://localhost:8080]/URI [...]' echo You should run this from $CATALINA_BASE echo '(CLASSPATH word length problems...)' exit endif java org.apache.cocoon.Main \ --brokenLinkFile ./tmp/broken-links \ --logLevel DEBUG \ --contextDir ./webapps/cocoon \ --destDir ./tmp \ --workDir ./tmpwork \ --configFile ./webapps/cocoon/WEB-INF/cocoon.xconf \ $* | tee ./cocoon-test.log Geoff Howard wrote: You can use the cocoon CLI command line interface, by executing org.apache.cocoon.Main. It's not very well documented, but you can glean enough to use it from the archive, the source code and the build target for the docs. HTH, Geoff Howard --- Torched Salamander [EMAIL PROTECTED] wrote: Has anyone used *just* the core components of cocoon in a project? I don't have a web server, I'm not running tomcat. Currently, I have a bunch of java classes that make SQL calls against a DB, and build up a big XML doc. I then have more java classes that apply various XSL transformations to create some HTML pages on disk. (It is for documentation purposes.) After finding out about cocoon and reading the docs, parts of it look perfect for me, but I haven't found any docs or examples of people using *just* the core DB to output (HTML) pipeline without using all the other tomcat etc overhead. Does anyone know of a doc, have an example, or have advice on where to look to create a minimalist non-webby implementation using cocoon tech? _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp - 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] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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] -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - 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: Request parameters in a cocoon:/
Modifying Ryan's example a little bit... map:match pattern=*.xsp map:generate type=serverpages src=xsp/(1).xsp/ map:transform src=stylesheets/copySelf.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type=xml/ /map:match map:match pattern=bigPage map:act type=request map:parameter name=parameters value=true / map:aggregate element=page map:part src=cocoon:/data1.xsp{requestQuery}/ map:part src=cocoon:/data2.xsp{requestQuery}/ map:part src=cocoon:/data3.xsp{requestQuery}/ /map:aggregate /map:act map:transform src=stylesheets/bigPage.xsl / map:serialize / /map:match This passes the original request parameters to all of the cocoon:/ calls and allows you to use them in the copySelf stylesheet. I hope this helps. - Lee -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: October 16, 2002 10:26 AM To: '[EMAIL PROTECTED]' Subject: RE: Request parameters in a cocoon:/ map:match pattern=*.xsp map:generate type=serverpages src=xsp/(1).xsp/ map:transform src=stylesheets/copySelf.xsl / map:serialize type=xml/ /map:match map:match pattern=bigPage map:aggregate element=page map:part src=cocoon:/data1.xsp/ map:part src=cocoon:/data2.xsp/ map:part src=cocoon:/data3.xsp/ /map:aggregate map:transform src=stylesheets/bigPage.xsl / map:serialize / /map:match My quiestion is that if I send this URl to Cocoon: http://.../bigPage?foo=1bar=0 Will I be able to retrieve those data in the copySelf.xsl? (defining use-stylesheet-parameters for it, of course) This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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 1.8.2 and FOP 0.20.4
George Pieri wrote: Do you know if new Cocoon 2.0 supports the new FOP ? Yes on both accounts. Even though I think cocoon and APIs such as FOP are great the general trend that I seem to finding is that the software tends not to be backward compatable which sometimes make it difficult in a corporate environment. TANSTAAFL 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]
Modular FormValidator?
Hi! I am finished a challenge with Modular Database Actions. :) Can someone tell me if there are some similar in the FormValidator? I mean some kind of FormValidator action that can be combined with Modular Databse Actions. Thanks in advance, Antonio Gallardo - 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]
[C 2.1 CVS] - About roles in user Authentication
I have configured the User Authentication sucessfully. I saw that there is a role field. Is this value a must field? I made my own path building tables in a database for users, object and permission. The permissions are for example: Admin users, admin lists, create new data, etc. Then I saw that there are some roles and some people are talking about the role importance and a way to create new roles. But it is not clear the way to use it. How it can make our life a little easier. I think I know how to use it, but it looks to me like a initial draft of a big work in the future. This is how I see to the roles at the current level in the CVS. May be I am wrong and I hope tha I am ;). Is there a example of how to use the roles and the more advanced features of the authentication Manager like ? Can someone explain what is the importance of the role and how to use it? How to interact with roles and the other features of the Authentication manager tha can make our lifes better? Thanks in advance, Antonio Gallardo Rivera. - 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]
DBPrism with DB2
Has anyone used DB Prism with DB2, specifically DB2 on the I-Series (AS/400). I have not been able to find any adapters -- just stubs in the DB Prism source? - 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]
Sunrise Authorization Tutorials
Hello Guys, I am creating application portal where i'll be using Sunrise Authentication and Authorization. I think I have implemented the basics of Authentication and what left is the implementations of the Authorization. Can anyone give me any examples on how to implement these in my pipelines? To be specific, what I would like to do is... as a system administrator I would like to create different roles and assign different web contents for them. Then create accounts for different users and assign them to the different roles I have created. FYI. I have read the manual, but the manuals are not enough for me to learn how to do it. Can anyone give exact steps on how I can use the authorizations? Thanks in advance Richard - 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: Modular FormValidator?
On 16.Oct.2002 -- 03:14 PM, Antonio Gallardo Rivera wrote: Hi! I am finished a challenge with Modular Database Actions. :) Can someone tell me if there are some similar in the FormValidator? No. There's one reading request attributes and one reading session attributes. And of course the XForms package doing XMLForms which is really more like a successor to FormValidator. It shouldn't be really difficult to modify FormValidator to use InputModules, but I haven't come around to it. And since most user input is request parameters, it wouldn't help much anyway. I mean some kind of FormValidator action that can be combined with Modular Databse Actions. Combine it, you can. They don't interfere and live happily together. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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]