Re: Aggregation of xml in a directory
Alex McLintock wrote: Hi folks, I am trying to figure out how to get Cocoon to display all the xml files in a directory without being explicitly told each of their names in the sitemap. I guess I need a combination of the Directory Generator and the Aggregation tools. Better: combine the DirectoryGenerator with the CInclude Transformer. /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]
Sitemap question
Is there any particular reason why subsitemaps must redefine components instead of inheriting the parent's component definitions and defaults? Seems quite redundant to me. - Miles - 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]
Aggregation of xml in a directory
Hi folks, I am trying to figure out how to get Cocoon to display all the xml files in a directory without being explicitly told each of their names in the sitemap. I guess I need a combination of the Directory Generator and the Aggregation tools. I am not too worried about the order of the files otherwise I would have to use an XML database - which I would like to avoid if possible. PS I have looked in the Langham/Ziegeler book but can't find anything useful. Do I need to write a DirectoryAggregation Generator in Java? perhaps others would find it useful too. Alex Openweb Analysts Ltd, London. Software For Complex Websites http://www.OWAL.co.uk/ Open Source Software Companies please register here http://www.OWAL.co.uk/oss_support/ - 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 with JBoss-2.4.7_Tomcat-4.0.4
Hello all, I have successfully integrated Cocoon-2.0 with JBoss-2.4.7_Tomcat-4.0.4 and it is working fine. I have properly made ear file containing EJB jar file and cocoon folders as war file. If I need to change any XSP and other classes then How will it work without redeploying all stuffs. I change an XSP in Catalina_Home/webapps/cocoon folder but not able to see changes while running server again. If I redeploy all stuff with modified xsp file then only it show changes. Please suggest how can I make changes in XSP and classes without making ear files and redeploying again and again, once it is deployed once. Thanks, Niket - 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: Convert XMLFragment to DOM node
I'm not sure if anyone answered this... But a couple of things 1.) what's a XMLFragment - is this a cocoon class??? And what really is an XMLFragment, e.g. is it a org.w3c.dom.DocumentFragment. If so a DocumentFragment is already a node so no need for a conversion. DocumentFragments are used throughout the authentication and session pieces of code... 2.) As to the NULL pointer another clue maybe the following. If a XMLFragment is really derived from a w3c.dom node... and you've created a document, and then a node (dummy). Basically these two set's of nodes (dummy vs the XMLFragment) are from different documents and to get one into the other you need to import it otherwise you get null pointer exceptions. Your appending in a fragment from another document and that typically doesn't work until you import the fragment in. Look at either the Document or the node class for an import method. Not sure if that helps, md - 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: sunRise User Administration for Dummies
I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. Hypersonic appears to only be used for sample applications not for authentication. so no users, roles or the association between the two is stored. I've found absolutely no JDBC code within the authenication/session pieces. My reason for looking into this was from a scalability point of view. I like Hypersonic DB for prototyping but not for serious production code. So i was trying to make sure this wasn't being used at all for authenication. The usage of resources allows you to use your own persistence mechanism, e.g. LDAP, database, XML file, etc. Also I was looking at the session management. My gripe is that it uses HttpSession and didn't make use of calling out to resources as the authentication manager did. If the user wanted to use HttpSession or the database or... let them do that in the called resource. So ideally there's a getProperties and a saveProperties resource (oh well). Also the roles is really confusing, as within the authentication manager it's not used at all as far as I can tell (it's probably used in the portal). There's a roleFilterTransformer that goes off of the J2EE role that you'd set for the web.xml and use the isUserInRole method. That's all the transformer does. it doesn't actually use the role from the authentication manager??? so these are unrelated pieces of code. So the role information that you return from the authenication resource appears to be left to the developer to make use of somehow, assuming they're not using Cocoon's portal offering. I'm fairly certain the portal uses the role but I've not looked at the portal component at all. hope that helps. md At 19:57 11/10/2002 -0800, you wrote: Hi Guys, Can anybody give me anything... I really don't have any clear idea on how to start on this... Any working samples... Thanks Again. Richard - - Original Message - From: Richard Reyes To: C2 Users Sent: Friday, October 11, 2002 3:14 PM Subject: sunRise User Administration for Dummies Hi Guys, How does the SunRise User Administration function? Are the Roles and Users saved in a Database? Do we have any tutorials? Thanks in Advance... Richard - Please check that your question has not already been answered in the FAQ before posting. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://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. TITLE=http://xml.apache.org/cocoon/faq/index.html TARGET=_blankhttp://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]
About encoding XML
Hi, I saw that many of us have problems, making Cocoon works with the default UTF-8 encoding and use ISO8859-1 explicitly. In my concrete case I must write all the xml files using ISO-8859-1, and change the database character-base to LATIN1. After that all works fine. Well, I am coming back to the same problem. Because I think this is a FAQ. I recently discovered that my default Java 1.4.1 installation has setted to the system property file.encoding as follow: file.encoding=ISO-8859-1 I think this can be the source of all problem that have many people (like me). Also, in the same system properties. I saw that I have configured as default: user.timezone=Africa/Abidjan This is why I got in the all log files the time of this country and not my country. In my case the time logged is 6 hours ahead. Can someone tell me how to change this defautl settings? 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]
Re: XIndice inside XSP (using eXist logicsheet), how?
Sure, here it is straight from my main sitemap, but it's the same as the cocooncenter.org article: !--== XMLDB ==-- map:pipeline map:match pattern=xmldb/** map:match type=request-parameter pattern=xpath map:generate src=xmldb:xindice://localhost:4080/db/{../1}#{1}/ map:serialize type=xml/ /map:match map:generate src=xmldb:xindice://localhost:4080/db/{1}/ map:serialize type=xml/ /map:match /map:pipeline Have you tried to make queries usind the command line tools? Have you installed the Xindice examples or created a collection? - Original Message - From: Chuck Amadi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 11, 2002 11:41 AM Subject: Re: XIndice inside XSP (using eXist logicsheet), how? Sorry to be cheek but Plz could you send a snippet of your sitemap.xmap relating to your xmldb entry I have also followed the set path but I'm experiencing problems cos Cocoon won't talk to Xindice - Resource not found error.Tried iteration and more of the same . Cheers in advance if possible just to double check . Vadim Gritsenko wrote: Josema Alonso wrote: Hello. I have XIndice working with Cocoon. I followed the directions at Cocooncenter and everything is going fine when requesting XMLDB URIs. Now I'd want to have a XSP querying the database so I could encapsulate the DB calls and pass parameters easily. Why don't you use cinclude? Vadim I searched trough the archives and found posts about the use of eXist logicsheet with XIndice inside Cocoon, but none of them say anything about how to configure it. I'm trying it but can't make it work. Has anybody tried and suceeded? Oh, if you have any other solution or idea on how to make XIndice work inside XSP, please let me know. I hope I could finally make it and write a How-To. I really miss it. 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] -- Regards Chuck Robert Amadi ICT Dept Systems Programmer. Rhaglenydd Systemau Adran ICT. Roll on Linux Power too deliver. Rholiwch ar Linux Y gallu i y Dosbarthu. Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away, and you have their shoes. - 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: Xindice logicsheet - initial success
Anyway, I have read some of your previous replies regarding this subject. Have tried the util logicsheet and it's working out of the box, even for XPath queries. Great feature, thanks! But what I would like to do is to edit, remove, update...documents in Xindice. Try also XMLDBTransformer. It is located in the scratchpad, and can create / delete resources in the xindice. xupdate is also supported but I had no time to hunt all the bugs out of it. Thank you very much. I'll try it. I know XUpdate implementation is buggy in Xindice, but I'll try it. - 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: XMLForm Howto - not Working still
Reference my previous posting: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103438719303078w=2 Logs gathered from logs/sitemap.log hopefully this will assist in troubleshooting as the I get is stil get The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. DEBUG (2002-10-12) 07:07.05:498 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/InvokeContext: Current Sitemap Parameters: PARAM: '2' VALUE: 'xmlform/howto-wizard.html' PARAM: '1' VALUE: 'samples' PARAM: '0' VALUE: 'samples/xmlform/howto-wizard.html' INFO(2002-10-12) 07:07.05:500 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/PreparableMatchNode: Matcher 'wildcard' matched prepared pattern '*/**' at file:/u01/t41xbeta/t419/webapps/cocoon/samples/sitemap.xmap:1001:30 DEBUG (2002-10-12) 07:07.05:501 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/InvokeContext: Current Sitemap Parameters: PARAM: '2' VALUE: 'howto-wizard.html' PARAM: '1' VALUE: 'xmlform' PARAM: '0' VALUE: 'xmlform/howto-wizard.html' INFO(2002-10-12) 07:07.05:502 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/PreparableMatchNode: Matcher 'wildcard' matched prepared pattern 'howto-wizard.html' at file:/u01/t41xbeta/t419/webapps/cocoon/samples/xmlform/sitemap.xmap:98:48 DEBUG (2002-10-12) 07:07.05:503 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/InvokeContext: Current Sitemap Parameters: PARAM: '0' VALUE: 'howto-wizard.html' DEBUG (2002-10-12) 07:07.05:503 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.samples.xmlform.WizardAction from the pool. DEBUG (2002-10-12) 07:07.05:503 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Put a org.apache.cocoon.samples.xmlform.WizardAction back into the pool. DEBUG (2002-10-12) 07:07.05:504 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/InvokeContext: Current Sitemap Parameters: PARAM: 'page' VALUE: 'start' PARAM: '../0' VALUE: 'howto-wizard.html' DEBUG (2002-10-12) 07:07.05:504 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the pool. DEBUG (2002-10-12) 07:07.05:504 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: generators: ComponentSelector could not find the component for hint [file] DEBUG (2002-10-12) 07:07.05:505 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: generators: ComponentSelector could not find the component for hint [file] DEBUG (2002-10-12) 07:07.05:505 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.generation.FileGenerator from the pool. DEBUG (2002-10-12) 07:07.05:505 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.transformation.XMLFormTransformer from the pool. DEBUG (2002-10-12) 07:07.05:506 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt] DEBUG (2002-10-12) 07:07.05:506 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt] DEBUG (2002-10-12) 07:07.05:507 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.transformation.TraxTransformer from the pool. DEBUG (2002-10-12) 07:07.05:507 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt] DEBUG (2002-10-12) 07:07.05:507 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt] DEBUG (2002-10-12) 07:07.05:508 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.transformation.TraxTransformer from the pool. DEBUG (2002-10-12) 07:07.05:508 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: serializers: ComponentSelector could not find the component for hint [html] DEBUG (2002-10-12) 07:07.05:508 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ExcaliburComponentSelector: serializers: ComponentSelector could not find the component for hint [html] DEBUG (2002-10-12) 07:07.05:509 [sitemap] (/cocoon/samples/xmlform/howto-wizard.html) Thread-11/ResourceLimitingPool: Got a org.apache.cocoon.serialization.HTMLSerializer from the pool. DEBUG (2002-10-12) 07:07.05:512 [sitemap.transformer.xsltc]
Re: Port 8180 works, port 80 with mod_jk doesn't ... and it feelsso close
woo hoo ... that looks like that jsut may have been it ... I knew it had to be something obvious ... now to get the client to confirm that things look right for him :) Thanks ... On Fri, 11 Oct 2002, Geoff Howard wrote: I think you just need to add JkMount /* ajp13 right below your other JkMount. 0 You can see in the log below that / is processed with an exact match, and /index.html is processed with no match - meaning it wasn't sent on to cocoon correctly as the other was. Geoff P.S. Do you really mean 8180? Are you setting up multiple versions of tomcat or is there some other reason you've changed the default port? If there is another version running, does this setup leave those unaffected as it should? snip/ Now, turning the JK Log level to debug, I'm seeing: [Fri Oct 11 18:58:27 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Oct 11 18:58:27 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/' [Fri Oct 11 18:58:27 2002] [jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 - / snip/ (477)]: Attempting to map URI '/index.html' [Fri Oct 11 18:58:27 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match __ 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] - 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: XMLForm Howto - not Working still
I dont know, but the current built is a little buggy I recommend you to build 2 times after a build clean. Then try again. Antonio Gallardo El Viernes, 11 de Octubre de 2002 19:36, aps olute escribió: I have searched the list and seems no one responded with a working solution to this: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103109619221782w=2 I am experiencing this now to. The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. I have exact same version of tomcat 4.1.9 and c2 ver 2.1. I can run the wizard example fine. I looked at the WizardAction.java and compared with HowtoWizardAction.java, just one additional import org.apache.excalibur.source.Source; is what I can recognize but it seems it is not even used in the body. I have built it using the build.xml just like the howto said so, and deployed. Can someone shed some light and help a newbie please? __ 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] - 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]