RE: Converting a TREE FRAGMENT to a node-set()
Phil, if you're not afraid of something NOT standard (XSLT 1.1 has no provision for tree-fragment conversion, while the upcoming 2.0 has), you could use a Xalan extension function, see http://xml.apache.org/xalan-j/extensionslib.html#nodeset . Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Phil Blake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 6:34 AM To: [EMAIL PROTECTED] Subject: Converting a TREE FRAGMENT to a node-set() Hiya, How can I work on a RTREEFRAG as if it was a node-set, or how can I convert a RTREEFRAG to a node-set? Is there a node-set() available out of the box with Cocoon? What is the recommended way of achieving this? Thanks for your time, Phil - 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: XPath transformer?
Jeff, it came up to my mind just now... why don't you use a Xalan extension ? There is an evaluate function in there for such cases. Though I never use it, it seems to fit the bill: see for youself at http://xml.apache.org/xalan-j/extensionslib.html#evaluate . Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Jeff Turner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:46 AM To: [EMAIL PROTECTED] Subject: Re: XPath transformer? On Fri, Aug 30, 2002 at 10:55:03AM +0200, Luca Morandini wrote: Not easily, because the 'match' attribute cannot be dynamic. Eg, I Oh, I see... so you want a *dynamic* selector. Hmm... this was not apparent from your example, It seemed you wanted just a way to select one chapter amongst many. Anyway, I think you should dirt your fingers with Xalan to get want you want. Yes, it can be done with document() I cannot appreciate if this prospective XPathTransformer could be of general use, though... I never had such a need myself. FTR, I submitted an XPathTransformer at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235 --Jeff Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - 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: XPath transformer?
Luca Morandini wrote: Jeff, it came up to my mind just now... why don't you use a Xalan extension ? There is an evaluate function in there for such cases. Though I never use it, it seems to fit the bill: see for youself at http://xml.apache.org/xalan-j/extensionslib.html#evaluate . It's Xalan proprietary, and is much slower than just Xpath. Jeff did The Right Thing (TM), a Transformer is the best thing for this. -- 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]
Can't run commands from exec()
Hi ! I would like to execute some commands with exec(). But some work,some won't. Commands like mv, touch,unzip, zip, rm are OK and work perfectly well. But I'd like to call a java application (Saxon),and it doesn't work (java -jar /usr/local/saxon/saxon.jar ...). I've tried exactly the same command under the shell, it worked... Any idea ? Thanx, Gan.
Name of uploaded file converted...?
Hi all there, after while of staying back just lurking I'm back --- with a new (?) little problem. We want to upload files from the client to the server. The example packaged with the C2.0.3 distribution is just right for what we want, with just one little snag: If the filename contains special characters like German umlauts (see what they look like in my name: Bär), these special characters are converted to something else. Depending on the platform the Tomcat server is running on the umlauts are converted to question marks (Solaris) oder rectangles (Win2k/XP). * Does anyone of you know how to preserve the filename during upload? * If the filename changes the follow-up processing has no chance to find it. That is our problem. Thanks in advance, best wishes Peter Bär P.S.: Sorry for posting twice, forgot to specify a subject last time. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY?] How to parse an error
Hi, The first but not the best solution I found was using i18n to parse all the string. Obviously this is not the best way to do that. I think a little enhancement to Cocoon can be a better parsing of the errors like this: org.apache.cocoon.ProcessingException: Could not add record: java.sql.SQLException: ERROR: Cannot insert a duplicate key into unique index categoria_cat_name_key to something better like: errors count2/count error number1/number source org.apache.cocoon.ProcessingException /source message Could not add record /message /error error number2/number source java.sql.SQLException /source message Cannot insert a duplicate key into unique index categoria_cat_name_key /message /error /errors Regards, Antonio Gallardo El Sábado, 31 de Agosto de 2002 04:51, Antonio Gallardo Rivera escribió: Sorry, I forgot told that the formValdator logicsheet and the DB Action are working well. The category_name has set UNIQUE attribute. Then if I try to write a second register in the database with the same name, when it process the request it throw the error. (Its true because the DB does not allow another category_name field with the same attribute. My goal is process the error to make it more user-friendly. El Viernes, 30 de Agosto de 2002 23:23, Antonio Gallardo Rivera escribió: Hi, What can use to parse the error strings to make it more suitable to my language. I am building a Database web application and I need to parse the error to the user: From (error:description): org.apache.cocoon.ProcessingException: Could not add record: java.sql.SQLException: ERROR: Cannot insert a duplicate key into unique index categoria_cat_nombre_key To (string to the user): Cannot insert a duplicate key into unique index category_name 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] - 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]
Nullpointer Exception - SessionTransformer
Hallo @ all, I use cocoon 2.1dev and think I have a problem with the SessionTransformer. With the attached pipelinefragment I want to buil a html-site. Therefor I aggregate some xml-documents in a nested aggregation. In the pipeline mobiharzauth-navigation-* I want to integrate a login xml-file, which should display some user information from the session (Attechment). If I use no SessionTransform the tag session:getxml context=authentication path=// is integrate in my outpufile. But If I use the SessionTransformer there is an Error like: Thx in advance Dirk Error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Could not read resource file:/C:/Temp/tomcat/webapps/mh-portal/portal/resources/auth/login.xml: java.lang.NullPointerException at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:380) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:478) at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:155) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:506) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:477) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:155) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:585) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1000) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: XMLForm Wizard and Data Access
I have been working with Mod-DB and XMLForm and found that when you use the DatabaseSelectAction the values selected from the DB are stored in the request header. If you use xsp-request:get-attribute-names it will give you an attribute name like org.apache.cocoon.components.modules.output.OutputModule:users.name[0] where names[0] is an array of names based on your select statement, ie. select id, names from sometable where id = 1. If only one row is retrieved then there is only one value in the array. This can be used to populate the form. [EMAIL PROTECTED] wrote: Is there a way to add more items to the map that a FormWizardAction returns (i.e. more than just the page parameter)? On Monday 02 September 2002 12:25 pm, [EMAIL PROTECTED] wrote: I am trying to create a web application with the XMLForm wizard. I have one major problem though. -- I am having trouble loading data into the jbean from a database (imagine a screen to ident a user and then a screen to modify account data). As far as I can tell I would have to do the data access in the Action. I would really like to be able to use other cocoon data functionality to do this. -- Is there any chance that there will be an example using the personnel tables in the near future? This would be extremely helpful - 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] -- 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]
Problem with sunRise, please help :)
Hi, please help me. I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3 After the login I got this error: java.lang.NullPointerException Note java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1760) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1281) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1197) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process What I am doing wrong? 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]
variables in cocoon
Hello, I try to get an input to store it later on in a xml database. I've looked in Samples/Serverpages/Logicsheet but I didn't understand: - how to get input into the variables and - how to send the variables to another xsp, xml, ... -file This is my code so far: It shows me String name=null; String vorname=null; String hlink=null; and the input-fields and when I type senden(submit) the data is gone. :o( XML-file: I think that it doesn't make sense yet. Later I want to have the data here. ?xml version=1.0? mitarbeiter values value param=vorname type=string/ value param=name type=string/ value param=hlink type=string/ /values /mitarbeiter XSL-file: I don't know how to handle the variables. ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:xsp=http://apache.org/xsp; xsl:template match=/ body xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic String name=null; String vorname=null; String hlink=null; form action=mitarbeiter method=POST table border=1 input name=Eingabe type=hidden value=Add/ tr td paraVorname/para /td td input name=vorname type=text/ /td /tr tr td paraName/para /td td input name=name type=text/ /td /tr tr td paraHyperlink/para /td td input name=hlink type=text/ /td td input type=submit value=Senden/ /td /tr /table /form xsp:exprxsl:value-of select=name//xsp:expr /xsp:logic /xsp:page /body /xsl:template /xsl:stylesheet Sitemap: map:pipeline map:match pattern=mitarbeiter map:generate src=dbmitarbeiter/mitarbeiter.xml/ map:transform src=dbmitarbeiter/mitarbeiter.xsl type=xslt/ map:serialize type=html/ /map:match /map:pipeline thanks and regards Hans I use Win2k, Tomcat 4.0.4, Cocoon 2.0.3 (JDK1.3.1), Xindice 1.0, JDK1.3.1_04 and Wordpad :o) - 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]
send mail with attachment
Hi Themba Mbatha and Paul Pattison, please can you give me hints about the action I write to send email with attachments, since the attachment should be produced by cocoon itself... (a cocoon:// pipeline for example). How can I do this ? Thanks a lot to any other replier ;-) Barbara, C2.0.3. Reference : http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16927.html - 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: Problem with sunRise, please help :)
You may have a problem with your parser, check it and look in the archives for your error message: XMLUtil.getNodesFromPath, I've read this a couple of times... Babs - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 2:08 PM Subject: Problem with sunRise, please help :) Hi, please help me. I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3 After the login I got this error: java.lang.NullPointerException Note java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession Context.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java: 766) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122 ) at org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakar ta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files /org/apache/cocoon/www/sitemap_xmap.java:1760) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/ apache/cocoon/www/sitemap_xmap.java:1281) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/ apache/cocoon/www/sitemap_xmap.java:1197) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process What I am doing wrong? 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] - Please check that your question has not
RE: Problem with sunRise, please help :)
Antonio, try this: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102927633032114w=2 Matthew -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 2:08 PM To: [EMAIL PROTECTED] Subject: Problem with sunRise, please help :) Hi, please help me. I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3 After the login I got this error: java.lang.NullPointerException Note java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession Context.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java: 766) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122 ) at org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakar ta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files /org/apache/cocoon/www/sitemap_xmap.java:1760) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/ apache/cocoon/www/sitemap_xmap.java:1281) at org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/ apache/cocoon/www/sitemap_xmap.java:1197) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process What I am doing wrong? 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] - Please check that your question has not already been answered in the FAQ before posting.
RE: HTMLGenerator customizing
I've added some tags in the config file. Is other way to force HTMLGenerator to do not strip non-html tags? [EMAIL PROTECTED] wrote: Just a thought -- someone correct me if my reach is exceeding my grasp here -- would subclassing the HTMLGenerator to a derived 'HTMLGoLiveGenerator' compiled with the custom external config file make sense??? If the external config is generic enough for us all, which it seems to be, sane a patch and we'll put it in Cocoon HTMLGenerator :-) -- 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]
Re: Re : map parameter value and cocoon://
Barbara Post wrote: Forgot to mention : I use C 2.0.3 and cannot switch to 2.1 for this project for now... :-( - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:57 AM Subject: map parameter value and cocoon:// Hello, I use an Action. How can I pass as value of map:parameter name=foo value=... / the xml stream produced by a cocoon:// pipeline ? Is it possible ? No, unless you write your input module. Vadim Thanks, Barbara - 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: Is aggregate element attribute optional
Daniel Fournier wrote: Hi everybody. According to sitemap DTD v0.2 (C2.0.3), the aggregate element attribute is implied, then optional. It is required. See xitemap.xsl, line 1428 Vadim However, omitting it triggers a language exception when compiling the sitemap. What's the reason? Daniel Fournier - 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: Error in mounted sitemap (After update 2.0.2 - 2.0.3)
Frank Borkowsky wrote: Hello all! After an update from Cocoon 2.0.2 to 2.0.3 we have problems with mounted sitemaps in our project. We now get errors of the following type: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies Try compiled sitemap. AFAIR, this bug with treeprocessor is fixed in CVS. Vadim that org.apache.avalon.framework.configuration.ConfigurationException says: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 More precisely: org.apache.avalon.framework.configuration.ConfigurationException: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 All components are defined in our parent sitemap, so we only declare the default components in the sub sitemaps by: map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:selectors default=system/ map:matchers default=wildcard/ /map:components When we copy the full declarations of the components from the parent to the mounted sitemaps everything works fine (like before in version 2.0.2)! Are there any changes in declaration that we have to consider? Thanks in advance Frank [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]
[SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4
PROBLEM: When you are trying to use sunRise and your plataform is: Cocoon 2.0.3 Tomcat 2.1.8 or 2.1.9 Java 1.4 or 1.4.1 You get the following error: java.lang.NullPointerException java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836 at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession Context.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691 CAUSE: You have to configure java to work with this libraries: xalan-2.3.1.jar xercesImpl-2.0.0.jar xml-apis.jar SOLUTION: 1-Stop Tomcat. 2-Create a directory named endorsed at $JAVA_HOME/jre/lib/ 3-Copy from Cocoon the following files to the recent created directory: xalan-2.3.1.jar xercesImpl-2.0.0.jar xml-apis.jar 4-Restart Tomcat THANKS: Many thanks to Matthew Langham that provide me the link to: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102927633032114w=2 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: Re : map parameter value and cocoon://
ok Vadim... I had a look into the archives and SourceWritingTransformer (I can import in into my C2.0.3, can't I ?). However it seems that it can only write xml to a file, not pdf... My problem is rather dull: I have an xml file and a pdf one. I can get them from cocoon:// or a database (using xml:db API but then the xml needs some cleaning, this is why I would have prefered cocoon:// way...). Or I can have them on hard disk, but then the problem would be writing the pdf on hard disk. I need then to send them as attachments to an email. Maybe someone could send me the modified xsp that allows attachments to be sent along a mail ? Many thanks, maybe I want too much from cocoon... but this is critical to my project... what else could I do ? Barbara - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 2:51 PM Subject: Re: Re : map parameter value and cocoon:// Barbara Post wrote: Forgot to mention : I use C 2.0.3 and cannot switch to 2.1 for this project for now... :-( - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:57 AM Subject: map parameter value and cocoon:// Hello, I use an Action. How can I pass as value of map:parameter name=foo value=... / the xml stream produced by a cocoon:// pipeline ? Is it possible ? No, unless you write your input module. Vadim Thanks, Barbara - 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]
Livesite www.helnwein.com
hi list, there is a new C2.0.3 livesite: http://www.helnwein.com It is the official website of the austrian artist Gottfried Helnwein. Lots of articles, thousands of images, guestbook, simple lucene-search... . It is 100% cocoon, 100% db-driven, with a web-based maintainace interface. I'd be glad if it gets listed. Thanks, /Leo - 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 : Content Transformation from WORD/PDF/EXCEL to XML
Title: Message Hi, I have a requirement to convert hundreds of unstructured documents in WORD/PDF/TXT/EMAIL formats into a structured repository of XML Metadata of the document and the documents itself. I need to parse each of these documents and extract the relevant information to build a XML metadata document for each document. The XML structured metadata of the underlying document will contain fields like Keywords, Category, Doc Name, Author etc. Is it possible to use Cocoon and or POI to do this. And if yes how to use Cocoon to do the extraction. I am new to Cocoon, and trying to understand the world of transformers/generators etc. Also could I use Lucene to index the XML documents and build a search engine around it. I would like to know about the possible ways to do this. regards rajesh.
Re: Re : map parameter value and cocoon://
Barbara Post wrote: ok Vadim... I had a look into the archives and SourceWritingTransformer (I can import in into my C2.0.3, can't I ?). However it seems that it can only write xml to a file, not pdf... It can. It was recently explained on this list (something about specifying serializer). My problem is rather dull: I have an xml file and a pdf one. I can get them from cocoon:// or a database (using xml:db API but then the xml needs some cleaning, this is why I would have prefered cocoon:// way...). Or I can have them on hard disk, but then the problem would be writing the pdf on hard disk. I need then to send them as attachments to an email. I don't have anything on this. Vadim Maybe someone could send me the modified xsp that allows attachments to be sent along a mail ? Many thanks, maybe I want too much from cocoon... but this is critical to my project... what else could I do ? Barbara - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 2:51 PM Subject: Re: Re : map parameter value and cocoon:// Barbara Post wrote: Forgot to mention : I use C 2.0.3 and cannot switch to 2.1 for this project for now... :-( - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:57 AM Subject: map parameter value and cocoon:// Hello, I use an Action. How can I pass as value of map:parameter name=foo value=... / the xml stream produced by a cocoon:// pipeline ? Is it possible ? No, unless you write your input module. Vadim Thanks, Barbara - 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: still trying to create a searchable lucene index of my xml docments
Harry J. Foxwell wrote: I have a collection of xml documents in http://cs2.gmu.edu:8080/cocoon/Marchive, a.xml, b.xml, etc. I have an AE.xsl stylesheet in the Marchive directory that successfully transforms my documents into html when I browse to http://cs2.gmu.edu:8080/cocoon/Marchive/a, for example.. So far, so good. My pipeline for Marchive is simple: ... map:pipeline map:match pattern=Marchive/* map:generate src=Marchive/{1}.xml/ map:transform src=Marchive/AE.xsl/ map:serialize/ /map:match /map:pipeline ... Next, I want to create a searchable lucene index of Marchive, so that when I search for an element content, I get a list of http://cs2.gmu.edu:8080/cocoon/Marchive/a http://cs2.gmu.edu:8080/cocoon/Marchive/d etc and when I select one of these I get want the transformed-to-html displayed. Simple, I thought, but I can't modify the search example to generate my index. This SHOULD be easy, but I can't figure out the required pipeline or the format of the xml file containing links to my files. 1. You must have starting URL, so crawler can start with it ang go through all your documents. 2. content view should give meaningful results. This is what will be indexed. 3. Links view should give list of links. Otherwise crawler won't find where to go next from starting page. Read more on views in the docs. Vadim - 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] sunRise throw java.lang.NullPointerException in Java 1.4
Many thanks to Matthew Langham that provide me the link to: Glad to see that solved your problem. Matthew -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:07 PM To: [EMAIL PROTECTED] Subject: [SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4 PROBLEM: When you are trying to use sunRise and your plataform is: Cocoon 2.0.3 Tomcat 2.1.8 or 2.1.9 Java 1.4 or 1.4.1 You get the following error: java.lang.NullPointerException java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836 at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession Context.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691 CAUSE: You have to configure java to work with this libraries: xalan-2.3.1.jar xercesImpl-2.0.0.jar xml-apis.jar SOLUTION: 1-Stop Tomcat. 2-Create a directory named endorsed at $JAVA_HOME/jre/lib/ 3-Copy from Cocoon the following files to the recent created directory: xalan-2.3.1.jar xercesImpl-2.0.0.jar xml-apis.jar 4-Restart Tomcat THANKS: Many thanks to Matthew Langham that provide me the link to: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102927633032114w=2 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] - 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: Name of uploaded file converted...?
Peter Bär wrote: Hi all there, after while of staying back just lurking I'm back --- with a new (?) little problem. We want to upload files from the client to the server. The example packaged with the C2.0.3 distribution is just right for what we want, with just one little snag: If the filename contains special characters like German umlauts (see what they look like in my name: Bär), these special characters are converted to something else. Depending on the platform the Tomcat server is running on the umlauts are converted to question marks (Solaris) oder rectangles (Win2k/XP). * Does anyone of you know how to preserve the filename during upload? * I'm not sure, but this looks like same old form-encoding issue: you should let Tomcat know what is your form encoding. To preserve file name, you can either write an action which will rename them back to whatever is entered in the form, or fix the way how they are created. Vadim If the filename changes the follow-up processing has no chance to find it. That is our problem. Thanks in advance, best wishes Peter Bär P.S.: Sorry for posting twice, forgot to specify a subject last time. - 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]
Today usability of 2.1 version ?
Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. What is the difference between 2.1-dev and 2.1 beta ? What's missing today from cvs-head ? What about sunRise, is it as stable as in 2.0.3 ? There is a NPE with 2.0.3, jdk 1.3.1 and sunrise-lougout action... Thanks a lot (I want to use SourceWritingTransformer so rather moving now than recompiling Cocoon-2.0.3.jar ?). And there are new functionalities that may help myself too... Barbara - 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: repost : activeX (.cab) and C 2.0.3
Barbara, Are you sure that your pipeline works? Try to include an image which has the same path as the active-x. When this works change to .cab/application/octet-stream. Regards, Reinhard Cocoon does not add my activeX component to the html page it outputs. Even application/octet-stream set as mime type for the pipeline that reads the .cab does not work (no visible effect of the activeX that adjusts printing margins). Thanks for any hint, Barbara - 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] -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Today usability of 2.1 version ?
Barbara Post wrote: Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. This is not easy to anser. Most main components are still stable in 2.1, but some core components have changed - and most of them are stable, too. But there seems to be some minor problems in the current caching implementation of 2.1 - which should be fixed soon - the more people try out 2.1, the more bugs are found, the stabler it gets. What is the difference between 2.1-dev and 2.1 beta ? What's missing today from cvs-head ? There are no real plans for 2.1 beta yet. What about sunRise, is it as stable as in 2.0.3 ? There is a NPE with 2.0.3, jdk 1.3.1 and sunrise-lougout action... I think sunRise, sunSpot and also the SourceWritingTransformer are more stable in 2.1 than in 2.0.3. Thanks a lot (I want to use SourceWritingTransformer so rather moving now than recompiling Cocoon-2.0.3.jar ?). And there are new functionalities that may help myself too... Carsten - 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: Today usability of 2.1 version ?
Thanks Carsten, I will try it and help debugging if I can... at least post bugs. Does caching problem involve that I may have sudden deaths of Tomcat ? I will update it again and fully retest my app before we go on production stage... Barbara - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:14 PM Subject: RE: Today usability of 2.1 version ? Barbara Post wrote: Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. This is not easy to anser. Most main components are still stable in 2.1, but some core components have changed - and most of them are stable, too. But there seems to be some minor problems in the current caching implementation of 2.1 - which should be fixed soon - the more people try out 2.1, the more bugs are found, the stabler it gets. What is the difference between 2.1-dev and 2.1 beta ? What's missing today from cvs-head ? There are no real plans for 2.1 beta yet. What about sunRise, is it as stable as in 2.0.3 ? There is a NPE with 2.0.3, jdk 1.3.1 and sunrise-lougout action... I think sunRise, sunSpot and also the SourceWritingTransformer are more stable in 2.1 than in 2.0.3. Thanks a lot (I want to use SourceWritingTransformer so rather moving now than recompiling Cocoon-2.0.3.jar ?). And there are new functionalities that may help myself too... Carsten - 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 2.1-dev in Tomcat 4.1.7
On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. Any ideas? Matthew I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and jdk 1.3.1. This works fine out of the box. /Leo - 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: Today usability of 2.1 version ?
OK Lets go to 2.1! I will give a try in it. :) Antonio Gallardo El Martes, 03 de Septiembre de 2002 08:14, Carsten Ziegeler escribió: Barbara Post wrote: Hi, I finally may use 2.1 version but need to know : are the main components in use in 2.0.3 version still stable ? New components may be less stable, ok. This is not easy to anser. Most main components are still stable in 2.1, but some core components have changed - and most of them are stable, too. But there seems to be some minor problems in the current caching implementation of 2.1 - which should be fixed soon - the more people try out 2.1, the more bugs are found, the stabler it gets. What is the difference between 2.1-dev and 2.1 beta ? What's missing today from cvs-head ? There are no real plans for 2.1 beta yet. What about sunRise, is it as stable as in 2.0.3 ? There is a NPE with 2.0.3, jdk 1.3.1 and sunrise-lougout action... I think sunRise, sunSpot and also the SourceWritingTransformer are more stable in 2.1 than in 2.0.3. Thanks a lot (I want to use SourceWritingTransformer so rather moving now than recompiling Cocoon-2.0.3.jar ?). And there are new functionalities that may help myself too... Carsten - 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: Today usability of 2.1 version ?
Barbara Post wrote: Thanks Carsten, I will try it and help debugging if I can... at least post bugs. Does caching problem involve that I may have sudden deaths of Tomcat ? No, I don't think so - you might get a NPE very rarely but this should not kill Tomcat. Carsten - 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]
CVS build - missing WEB-INF/lib !
I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack it says : The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1 should work... What can be wrong ? The log says : java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1406) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1254) Ah well, lib subdirectory of WEB-INF is missing, argh... Strange... I used build.bat -Dinclude.webapp.libs=yes webapp - Original Message - From: leo leonid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:25 PM Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7 On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. Any ideas? Matthew I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and jdk 1.3.1. This works fine out of the box. /Leo - 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: CVS build - missing WEB-INF/lib !
Precision : no jar in the war. ok, I copy all the jars to the right place and Tomcat says it's ok now excepted : org.apache.avalon.framework.configuration.ConfigurationException: Cannot get component selector for 'serialize' at jndi:/localhost/cocoon/sitemap.xmap:386:31 So I comment the views/ part and cocoon's welcome page shows up... ok, now where is the link to sunspot demo portal in this 2.1 version ? ;-) Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:36 PM Subject: CVS build - missing WEB-INF/lib ! I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack it says : The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1 should work... What can be wrong ? The log says : java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1406) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1254) Ah well, lib subdirectory of WEB-INF is missing, argh... Strange... I used build.bat -Dinclude.webapp.libs=yes webapp - Original Message - From: leo leonid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:25 PM Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7 On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. Any ideas? Matthew I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and jdk 1.3.1. This works fine out of the box. /Leo - 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: CVS build - missing WEB-INF/lib !
-Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:47 PM To: [EMAIL PROTECTED] Subject: Re: CVS build - missing WEB-INF/lib ! Precision : no jar in the war. ok, I copy all the jars to the right place and Tomcat says it's ok now excepted : Did you specify the -Dinclude.webapp.libs=true option when building? org.apache.avalon.framework.configuration.ConfigurationException: Cannot get component selector for 'serialize' at jndi:/localhost/cocoon/sitemap.xmap:386:31 Do you use the same environment for building and running (same JDK)? So I comment the views/ part and cocoon's welcome page shows up... ok, now where is the link to sunspot demo portal in this 2.1 version ? ;-) It's on the welcome page (cocoon/samples/welcome) in the right column at the bottom. (or you can invoke (cocoon/samples/portal/ ) Carstne Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:36 PM Subject: CVS build - missing WEB-INF/lib ! I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack it says : The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1 should work... What can be wrong ? The log says : java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass Loader.jav a:1406) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass Loader.jav a:1254) Ah well, lib subdirectory of WEB-INF is missing, argh... Strange... I used build.bat -Dinclude.webapp.libs=yes webapp - Original Message - From: leo leonid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:25 PM Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7 On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. Any ideas? Matthew I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and jdk 1.3.1. This works fine out of the box. /Leo - 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]
Re: CVS build - missing WEB-INF/lib !
ah, I used -Dinclude.webapp.libs=yes webapp instead... guess I was on the wrong page. Will rebuild then. Yes my JAVA_HOME is jdk1.3.1. Your site is great with my other questions : http://ziegeler.bei.t-online.de/c2auth.html :-) Thanks. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:56 PM Subject: RE: CVS build - missing WEB-INF/lib ! -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:47 PM To: [EMAIL PROTECTED] Subject: Re: CVS build - missing WEB-INF/lib ! Precision : no jar in the war. ok, I copy all the jars to the right place and Tomcat says it's ok now excepted : Did you specify the -Dinclude.webapp.libs=true option when building? org.apache.avalon.framework.configuration.ConfigurationException: Cannot get component selector for 'serialize' at jndi:/localhost/cocoon/sitemap.xmap:386:31 Do you use the same environment for building and running (same JDK)? So I comment the views/ part and cocoon's welcome page shows up... ok, now where is the link to sunspot demo portal in this 2.1 version ? ;-) It's on the welcome page (cocoon/samples/welcome) in the right column at the bottom. (or you can invoke (cocoon/samples/portal/ ) Carstne Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 4:36 PM Subject: CVS build - missing WEB-INF/lib ! I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack it says : The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1 should work... What can be wrong ? The log says : java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass Loader.jav a:1406) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass Loader.jav a:1254) Ah well, lib subdirectory of WEB-INF is missing, argh... Strange... I used build.bat -Dinclude.webapp.libs=yes webapp - Original Message - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bug ? latest build and xml serializer in views /
org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar. (and works outsode of views). - 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: CVS build - missing WEB-INF/lib !
Barbara Post wrote: ah, I used -Dinclude.webapp.libs=yes webapp instead... guess I was on the wrong page. Will rebuild then. also build installwar or build installscratchpadwar can help for an easy install. -- 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: Cocoon 2.1-dev in Tomcat 4.1.7
Leo, thanks. The problem was in the way we were building the war file. Matthew -Original Message- From: leo leonid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:25 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7 On Tuesday, September 3, 2002, at 03:39 Uhr, Matthew Langham wrote: Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. Any ideas? Matthew I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and jdk 1.3.1. This works fine out of the box. /Leo - 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: bug ? latest build and xml serializer in views /
Are you sure you're using the latest code? I think this bug was fixed three or four weeks ago. The latest cvs works for me without any problems. Do you have an older avalon framework or excalibur in your classpath? HTH Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: bug ? latest build and xml serializer in views / org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar. (and works outsode of views). - 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]
xml:db API and C 2.1 ? [Re: bug ? latest build and xml serializer in views /]
Hi Carsten, No I don't have anything special in my classpath, using Tomcat 4.0.4, and it separates webapps so jars... Anyway there is still (CVS HEAD from this afternoon...) something wrong with View and serializers : org.apache.avalon.framework.configuration.ConfigurationException: Type 'html' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:123:20 ok, now I have moved and changed as needed my webapp to work under c2.1 and found this : org.apache.avalon.framework.configuration.ConfigurationException: Cannot get component selector for 'generate' at jndi:/localhost/baepp/sitemap.xmap:481:71 This plainly means that xml:db API usage has changed. I implemented my driver in the new section in cocoon.xconf, commented the old one there; added my transformer in the transformer section of the sitemap... So now, how do I use it ? To generate a page off my xml:db compliant xml database...? Neither in c2.0.3 nor in c2.1 did I have to declare an xmldb generator... Thank you. Barbara - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 5:35 PM Subject: RE: bug ? latest build and xml serializer in views / Are you sure you're using the latest code? I think this bug was fixed three or four weeks ago. The latest cvs works for me without any problems. Do you have an older avalon framework or excalibur in your classpath? HTH Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: bug ? latest build and xml serializer in views / org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar. (and works outsode of views). - 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 2.1-dev in Tomcat 4.1.7
Hi, does anyone have this combination running (jdk 1.3.1)? We have just tried to deploy a war file of the current 2.1 CVS version but without luck. Tomcat unpacks the war but doesn't seem to actually mount anything. Calling any Cocoon URI gives a 404. The log lists this exception: 2002-09-03 15:37:56 HostConfig[localhost] Error deploying web application directory cocoon java.io.IOException: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassCastException: org.apache.naming.resources.FileDirContext at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:262) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2185) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Any ideas? Matthew - 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]
[mark your calendars] Cocoon GetTogether / Belgium - 2002-11-19
Dear all, Outerthought is happy to announce its one-year anniversary, and is hosting a Cocoon/Forrest-related event on November 19th 2002 to celebrate this. In the 'morning' (10AM-2:30PM), we will host an informal Cocoon Users and Developers get-together with a couple of presentations, in the afternoon (3PM-5PM) we would like to introduce you to XReporter, our Avalon- and Cocoon-based datawarehouse reporting framework. Drinks will be served afterwards. More news will be posted when it becomes available, but you can send us an e-mail if you want to be informed of any updates. The event will be held near Ghent, Belgium and be free of charge. I will put up a webpage with some event information - but here's already your opportunity to mark the date in your agenda ;-) Companies interested in sponsoring the morning event can contact me. People who want to showcase their development work using Cocoon are invited to send us a presentation outline. Kind regards, /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: bug ? latest build and xml serializer in views /
Found it. build.xml doesn't copy across *-block.jar files for webapp-local (which invokes copy-webapp-libs rather than prepare-webapp-libs). I'll submit a patch via bugzilla. Cheers, Marcus On Tue, Sep 03, 2002 at 05:53:40PM +0200, Marcus Crafter wrote: Hi Carsten, Did you try the webapp-local build from latest CVS ? From what I can see, it doesn't copy the fop-block.jar file across from build into the WEB-INF/lib directory causing a stacktrace when using the webapp. When copying it across manually I can get the webapp up and running. Was this what you tested ? Cheers, Marcus On Tue, Sep 03, 2002 at 05:35:15PM +0200, Carsten Ziegeler wrote: Are you sure you're using the latest code? I think this bug was fixed three or four weeks ago. The latest cvs works for me without any problems. Do you have an older avalon framework or excalibur in your classpath? HTH Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: bug ? latest build and xml serializer in views / org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar. (and works outsode of views). - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in mounted sitemap (After update 2.0.2 - 2.0.3)
Vadim, can you please explain the problem. I had a very similar issue, but realised that Cocoon was giving misleading error messages. IOw, once I pulled the pipeline definitions from the sub-sitemap into the main, I was finally able to see the original problem. Thanks Werner Vadim Gritsenko wrote: Frank Borkowsky wrote: Hello all! After an update from Cocoon 2.0.2 to 2.0.3 we have problems with mounted sitemaps in our project. We now get errors of the following type: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies Try compiled sitemap. AFAIR, this bug with treeprocessor is fixed in CVS. Vadim that org.apache.avalon.framework.configuration.ConfigurationException says: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 More precisely: org.apache.avalon.framework.configuration.ConfigurationException: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 All components are defined in our parent sitemap, so we only declare the default components in the sub sitemaps by: map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:selectors default=system/ map:matchers default=wildcard/ /map:components When we copy the full declarations of the components from the parent to the mounted sitemaps everything works fine (like before in version 2.0.2)! Are there any changes in declaration that we have to consider? Thanks in advance Frank [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon : Content Transformation from WORD/PDF/EXCEL to XML
Rajesh Parekh wrote: Hi, I have a requirement to convert hundreds of unstructured documents in WORD/PDF/TXT/EMAIL formats into a structured repository of XML Metadata of the document and the documents itself. I need to parse each of these documents and extract the relevant information to build a XML metadata document for each document. The XML structured metadata of the underlying document will contain fields like Keywords, Category, Doc Name, Author etc. *Is it possible to use Cocoon and or POI to do this. And if yes how to use Cocoon to do the extraction. * Pieces of this yes and no. Right now you'd need to use POI directly as we've not written a Cocoon generator for Excel yet and our read support for Word is at best very immature hence there is no Serializer or Generator for it. I'm not sure Cocoon is appropriate for what you want to do to be honest. But definetly join the POI list if your interested in helping develop the word port I'm sure you could suit your needs so far as Excel/Doc go. -Andy I am new to Cocoon, and trying to understand the world of transformers/generators etc. Also could I use Lucene to index the XML documents and build a search engine around it. I would like to know about the possible ways to do this. regards rajesh. - 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: C2.0.3 silently ignoring exceptions
Did any of the Cocoon developers read this thread? Should I post it to cocoon-dev? I want to make sure these bugs get addressed. Thanks, Christopher Christopher Painter-Wakefield wrote: Thanks for the reply. I've attached some sample code that exhibits the problem, and a sitemap, xconf, and web.xml in case they are relevant. Using this code, if you choose the URL /home (e.g., http://localhost:8080/home , assuming the ROOT webapp), the XSP page attempts to read a parameter named msg, then uppercase its value, and pass it to the next stage. The obvious bug here is that if no parameter is provided, the value is null, and the attempt to call the toUpperCase() method results in a NullPointerException (error.log also attached). Under C2.0.2, this would be reported back to us through the browser along with a stack trace and so forth, which is very important for debugging in development. For production, we merely implemented some simple error handlers in the sitemap so our users would get a friendly message, without all the gore. I did try what you suggested. If I use the XML serializer instead of the default, it makes no change. However, if I remove the stylesheet transform step, I do get the error page as in C2.0.2. So the question is, why is the behavior different, and is it correct? If so, is there any way to get back to the C2.0.2 behavior for development? I don't see a handle-errors part in your sitemap. Thus, since you have told Cocoon to handle them, it should generate an internal server exception. Which somehow it doesn't send... hmmm... This led me to wonder whether the error handlers are working correctly in C2.0.3, and I found even more bizarre behavior here. I put in my production error handler, and it did, in fact, pick up the error and display more or less the correct error page. Ok, good. However, it somehow *also* ran the index.xsl on the stream. I'm not sure exactly what went on inside Cocoon, but what displayed in my browser had my production error page on top, and the styled output from index.xsl right below it. Looking at the source, I saw our entire production error page html, followed by the entire html as seen without an error handler, e.g. html body our production error page ... /body /html html body ... output from index.xsl ... /html Which isn't even correct HTML, I think, but IE displayed it anyway. This is certainly not correct behavior! So, I think I feel safe calling it a bug now. It seems that somehow C2.0.3 is applying the transform stage(s) in the original map:match block regardless of whether an error occurs or is handled. This is /another/ bug I guess :-/ The former has to do with the CocoonServlet error handling, the latter about how the TreeProcessor handles errors probably. BTW, are you using the compiled sitemap or the interpreted TreeProcessor one? BTW, does the same error happen in 2.1? (ATM I don't have time to test it, just looked at the files) - 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 runtime error: 'Session is required'
Dear All, I'm trying to implement session besed forms and have run into the following error: ERROR (2002-09-03) 18:56.26:764 [sitemap] (/tc/test-form.html) HttpProcessor[8080][4]/PipelineNode: Error while processing pipeline at jndi:/localhost/tc/sitemap.xmap:440:19 org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.IllegalArgumentException: CreateContext: Session is required at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:281) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:502) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:204) ... It seems that my xsp page (which is processed by the session transformer) is attempting to access session context without there being a session. I was under the (perhaps incorrect) assumption that when you use the session transformer that it creates a session if necessary. The session documentation doesn't say very much on this issue. Many thanks in advance for any tips (or pointers to relevant docs/howtos). My ultimate goal is to implement forms with validation, but I haven't yet studied all the XMLForms or Schematron stuff (any advice for which one to look at first or pointers to examples?). Best wishes to all, Alan Hodgkinson P.S. Here are portions of the revelent files: - The pipeline from the sitemap !-- Form Handler -- map:match pattern=*-form.html map:generate type=serverpages src=xsp/{1}-form.xsp/ map:transform type=session/ map:transform src=xsp/form2html.xslt/ map:transform src=xsp/simple-page2html.xsl/ map:serialize/ /map:match - The XSP page that caused the error: user-form.xsp (Which is called with the url user-form.html) xsp:page language=java create-session=yes xmlns:xsp=http://apache.org/xsp; xmlns:session=http://cocoon.apache.org/session/1.0; page titleNew User Entry/title !-- Question: is this needed? -- session:createcontext name=userdata/ content Enter information about the new user: session:form name=userInfo session:actionuser-info.html/session:action session:content table tr tdUser ID/td tdsession:inputxml context=userdata path=/user/userId name=userId type=text/ /td ... /table !-- Question: coocon seems to need context path, why? -- session:inputxml context=userdata path=/usr/submit name=submit type=submit value=Create User/ /session:content /session:form /content /page /xsp: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]
Re: Error in mounted sitemap (After update 2.0.2 - 2.0.3)
Werner Guttmann wrote: Vadim, can you please explain the problem. Nothing to explain, really. AFAIU, treeprocessor had some bug inheriting components declared in the parent sitemap. Compiled engine never had this bug. IIRC, this bug was fixed in the CVS by Sylvain. Vadim I had a very similar issue, but realised that Cocoon was giving misleading error messages. IOw, once I pulled the pipeline definitions from the sub-sitemap into the main, I was finally able to see the original problem. Thanks Werner Vadim Gritsenko wrote: Frank Borkowsky wrote: Hello all! After an update from Cocoon 2.0.2 to 2.0.3 we have problems with mounted sitemaps in our project. We now get errors of the following type: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies Try compiled sitemap. AFAIR, this bug with treeprocessor is fixed in CVS. Vadim that org.apache.avalon.framework.configuration.ConfigurationException says: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 More precisely: org.apache.avalon.framework.configuration.ConfigurationException: Type 'xslt' is not defined for 'transform' at file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x map:43:55 All components are defined in our parent sitemap, so we only declare the default components in the sub sitemaps by: map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:selectors default=system/ map:matchers default=wildcard/ /map:components When we copy the full declarations of the components from the parent to the mounted sitemaps everything works fine (like before in version 2.0.2)! Are there any changes in declaration that we have to consider? Thanks in advance Frank [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]
The order of the atributes can help developers
Hi, I am using jEdit (http://www.jedit.org) like the source editor. jEdit has a plug-in called XML-Tree. In this plug-in we can see the tree XML of tags and There we can see the attributes of a given tag. I think it can help better if the attribute name of the components will be the first declared attribute in the sitemap. Of course if it exists ;). This is just a question of order. I think it can help to make less errors. Maybe will be fine to write a recomendation of how to write Cocoon files. 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: The order of the atributes can help developers
Antonio Gallardo Rivera wrote: I think it can help better if the attribute name of the components will be the first declared attribute in the sitemap. Of course if it exists ;). Attribute order is irrelevant in an XML document - it is up to the application if the order is preserved. IIRC, Xalan sorts attributes alfabetically. For general sitemap editing woes, maybe have a look at http://pollo.sf.net/ - a general-purpose XML editor that comes with a configuration for Cocoon sitemap editing and some entry helpers for that purpose. Regards, /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: The order of the atributes can help developers
El Martes, 03 de Septiembre de 2002 13:30, Steven Noels escribió: Antonio Gallardo Rivera wrote: I think it can help better if the attribute name of the components will be the first declared attribute in the sitemap. Of course if it exists ;). Attribute order is irrelevant in an XML document - it is up to the application if the order is preserved. IIRC, Xalan sorts attributes alfabetically. I know that. But for the programmers can be better. I thinked in a recommendation or etiquette nothing more. Not to rewrite the SAX specification. ;) For general sitemap editing woes, maybe have a look at http://pollo.sf.net/ - a general-purpose XML editor that comes with a configuration for Cocoon sitemap editing and some entry helpers for that purpose. I know pollo too. But I feel it still in a beta release. I am currently coding with jEdit and the XML Tree Plug-in. Regards, /Steven - 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 installation problem
I have successfully installed Cocoon on MS Windows 2000, running under Tomcat. However, my installation on Linux is not working. Tomcat is working and set to the default port 8080, but when an xml file is accessed I see only the xml itself; no processing is taking place. I tried substituting the Cocoon xerces jar for the tomcat jar, but this made no difference. Aside from seeing no processing of the xml, there are no error messages. Thanks for any help. Dan Buskirk [EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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: C2.0.3 silently ignoring exceptions
Christopher Painter-Wakefield wrote: Did any of the Cocoon developers read this thread? Should I post it to cocoon-dev? I want to make sure these bugs get addressed. I am a Cocoon dev (I also wrote the error handling code, but it's not a compliment ATM I guess), but I have limited time ATM to check it out. The problem with this error stuff is that it encompasses all Cocoon. If someone somewhere fails to catch or rethrow the error properly, all sort of things can happen, mostly stacktraces that are not useful. The error is most probably as you say: It seems that somehow C2.0.3 is applying the transform stage(s) in the original map:match block regardless of whether an error occurs or is handled. It seems like a TreeProcessor issue, but I'm not sure. I tried making it appear in 2.1 but instead I get a general Cocoon Error. Please try it in 2.1, file a bug report on bugzilla, it will be looked at ASAP. Christopher Painter-Wakefield wrote: Thanks for the reply. I've attached some sample code that exhibits the problem, and a sitemap, xconf, and web.xml in case they are relevant. Using this code, if you choose the URL /home (e.g., http://localhost:8080/home , assuming the ROOT webapp), the XSP page attempts to read a parameter named msg, then uppercase its value, and pass it to the next stage. The obvious bug here is that if no parameter is provided, the value is null, and the attempt to call the toUpperCase() method results in a NullPointerException (error.log also attached). Under C2.0.2, this would be reported back to us through the browser along with a stack trace and so forth, which is very important for debugging in development. For production, we merely implemented some simple error handlers in the sitemap so our users would get a friendly message, without all the gore. I did try what you suggested. If I use the XML serializer instead of the default, it makes no change. However, if I remove the stylesheet transform step, I do get the error page as in C2.0.2. So the question is, why is the behavior different, and is it correct? If so, is there any way to get back to the C2.0.2 behavior for development? I don't see a handle-errors part in your sitemap. Thus, since you have told Cocoon to handle them, it should generate an internal server exception. Which somehow it doesn't send... hmmm... This led me to wonder whether the error handlers are working correctly in C2.0.3, and I found even more bizarre behavior here. I put in my production error handler, and it did, in fact, pick up the error and display more or less the correct error page. Ok, good. However, it somehow *also* ran the index.xsl on the stream. I'm not sure exactly what went on inside Cocoon, but what displayed in my browser had my production error page on top, and the styled output from index.xsl right below it. Looking at the source, I saw our entire production error page html, followed by the entire html as seen without an error handler, e.g. html body our production error page ... /body /html html body ... output from index.xsl ... /html Which isn't even correct HTML, I think, but IE displayed it anyway. This is certainly not correct behavior! So, I think I feel safe calling it a bug now. It seems that somehow C2.0.3 is applying the transform stage(s) in the original map:match block regardless of whether an error occurs or is handled. This is /another/ bug I guess :-/ The former has to do with the CocoonServlet error handling, the latter about how the TreeProcessor handles errors probably. BTW, are you using the compiled sitemap or the interpreted TreeProcessor one? BTW, does the same error happen in 2.1? (ATM I don't have time to test it, just looked at the files) -- 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: The order of the atributes can help developers
Antonio Gallardo Rivera wrote: El Martes, 03 de Septiembre de 2002 13:30, Steven Noels escribió: Attribute order is irrelevant in an XML document - it is up to the application if the order is preserved. IIRC, Xalan sorts attributes alfabetically. I know that. But for the programmers can be better. I thinked in a recommendation or etiquette nothing more. Not to rewrite the SAX specification. ;) The wonderful world of interpreting W3C specifications :-) In what way do you see preserving or fixing attribute order being 'better', except for presentation purposes? For general sitemap editing woes, maybe have a look at http://pollo.sf.net/ - a general-purpose XML editor that comes with a configuration for Cocoon sitemap editing and some entry helpers for that purpose. I know pollo too. But I feel it still in a beta release. I am currently coding with jEdit and the XML Tree Plug-in. In a Pollo display specification, you can specify the attributes that should be shown on the element and the order in which they should appear. But that's view-only, I believe, since the attribute editing pane operates on the DOM, where the order is so-called irrelevant and thus Pollo shows them ... alfabetically. Ha! :-) Pollo is by no means beta-quality, it's just sub-ambitious with regards to its version numbering scheme ;-) /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]
Session-Timeout
Hi I was wondering where i can define the session timeout for my cocoon application. I get errors if i try to set it anywhere in the web.xml with the following entry: session-config session-timeout60/session-timeout /session-config --- How can i change the default timeout value of my webapp ? thanx mike - 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]
Xopus2 has been open sourced
Hi As you probably have heard or read somewhere, Xopus 2 (or at least the most important modules of it) has been open sourced under the Apache license on August 30th: http://www.xopus.org We already have built an interface for an alpha version of Xopus 2 (which we kindly received from Q42 some weeks ago) within the Wyona project. We are now starting to really integrate the Xopus 2 OS version. Because the OS version has slightly changed to the preview version we had, we can't just plug it in unfortunately. We want to write code which should be usable by other Cocoon projects, such as for instance: -Xopus sitemap for reading and writing pipelines (Probably some Java classes are needed) -examples -documentation If we manage to write things generically (no Wyona dependencies) which I am sure we are able to, then we can certainly donate the code to the Cocoon project if you are interested in. Maybe you would like to join our efforts. Any help is very welcome. Thanks Michael wyona.org -- OSCOM - Open Source Content Management Conference September 25th - 27th 2002, Berkeley, California http://www.oscom.org/conferences/berkeley2002/ - 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]
XMLForm - Howto - Mailing List - Not working
I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml (start, registration, interest, organicGardening, cooking, smallholdingManagement, confirm, end) files in: %COCOON_HOME%\src\webapp\samples\xmlform\howto I put the howto-xmlform-sch-report.xml file in: %COCOON_HOME%\src\scratchpad\webapp\samples\xmlform\howto\schematron I put the HowToBean.java and HowtoWizardAction.java files in: %COCOON_HOME%\src\java\org\apache\cocoon\samples\xmlform\howto I added the sitemap entries to the sitemap in: %COCOON_HOME%\src\webapp\samples\xmlform I open a Command Prompt window and type: cd %COCOON_HOME% build webapp -Dinclude.webapp.libs=true webapp (lots of building goes on) Build Successful I copy the cocoon.war to the Tomcat webapps dir. I recycle Tomcat - cocoon.war is expanded. I browse to http://localhost:8080/cocoon/samples/xmlform/howto-wizard.html I receive this error: Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/samples/xmlform/howto-wizard.html path-info samples/xmlform/howto-wizard.html - Any ideas on what may be wrong here. I cannot find a howto-wizard.html file anywhere. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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: XMLForm - Howto - Mailing List - Not working
When I browse to http://localhost:8080/cocoon I get http://localhost:8080/cocoon/documents/index.html. Is this correct? It's just a documentation page. Shouldn't I be able to view samples from this first page? There's no sample link anywhere on this page I'm seeing. --- grenoml [EMAIL PROTECTED] wrote: I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml (start, registration, interest, organicGardening, cooking, smallholdingManagement, confirm, end) files in: %COCOON_HOME%\src\webapp\samples\xmlform\howto I put the howto-xmlform-sch-report.xml file in: %COCOON_HOME%\src\scratchpad\webapp\samples\xmlform\howto\schematron I put the HowToBean.java and HowtoWizardAction.java files in: %COCOON_HOME%\src\java\org\apache\cocoon\samples\xmlform\howto I added the sitemap entries to the sitemap in: %COCOON_HOME%\src\webapp\samples\xmlform I open a Command Prompt window and type: cd %COCOON_HOME% build webapp -Dinclude.webapp.libs=true webapp (lots of building goes on) Build Successful I copy the cocoon.war to the Tomcat webapps dir. I recycle Tomcat - cocoon.war is expanded. I browse to http://localhost:8080/cocoon/samples/xmlform/howto-wizard.html I receive this error: Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/samples/xmlform/howto-wizard.html path-info samples/xmlform/howto-wizard.html - Any ideas on what may be wrong here. I cannot find a howto-wizard.html file anywhere. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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: XMLForm - Howto - Mailing List - Not working
Yes, this is correct. In this versión the home page is the documentation. You can point the browser to: http://localhost:8080/cocoon/samples/ to see the samples. Antonio Gallardo El Martes, 03 de Septiembre de 2002 19:23, grenoml escribió: When I browse to http://localhost:8080/cocoon I get http://localhost:8080/cocoon/documents/index.html. Is this correct? It's just a documentation page. Shouldn't I be able to view samples from this first page? There's no sample link anywhere on this page I'm seeing. --- grenoml [EMAIL PROTECTED] wrote: I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml (start, registration, interest, organicGardening, cooking, smallholdingManagement, confirm, end) files in: %COCOON_HOME%\src\webapp\samples\xmlform\howto I put the howto-xmlform-sch-report.xml file in: %COCOON_HOME%\src\scratchpad\webapp\samples\xmlform\howto\schematron I put the HowToBean.java and HowtoWizardAction.java files in: %COCOON_HOME%\src\java\org\apache\cocoon\samples\xmlform\howto I added the sitemap entries to the sitemap in: %COCOON_HOME%\src\webapp\samples\xmlform I open a Command Prompt window and type: cd %COCOON_HOME% build webapp -Dinclude.webapp.libs=true webapp (lots of building goes on) Build Successful I copy the cocoon.war to the Tomcat webapps dir. I recycle Tomcat - cocoon.war is expanded. I browse to http://localhost:8080/cocoon/samples/xmlform/howto-wizard.html I receive this error: Cocoon 2 - Resource not found --- - type resource-not-found message Resource not found description The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/samples/xmlform/howto-wizard.html path-info samples/xmlform/howto-wizard.html --- -- Any ideas on what may be wrong here. I cannot find a howto-wizard.html file anywhere. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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 - Mailing List - Not working
Are you able to reach: http://localhost:8080/cocoon/samples/welcome and then follow the links under this section XMLForm: Form Handling and Web ServicesServices Also try the pre-bundled XMLForm demo http://localhost:8080/cocoon/samples/xmlform/wizard Ivelin - Original Message - From: grenoml [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 6:36 PM Subject: XMLForm - Howto - Mailing List - Not working I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml (start, registration, interest, organicGardening, cooking, smallholdingManagement, confirm, end) files in: %COCOON_HOME%\src\webapp\samples\xmlform\howto I put the howto-xmlform-sch-report.xml file in: %COCOON_HOME%\src\scratchpad\webapp\samples\xmlform\howto\schematron I put the HowToBean.java and HowtoWizardAction.java files in: %COCOON_HOME%\src\java\org\apache\cocoon\samples\xmlform\howto I added the sitemap entries to the sitemap in: %COCOON_HOME%\src\webapp\samples\xmlform I open a Command Prompt window and type: cd %COCOON_HOME% build webapp -Dinclude.webapp.libs=true webapp (lots of building goes on) Build Successful I copy the cocoon.war to the Tomcat webapps dir. I recycle Tomcat - cocoon.war is expanded. I browse to http://localhost:8080/cocoon/samples/xmlform/howto-wizard.html I receive this error: Cocoon 2 - Resource not found -- -- type resource-not-found message Resource not found description The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/samples/xmlform/howto-wizard.html path-info samples/xmlform/howto-wizard.html -- --- Any ideas on what may be wrong here. I cannot find a howto-wizard.html file anywhere. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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 - Mailing List - Not working
This is a good question. The link to all samples is http://localhost:8080/cocoon/samples/welcome How does one get there from the front page? - Original Message - From: grenoml [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 8:23 PM Subject: Re: XMLForm - Howto - Mailing List - Not working When I browse to http://localhost:8080/cocoon I get http://localhost:8080/cocoon/documents/index.html. Is this correct? It's just a documentation page. Shouldn't I be able to view samples from this first page? There's no sample link anywhere on this page I'm seeing. --- grenoml [EMAIL PROTECTED] wrote: I installed Cocoon 2.1 successfully (at least I can browse to http://localhost:8080/cocoon) and I am trying to get the Howto Mailing List example working. I've double checked all of my steps but I can't get it to work. I'm using Tomcat 4.1.9 and Cocoon 2.1 (09/02). I put all the .xml (start, registration, interest, organicGardening, cooking, smallholdingManagement, confirm, end) files in: %COCOON_HOME%\src\webapp\samples\xmlform\howto I put the howto-xmlform-sch-report.xml file in: %COCOON_HOME%\src\scratchpad\webapp\samples\xmlform\howto\schematron I put the HowToBean.java and HowtoWizardAction.java files in: %COCOON_HOME%\src\java\org\apache\cocoon\samples\xmlform\howto I added the sitemap entries to the sitemap in: %COCOON_HOME%\src\webapp\samples\xmlform I open a Command Prompt window and type: cd %COCOON_HOME% build webapp -Dinclude.webapp.libs=true webapp (lots of building goes on) Build Successful I copy the cocoon.war to the Tomcat webapps dir. I recycle Tomcat - cocoon.war is expanded. I browse to http://localhost:8080/cocoon/samples/xmlform/howto-wizard.html I receive this error: Cocoon 2 - Resource not found -- -- type resource-not-found message Resource not found description The requested URI /cocoon/samples/xmlform/howto-wizard.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/samples/xmlform/howto-wizard.html path-info samples/xmlform/howto-wizard.html -- --- Any ideas on what may be wrong here. I cannot find a howto-wizard.html file anywhere. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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] __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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 Wizard and Data Access
Sure, see org.apache.cocoon.samples.xmlform.WizardAction perform() returns a Map which is the action map. If you don't have anything extra to add to the map, you can use return page ( PAGE_NAME ); Otherwise you can do: Map actionMap = page( PAGE_NAME ); actionMap.add( myOwnKey, andObject ); you can of course override the act() method, which is not recommended. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:01 AM Subject: Re: XMLForm Wizard and Data Access Is there a way to add more items to the map that a FormWizardAction returns (i.e. more than just the page parameter)? On Monday 02 September 2002 12:25 pm, [EMAIL PROTECTED] wrote: I am trying to create a web application with the XMLForm wizard. I have one major problem though. -- I am having trouble loading data into the jbean from a database (imagine a screen to ident a user and then a screen to modify account data). As far as I can tell I would have to do the data access in the Action. I would really like to be able to use other cocoon data functionality to do this. -- Is there any chance that there will be an example using the personnel tables in the near future? This would be extremely helpful - 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]
RE: send mail with attachment
Hi Barbara, I finally got this to work just yesterday. I think I did it in a pretty ugly way, but it works. I changed the sendmail logicsheet so that it uses a URLDataSource instead of a FileDataSource for the attachment and then I gave it a hardcoded URL (ie http://localhost/whatever.pdf). I know this is not the best way of doing it, but I needed something to work quickly. I never did the get the 'cocoon://' way of doing it to work, but I didn't have a lot of time to play with it. I'll email you a copy so that you can see what I did. Paul -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: 03 September 2002 08:15 To: [EMAIL PROTECTED] Subject: send mail with attachment Hi Themba Mbatha and Paul Pattison, please can you give me hints about the action I write to send email with attachments, since the attachment should be produced by cocoon itself... (a cocoon:// pipeline for example). How can I do this ? Thanks a lot to any other replier ;-) Barbara, C2.0.3. Reference : http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16927.html - 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]