RE: Does HSSF Serializer work?
Look to my yesterday post. There I attach simple xml+xsl but with national chars. It works with Cocoon 2.0.2 JDK 1.3.1 Resin 2.0.5 Excel XP Win XP I think you have to try to rollback to JDK 1.3 and/or replace servlet container. I faced with some troubles on Resin and moved to Orion. With respect, Sozonnik Andrew. -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: Does HSSF Serializer work? Hello everyone, Before I go delving into everything, I wanted to ask if people were successful with using the HSSF Serializer. Currently it generates XLS files that crash Excel. I am using the latest (as in tonight) nightly build of Cocoon, Resin 2.0.2 and JDK 1.4 on Linux 2.4.17. The gnumeric XML file was created by Gnumeric 1.04. I recently saw a patch for HSSF serializer that said it now works with 1.04+. So far, it doesn't seem to make a difference. Any hints or prior experience? I'll keep looking into it. Thanks very much for your help, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem, I think
On 23.Apr.2002 -- 01:20 PM, [EMAIL PROTECTED] wrote: I working with on a simple database query with cocoon 2. I've done this with the older cocoon, but here I'm having a processing problem of some sort with the taglib. The connection pool is fine, that's working, however something goes wrong with the esql. It just sents the client back the xml without an attempt to do the query. I can even add an xsl and that works too, And a sitemap entry as follows: map:pipeline map:match pattern=**myfile.xml map:generate type=file src=docs/myfile.xml/ type=severpages You've employed the wrong generator. file just reads a file while serverpages transforms the tags to code and executes it. map:serialize type=xml/ /map:match /map:pipeline Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameter Selector Problem
On 24.Apr.2002 -- 10:30 AM, manish wrote: Hello, I am facing some problem while using Parameter Selector. I got one example in cocoon API, but when I am executing this example it give the following error. If I remove the line parameter name=parameter-selector-test value=myParameterValue/ then it don't give the error, but I need to declare the parameter for selector. I am struck due to this error, please help me. Regards, Manish Jain Code *** map:pipeline map:match pattern=test map:act type=test map:generate type=serverpages src=stylesheets/bptest.xsp/ parameter name=parameter-selector-test value=myParameterValue/ Old syntax. Please add map namespace: map:parameter name=parameter-selector-test value=myParameterValue/ Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about using custom tags in coccon
Hi All, I am new to coccon. I have the following question. Is it possible to use custom tags ( user defined tags) intermixed with the tags provided by cocoon framework ? If so could you please point me to some documentation on how to do that ? There are two possibilities of doing it: - implementing a transformer - implementing a logicsheet 1) transformer works with any XML input (file, XSP, output from another transformer) 2) logicsheet version will work only with XSP. A lot of transformers you'll find in xml-cocoon2\src\java\org\apache\cocoon\transformation\ and also in developers docs: http://xml.apache.org/cocoon/developing/extending.html Logicsheet samples you'll find in: xml-cocoon2\src\java\org\apache\cocoon\components\language\markup\xsp\java\ and also you can read my simple tutorial on making a custom logicsheet at: http://www.cocooncenter.org/cc/documents/resources/logicsheet/index.html Regards, Konstantin Piroumian I would greatly appreciate if you could email me directly as I am not subscribed to the alias. Thanks lot -Jayashri - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with XSP
On 23.Apr.2002 -- 09:54 PM, cyril vidal wrote: map:match pattern=compteur.xsp map:generate type=serverpages src=transforms/compteur.xsp/ You're sure you've got the right path to your file? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to append DOM Tree to XML using Cocoon 2
Hello expert: In Cocoon 1.0 I have used xspCurrentNode.appendChild(DocumentFragment) to append DOM Tree to the current XSP/XML, but in Coccon 2 ist this internal object xspCurrentNode not longer available. So I must go another way to append the DOM Tree. Do you know how I can do it? For your tips I am very appreciate. -- Huaiyang Mao Email: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
Your XSP was not compiled because it contains some error. Then you don't have a class and get a ClassNotFoundException. Search in the Tomcat work directory for compteur. Do you only find compteur_xsp.java? Or also compteur_xsp.class? Regards Edgar -Oorspronkelijk bericht-Van: cyril vidal [mailto:[EMAIL PROTECTED]]Verzonden: dinsdag 23 april 2002 21:55Aan: [EMAIL PROTECTED]Onderwerp: Problems with XSP HY! Iwould liketo execute a very simple XSP sample. Here is my sitemap: map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0" map:components map:generators default="file" map:generator name="file" src="org.apache.cocoon.generation.FileGenerator"/ map:generator name="serverpages" src="org.apache.cocoon.generation.ServerPagesGenerator"//map:generators map:transformers default="xslt" map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"//map:transformers map:readers default="resource" map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"//map:readers map:serializers default="html" map:serializer name="xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"/ map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer"/ map:serializer name="svg2png" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/png"/ map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" mime-type="application/pdf"//map:serializers map:matchers default="wildcard" map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"//map:matchers /map:components map:pipelines map:pipeline map:match pattern="index.html" map:read src="static/index.html" mime-type="text/html"/ /map:match /map:pipeline map:pipeline map:match pattern="CinemaFO.pdf" map:generate src="static/CinemaFO.xml"/ map:transform src="transforms/CinemaFO.xsl"/ map:serialize type="fo2pdf"/ /map:match /map:pipeline map:pipeline map:match pattern="compteur.xsp" map:generate type="serverpages" src="transforms/compteur.xsp"/ map:transform src="transforms/page-html.xsl"/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap Unfortunately, when I execute the file compteur.xsp, I get the following error message: type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\transforms\compteur_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.transforms.compteur_xsp sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri/essai/compteur.xsp path-infocompteur.xspSomeone could help me, please?Thanks,Cyril.
Re: Streamgenerator
Code my own generator is not possible due to a lack of java knowledge :-( Maybe someone can support me, i have some java-classes that do the parsing of Multipart-messages, but i don't know how to integrate them into cocoon. Is it possible to accept HttpRequests with the following MIME-Declarations by the StreamGenerator? No. It does not eat mime multipart. If not, can you give me some hints on how to accept these Requests? You can code own generator, base it on stream generator. Take a look at the cocoon.components.request.multipart package - it will help you with parsing this request. See also MultipartRequestFactoryImpl. Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does HSSF Serializer work?
On Tue, 2002-04-23 at 17:46, Andrew C. Oliver wrote: I'm on RHL 7.2, kernel 2.4.17/2.4.9-RH, JDK 1.3.1, Tomcat 4.0.1/4.0.4b2, Have Gnumeric 1.0.4. Do the samples not work? Can you open a bug and attach defective sheets and/or the xml/xsl you're using to generate it. Are any exceptions thrown? Version of Excel? (97+ is required) Actually, the samples work fine. It's sheets generated by gnumeric 1.0.4 that don't work. It's ok for me, since I'll be generating my sheets from another XML file. I eventually found a schema that generated correct Excel files. (I had to remove much extraneous info from the file generated by gnumeric) I'll open a bug and attach the offending gnumeric file. I didn't see any immediate exceptions, but I didn't look hard for them. I was also using Excel 2000. Thanks for your help! Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does HSSF Serializer work?
Oh so I misunderstood. It is working for you? Thats quite pleasing. I'd like to see more folks with non-roman alphabets involved in the project. Its difficult to test/implement things for languages that you can't even tell if the right characters are used. -Andy Sozonnik Andrew wrote: Look to my yesterday post. There I attach simple xml+xsl but with national chars. It works with Cocoon 2.0.2 JDK 1.3.1 Resin 2.0.5 Excel XP Win XP I think you have to try to rollback to JDK 1.3 and/or replace servlet container. I faced with some troubles on Resin and moved to Orion. With respect, Sozonnik Andrew. -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: Does HSSF Serializer work? Hello everyone, Before I go delving into everything, I wanted to ask if people were successful with using the HSSF Serializer. Currently it generates XLS files that crash Excel. I am using the latest (as in tonight) nightly build of Cocoon, Resin 2.0.2 and JDK 1.4 on Linux 2.4.17. The gnumeric XML file was created by Gnumeric 1.04. I recently saw a patch for HSSF serializer that said it now works with 1.04+. So far, it doesn't seem to make a difference. Any hints or prior experience? I'll keep looking into it. Thanks very much for your help, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ComponentException fatal error
From: Kari Whitcomb [mailto:[EMAIL PROTECTED]] I tried using Tomcat 4.0.4 b2 with Cocoon 2.0.2 as was suggested and got it working for a brief moment. But then I tried removing the cocoon webapp and re-deploying it, and now I'm getting the same errors as before with Tomcat 4.0.3. I've even tried reinstalling Tomcat 4.0.4 and Cocoon 2.0.2 again. And I'm still stuck. Any more thoughts on how to fix this? 1. Stop tomcat 2. Remove work directory (tomcat/work) 3. Delete all logs (tomcat/cocoon/WEB-INF/logs) 4. Start tomcat 5. Access Cocoon 6. Read log files, take a note of every exception. Send log snippets to the group. Vadim Thanks, Kari - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] Date: Tue, 23 Apr 2002 10:23:42 -0400 To: [EMAIL PROTECTED] Subject: RE: ComponentException fatal error From: Kari Whitcomb [mailto:[EMAIL PROTECTED]] You seem to be suggesting that there is no way to fix it with Tomcat 4.0.3. Is that correct? No, I was able to make it run. It more or less documented in install instructions. However, for the newcomers I suggest first to try with something stable, and only then (if still there is time/desire) try troublesome combinations. What in particular is causing the incompatibility? AFAIU, changes in the XML API class loading in the servlet spec and the way it is implemented in the 4.0.2-4.0.3 is the major PITA. Tomcat 4.0.4 looks to be working without issues, as Tomcat 4.0.1 was. Vadim ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does HSSF Serializer work?
Yeah lets definitely see that. G 1.0.4 should work. Not sure what in them that is choking it because the serializer ignores tags that it doesn't understand. So far G 1.0.4 works fine for me. Some people are excited when the next version of Gnumeric comes out.I'm usually scared ;-) Seth Ladd wrote: On Tue, 2002-04-23 at 17:46, Andrew C. Oliver wrote: I'm on RHL 7.2, kernel 2.4.17/2.4.9-RH, JDK 1.3.1, Tomcat 4.0.1/4.0.4b2, Have Gnumeric 1.0.4. Do the samples not work? Can you open a bug and attach defective sheets and/or the xml/xsl you're using to generate it. Are any exceptions thrown? Version of Excel? (97+ is required) Actually, the samples work fine. It's sheets generated by gnumeric 1.0.4 that don't work. It's ok for me, since I'll be generating my sheets from another XML file. I eventually found a schema that generated correct Excel files. (I had to remove much extraneous info from the file generated by gnumeric) I'll open a bug and attach the offending gnumeric file. I didn't see any immediate exceptions, but I didn't look hard for them. I was also using Excel 2000. Thanks for your help! Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Parameter Selector Problem
From: Christian Haul [mailto:[EMAIL PROTECTED]] On 24.Apr.2002 -- 10:30 AM, manish wrote: Hello, I am facing some problem while using Parameter Selector. I got one example in cocoon API, but when I am executing this example it give the following error. If I remove the line parameter name=parameter-selector-test value=myParameterValue/ then it don't give the error, but I need to declare the parameter for selector. I am struck due to this error, please help me. Regards, Manish Jain Code *** map:pipeline map:match pattern=test map:act type=test map:generate type=serverpages src=stylesheets/bptest.xsp/ parameter name=parameter-selector-test value=myParameterValue/ Old syntax. Please add map namespace: map:parameter name=parameter-selector-test value=myParameterValue/ And: READ LOG FILES Vadim Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pure txt as ouput
On Fri, 19 Apr 2002, Ariel Bender wrote: Hi all. I'm a newbie in these technologies, and I've got a problem that I don't know how to resolve. May be be someone can help me. I am using cocoon1, xml, xsl... I want to get a pure txt as output file, obviosly whithout a hedar, and also with no xml tags. I'm using this code: xsl:output method=text media-type=text omit-xml-declaration=yes indent=no encoding=ISO-8859-1/ but it doesn't work propely. xsl:output is The generated file is this: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN http://www.w3.org/TR/REC-html40/strict.dtd; contentTHE EXPECTED TEXT /content !-- This page was served in 538 milliseconds by Cocoon 1.8.2 -- Cocoon 1 does not support the xsl:output method. This is explained in the FAQ. You have to add the following processing instruction in your xsl stylesheet to output as pure text: ?cocoon-format type=text/plain? This should work. More information: when I try to save the file, the window dialog expects to save as html file, when I explicitly say that the filename is txlog.txt. Any ideas? Ariel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does HSSF Serializer work?
It is work, display western characters well. But russian chars become into this - @#$@#$%$%^ With respect, Sozonnik Andrew. -Original Message- From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: Re: Does HSSF Serializer work? Oh so I misunderstood. It is working for you? Thats quite pleasing. I'd like to see more folks with non-roman alphabets involved in the project. Its difficult to test/implement things for languages that you can't even tell if the right characters are used. -Andy Sozonnik Andrew wrote: Look to my yesterday post. There I attach simple xml+xsl but with national chars. It works with Cocoon 2.0.2 JDK 1.3.1 Resin 2.0.5 Excel XP Win XP I think you have to try to rollback to JDK 1.3 and/or replace servlet container. I faced with some troubles on Resin and moved to Orion. With respect, Sozonnik Andrew. -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: Does HSSF Serializer work? Hello everyone, Before I go delving into everything, I wanted to ask if people were successful with using the HSSF Serializer. Currently it generates XLS files that crash Excel. I am using the latest (as in tonight) nightly build of Cocoon, Resin 2.0.2 and JDK 1.4 on Linux 2.4.17. The gnumeric XML file was created by Gnumeric 1.04. I recently saw a patch for HSSF serializer that said it now works with 1.04+. So far, it doesn't seem to make a difference. Any hints or prior experience? I'll keep looking into it. Thanks very much for your help, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to append DOM Tree to XML using Cocoon 2
From: Huaiyang Mao [mailto:[EMAIL PROTECTED]] Hello expert: In Cocoon 1.0 I have used xspCurrentNode.appendChild(DocumentFragment) to append DOM Tree to the current XSP/XML, but in Coccon 2 ist this internal object xspCurrentNode not longer available. So I must go another way to append the DOM Tree. Do you know how I can do it? For your tips I am very appreciate. Tip: xsp:exprmy_DOM_Node/xsp:expr Vadim -- Huaiyang Mao Email: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to send request paramater to a pipeline?
I have this firt pipeline : map:pipeline map:match pattern=etatdb map:generate type=serverpages src=etatdb.xsp/ map:transform src=etatdb.xsl/ map:serialize/ /map:pipeline when i use this pipeline, my URL is : http:://localhost/cocoon/phl/etatdb?client=1region=PL I have a second pipeline, that use database update action and i want redirect to the first pipeline when database is update : map:pipeline map:match pattern=majetatdb map:act set=etatdb map:parameter name=descriptor value=context://phl/histo_etatdb.xml/ map:redirect-to uri=/etatdb/ /map:act map:generate type=serverpages src=majetatdb.xsp/ map:transform src=majetatdb.xsl/ map:serialize/ /map:match /map:pipeline my question is : how i can force the request parameter to the map:redirect-to uri=/etatdb/. thanks Philippe LEBRETON - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ComponentException fatal error
OK, I did the requested steps. Using Apache 1.3.24 (using warp connector), Tomcat 4.0.4b2 and Cocoon 2.0.2. And here are all the errors in each of cocoon's log after trying to access its default main page. **access.log ERROR (2002-04-24) 09:46.58:991 [access](/cocoon/) Thread6/CocoonServlet: Problem with servlet org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) ***core.log - no errors present ***error.log ERROR (2002-04-24) 09:46.58:904[sitemap](/cocoon/) Thread-6/Handler: Error compiling sitemap org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) ERROR (2002-04-24) 09:46.59:081[access](/cocoon/) Thread-6/CocoonServlet: Problem with servlet org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) **sitemap.log ERROR (2002-04-24) 09:46.58:847 [sitemap](/cocoon/) Thread-6/Handler: Error compiling sitemap org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11)
Exclude in directory generator
Hi, I need use the exclude attribute in directory generator, but don't know what's the exact syntax. More precisely, what should be the value of exclude attribute when I want to exclude directories named CVS ? Thanks a lot for any help, Martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPE when using HSSFSerializer + big pipeline
Hello, I'm using the following pipeline: map:pipeline map:match pattern=*.xml map:generate src={1}.xml/ map:transform type=sql map:parameter name=use-connection value=seclog/ /map:transform map:transform src=test.xslt/ map:transform src=output.xslt/ map:transform src=convert.xslt/ map:transform src=final.xslt/ map:serialize type=xls/ /map:match /map:pipeline Notice at the end, I use the HSSFSerializer. I currently am getting a huge string of NPEs in the error.log (included below). When I change to the xml serializer or the html serializer, it works great. Also, I've tested the output from final.xslt (saved as raw xml) and piped it directly into the HSSFSerializer which worked great. I only get the NPEs when using the above pipeline. Does this NPE make any sense? (note: I'm currently trying different permutations to isolate the error) Any tips or help would be greatly appreciated! I'm so close. :) Thanks, Seth FATAL_E (2002-04-24) 09:42.28:545 [core.xslt-processor] (/notif/test.xml) tcpConnection--0/TraxErrorHandler: Error in TraxTransformer: javax.xml.transform.TransformerException: java.lang.NullPointerException javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:434) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:112) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:220) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN10233(sitemap_xmap.java:1656) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1505) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1451) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) 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:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82) at com.caucho.server.http.Invocation.service(Invocation.java:277)
xsp-request:get-parameter tag problem
Hello all, I want to use request parameter value in xsp as field xsp-request:get-parameter name=txtValuexsp:attribute name= default333/xsp:attribute/xsp-request:get-parameter /field It doesnot work, doesnot show default value. But if I use as field xsp-request:get-parameter name=txtValue default=333/ /field It works. How can I set default value as shown in first way? Thanks, Niket - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exclude in directory generator
From: Martin Grebac [mailto:[EMAIL PROTECTED]] Hi, I need use the exclude attribute in directory generator, but don't know what's the exact syntax. Exclude attribute has regular expression syntax: http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html More precisely, what should be the value of exclude attribute when I want to exclude directories named CVS ? Regular expression should match File.getName(). I guess attribute should look like: exclude=^CVS$ Vadim Thanks a lot for any help, Martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
image problem
hi! i have a new problem: i use xsp and xsl to generate a page. on this page i have a table and in some fields, i have to put images. for that, in xsl file i used: img src=/src/web/img/img4.gif/. but nothing is displayed. i think that the problem is from the path. how can i determine the corect path ? my structure of my application is: estuff -src -web -xsp home.xsp -stylesheets home.xsl -img img4.gif in sitemap.xmap i have : map:match pattern= map:redirect-to session=false uri=home/ /map:match map:match pattern=home map:generate type=serverpages src=src/web/xsp/home.xsp/ map:transform type=xslt src=src/web/stylesheets/home.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=base-url value=/estuff/ /map:transform map:serialize/ /map:match i accesed the application localhost:8080/estuff in home.xsl i put img src=src/web/img/img4.gif/ an nothing happens. anybody could help me? tks a lot - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does HSSF Serializer work?
Okay, thats what I'm experiencing as well. I'm not real sure how they are supposed to be stored, apparently the 16-bit unicode that works for stuff like German umlauts doesn't work. This is obviously a problem with the API. Lets discuss this on poi-dev and see if we can work together to add russian support to the poi apis. -Andy Sozonnik Andrew wrote: It is work, display western characters well. But russian chars become into this - @#$@#$%$%^ With respect, Sozonnik Andrew. -Original Message- From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: Re: Does HSSF Serializer work? Oh so I misunderstood. It is working for you? Thats quite pleasing. I'd like to see more folks with non-roman alphabets involved in the project. Its difficult to test/implement things for languages that you can't even tell if the right characters are used. -Andy Sozonnik Andrew wrote: Look to my yesterday post. There I attach simple xml+xsl but with national chars. It works with Cocoon 2.0.2 JDK 1.3.1 Resin 2.0.5 Excel XP Win XP I think you have to try to rollback to JDK 1.3 and/or replace servlet container. I faced with some troubles on Resin and moved to Orion. With respect, Sozonnik Andrew. -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: Does HSSF Serializer work? Hello everyone, Before I go delving into everything, I wanted to ask if people were successful with using the HSSF Serializer. Currently it generates XLS files that crash Excel. I am using the latest (as in tonight) nightly build of Cocoon, Resin 2.0.2 and JDK 1.4 on Linux 2.4.17. The gnumeric XML file was created by Gnumeric 1.04. I recently saw a patch for HSSF serializer that said it now works with 1.04+. So far, it doesn't seem to make a difference. Any hints or prior experience? I'll keep looking into it. Thanks very much for your help, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
more HSSFSerializer experience
Hello again, I've been playing around trying to isolate the cause of those NPEs. I shortened the pipeline to test the XSLT sheet and the serializer. This scenario works: map:pipeline map:match pattern=*2.xml map:generate src={1}2.xml/ map:transform src=final.xslt/ map:serialize type=xls/ /map:match /map:pipeline The XML file used above was originally generated from my previous example: map:pipeline map:match pattern=*.xml map:generate src={1}.xml/ map:transform type=sql map:parameter name=use-connection value=seclog/ /map:transform map:transform src=test.xslt/ map:transform src=output.xslt/ !-- the xml file above came from the below transformer -- map:transform src=convert.xslt/ map:transform src=final.xslt/ map:serialize type=xls/ /map:match /map:pipeline Note that the short pipeline works great (the Excel file works wonderfully). The long pipeline does now work (I get the NPEs from my previous post). Yet the short pipeline uses XML generated by the long pipeline, plus the same final XSLT file and the same serializer. Any ideas at all? I'm getting into areas of cocoon I don't quite understand. Thanks so much, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: image problem
Do you have a '**.gif' matcher in your sitemap? I'm still a bit of a newbie, but I'm pretty sure you need this in your sitemap. It would look something like this: map:match pattern=images/**.gif map:read mime-type=image/gif src=resources/images/{1}.gif/ /map:match Hope that helps, Paul -Original Message- From: Bogdan Cirstea [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 10:30 To: [EMAIL PROTECTED] Subject: image problem hi! i have a new problem: i use xsp and xsl to generate a page. on this page i have a table and in some fields, i have to put images. for that, in xsl file i used: img src=/src/web/img/img4.gif/. but nothing is displayed. i think that the problem is from the path. how can i determine the corect path ? my structure of my application is: estuff -src -web -xsp home.xsp -stylesheets home.xsl -img img4.gif in sitemap.xmap i have : map:match pattern= map:redirect-to session=false uri=home/ /map:match map:match pattern=home map:generate type=serverpages src=src/web/xsp/home.xsp/ map:transform type=xslt src=src/web/stylesheets/home.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=base-url value=/estuff/ /map:transform map:serialize/ /map:match i accesed the application localhost:8080/estuff in home.xsl i put img src=src/web/img/img4.gif/ an nothing happens. anybody could help me? tks a lot - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp-request:get-parameter tag problem
On 25.Apr.2002 -- 02:20 AM, Niket Anand wrote: Hello all, I want to use request parameter value in xsp as field xsp-request:get-parameter name=txtValuexsp:attribute name= default333/xsp:attribute/xsp-request:get-parameter /field It doesnot work, doesnot show default value. But if I use as field xsp-request:get-parameter name=txtValue default=333/ /field It works. How can I set default value as shown in first way? You can't. Explanation: xsp-attribute adds an attribute to an XML tag that is delivered down the pipeline. Logicsheets are used to assemble the program that emits these tags. Use java to implement your logic. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp-request:get-parameter tag problem
I think I should use as field xsp-request:get-parameter name=txtValuexsp-request:defaultniket/xsp-request:default/xsp-reques t:get-parameter /field It is working fine - Original Message - From: Christian Haul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 8:24 PM Subject: Re: xsp-request:get-parameter tag problem On 25.Apr.2002 -- 02:20 AM, Niket Anand wrote: Hello all, I want to use request parameter value in xsp as field xsp-request:get-parameter name=txtValuexsp:attribute name= default333/xsp:attribute/xsp-request:get-parameter /field It doesnot work, doesnot show default value. But if I use as field xsp-request:get-parameter name=txtValue default=333/ /field It works. How can I set default value as shown in first way? You can't. Explanation: xsp-attribute adds an attribute to an XML tag that is delivered down the pipeline. Logicsheets are used to assemble the program that emits these tags. Use java to implement your logic. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
namespace prefixes in html output
Hi, I'm getting namespace prefixes in the html output from Cocoon 2.02 and I can't figure out how to get rid of them. The problem is that I cannot create valid html whilst they are there. The prefixes can occur under a few different circumstances, here's an example. One xml file does a cinclude like this: list titlei18n:textAcademic/i18n:text/title cinclude:include src=cocoon://school/vacancies/academic.xml/ /list the included xml (actually coming via a sub-sitemap and the html generator) will be something like: item link uri=somewherelink title/link /item When the combined xml has been transformed to html it looks like this: h4Academic:/h4 ul xmlns:cinclude=http://apache.org/cocoon/include/1.0; li a href=somewherelink title/a/li /ul The ul is the result of the transformation of the list, and the list was the parent element of the cinclude. So the ul gets the namespace of cinclude added. Why, is this meant to happen? Am I wrong in thinking that if the output is going to be html then no namespace attributes should make their way to the output? I read a few previous posts on this subject but I can't find any where the original poster reported success with the suggestions. I have tried using the exclude-result-prefixes attribute to the xsl:stylesheet element but it had no effect. Has anyone else managed to get around this problem? Any help would be much appreciated. Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Limit of three transformers with HSSFSerializer?
Hello again, It seems that my pipeline works with only 3 transformers. Unfortunately, I need more than that. The following pipeline: map:pipeline map:match pattern=*2.xml map:generate src={1}2.xml/ map:transform src=test.xslt/ map:transform src=output.xslt/ map:transform src=convert.xslt/ map:transform src=final.xslt/ map:serialize type=xls/ /map:match /map:pipeline Does not work, but if I remove a transformer (for instance, the test.xslt) it works fine. Summary of system: Resin 2.0.2 Sun JDK 1.4 Linux 2.4.17 Cocoon Nightly Build (2002-04-23) The error I get is a NullPointerException. For full stack trace, see my previous post. Is there a limit (either hard or soft) of transformers in a pipeline? Thanks very much, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ComponentException fatal error
And no other exceptions? Looks very strange. Search for sitemap_xmap.java in tomcat/work directory, and look into it. I guess for some reason it was not compiled. Vadim From: Kari Whitcomb [mailto:[EMAIL PROTECTED]] OK, I did the requested steps. Using Apache 1.3.24 (using warp connector), Tomcat 4.0.4b2 and Cocoon 2.0.2. And here are all the errors in each of cocoon's log after trying to access its default main page. **access.log ERROR (2002-04-24) 09:46.58:991 [access](/cocoon/) Thread6/CocoonServlet: Problem with servlet org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) ***core.log - no errors present ***error.log ERROR (2002-04-24) 09:46.58:904[sitemap](/cocoon/) Thread-6/Handler: Error compiling sitemap org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) ERROR (2002-04-24) 09:46.59:081[access](/cocoon/) Thread-6/CocoonServlet: Problem with servlet org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:293) (pc 257) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) java.lang.Exception: Could not create enough Components to service your request. at org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:133) (pc 110) at org.apache.avalon.excalibur.component.PoolableComponentHandler.get (PoolableComponentHandler.java:126) (pc 38) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select (ExcaliburComponentSelector.java:283) (pc 191) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d (ProgramGeneratorImpl.java:289) (pc 333) at org.apache.cocoon.sitemap.Handler.run (Handler.java:270) (pc 47) at java.lang.Thread.run (Thread.java:484) (pc 11) **sitemap.log ERROR (2002-04-24) 09:46.58:847 [sitemap](/cocoon/) Thread-6/Handler: Error compiling sitemap org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select
Re: how to send request paramater to a pipeline?
I have this firt pipeline : map:pipeline map:match pattern=etatdb map:generate type=serverpages src=etatdb.xsp/ map:transform src=etatdb.xsl/ map:serialize/ /map:pipeline when i use this pipeline, my URL is : http:://localhost/cocoon/phl/etatdb?client=1region=PL I have a second pipeline, that use database update action and i want redirect to the first pipeline when database is update : Try this map:pipeline here: map:match pattern=majetatdb* map:act set=etatdb map:parameter name=descriptor value=context://phl/histo_etatdb.xml/ and here: map:redirect-to uri=/etatdb{1}/ /map:act map:generate type=serverpages src=majetatdb.xsp/ map:transform src=majetatdb.xsl/ map:serialize/ /map:match /map:pipeline my question is : how i can force the request parameter to the map:redirect-to uri=/etatdb/. I'm not sure that this will work, but I would avoid redirect at all. Try to use internal redirect instead: map:redirect-to uri=cocoon:/etatdb/. Regards, Konstantin thanks Philippe LEBRETON - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem, I think
Christian Haul says: On 23.Apr.2002 -- 01:20 PM, [EMAIL PROTECTED] wrote: The connection pool is fine, that's working, however something goes wrong with the esql. It just sents the client back the xml without an attempt to do the query. I can even add an xsl and that works too, And a sitemap entry as follows: map:pipeline map:match pattern=**myfile.xml map:generate type=file src=docs/myfile.xml/ type=severpages You've employed the wrong generator. file just reads a file while serverpages transforms the tags to code and executes it. map:serialize type=xml/ /map:match /map:pipeline Thanks, yes that makes sense. However when I use serverpages I get a class not found (BTW, I'm using JDK 1.3.1 and Tomcat 4.0.1). I'd sure like to have this working! Sorry if I'm missing something obvious. org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/docs/myfile_xml' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.docs.myfile_xml at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:124) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.jav at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java: at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:168) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:154) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:238) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:276) at org.apache.cocoon.www.sitemap_xmap.matchN10292(sitemap_xmap.java:3373) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2488) etc... -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem, I think
On 24.Apr.2002 -- 08:54 AM, [EMAIL PROTECTED] wrote: Christian Haul says: On 23.Apr.2002 -- 01:20 PM, [EMAIL PROTECTED] wrote: Thanks, yes that makes sense. However when I use serverpages I get a class not found (BTW, I'm using JDK 1.3.1 and Tomcat 4.0.1). I'd sure like to have this working! Sorry if I'm missing something obvious. org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/docs/myfile_xml' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.docs.myfile_xml Looks like there is a problem with your XSP or - if any - your logicsheets. There should be another message telling you exactly what went wrong. Cocoon is very verbose on errors so sometimes one doesn't spot the root cause. Your XSP will be transformed to a java file, here org/apache/cocoon/www/docs/myfile_xml.java and then compiled to org/apache/cocoon/www/docs/myfile_xml.class (paths relative to $TOMCAT/work/localhost/cocoon/) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem, I think
Christian Haul says: On 24.Apr.2002 -- 08:54 AM, [EMAIL PROTECTED] wrote: Thanks, yes that makes sense. However when I use serverpages I get a class not found (BTW, I'm using JDK 1.3.1 and Tomcat 4.0.1). I'd sure like to have this working! Sorry if I'm missing something obvious. org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/docs/myfile_xm l' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.docs.myfile_xml Looks like there is a problem with your XSP or - if any - your logicsheets. There should be another message telling you exactly what went wrong. Cocoon is very verbose on errors so sometimes one doesn't spot the root cause. I don't know, it it pretty simple... ?xml version=1.0? xsp:page language=java xmlns:xsp=http://www.apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/2.0; page esql:connection esql:poolmy_pool/esql:pool esql:execute-query esql:queryselect 123450/esql:query esql:results headerheader info/header esql:row-results nesql:get-int column=Number//n /esql:row-results footerfooter info/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page I also, tried it with the jdbc login in there instead of the connection pool but the result was the same. I think the connection pool is working fine. Thanks for the feedback, I'll keep looking I guess. By the way, the SQL transforer works well but there's some little detail problems with that. I really need to use esql instead (so far). Your XSP will be transformed to a java file, here org/apache/cocoon/www/docs/myfile_xml.java and then compiled to org/apache/cocoon/www/docs/myfile_xml.class (paths relative to $TOMCAT/work/localhost/cocoon/) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem - Oh I see the trouble.
Christian Haul says: class not found. Looks like there is a problem with your XSP or - if any - your logicsheets. There should be another message telling you exactly what went wrong. Cocoon is very verbose on errors so sometimes one doesn't spot the root cause. Your XSP will be transformed to a java file, here org/apache/cocoon/www/docs/myfile_xml.java and then compiled to org/apache/cocoon/www/docs/myfile_xml.class (paths relative to $TOMCAT/work/localhost/cocoon/) I see the trouble. My files are all in a subdirectory (say myDir) under docs. Everything works except jsp where it will need to create and run the servlet. The work directory on contains docs/samples, docs/myDir isn't there, and that's the class not found. I left the myDir out of the code I posted here earlier to simplify it. I figured that was working since it's finding all my files fine. How do I add additional directories under docs and get the right directory structure to be created under $TOMCAT/work/localhost/cocoon/? Thanks! I'm making good progress! -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: namespace prefixes in html output
exclude-result-prefixes=cinclude see http://www.w3.org/TR/xslt#stylesheet-element Hi, I'm getting namespace prefixes in the html output from Cocoon 2.02 and I can't figure out how to get rid of them. The problem is that I cannot create valid html whilst they are there. The prefixes can occur under a few different circumstances, here's an example. One xml file does a cinclude like this: list titlei18n:textAcademic/i18n:text/title cinclude:include src=cocoon://school/vacancies/academic.xml/ /list the included xml (actually coming via a sub-sitemap and the html generator) will be something like: item link uri=somewherelink title/link /item When the combined xml has been transformed to html it looks like this: h4Academic:/h4 ul xmlns:cinclude=http://apache.org/cocoon/include/1.0; http://apache.org/cocoon/include/1.0 li a href=somewherelink title/a/li /ul The ul is the result of the transformation of the list, and the list was the parent element of the cinclude. So the ul gets the namespace of cinclude added. Why, is this meant to happen? Am I wrong in thinking that if the output is going to be html then no namespace attributes should make their way to the output? I read a few previous posts on this subject but I can't find any where the original poster reported success with the suggestions. I have tried using the exclude-result-prefixes attribute to the xsl:stylesheet element but it had no effect. Has anyone else managed to get around this problem? Any help would be much appreciated. Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Send Mail Problem
Title: Send Mail Problem Folks, I am using the latest sendmal.xsl which was updated by Christian Haul yesterday. Still I am getting the error Cocoon 2 - Internal server error type fatal message Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp description org.apache.cocoon.ProcessingException: Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp: org.apache.avalon.framework.component.ComponentException: Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mymail path-info mymail My configurations are as follows: cocoon.xconf * builtin-logicsheet parameter name=prefix value=sendmail/ parameter name=uri value=http://apache.org/cocoon/sendmail/1.0/ parameter name=href value=resource://silvy/logicsheet/sendmail.xsl/ /builtin-logicsheet sitemap.xmap *** map:pipeline map:match pattern=mymail map:generate type=serverpages src="mjsilvy/mail/mail.xsp/ map:serialize/ /map:match /map:pipeline mail.xsp ** ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0 page xsp:logic String text =Hi,\n+this mail has been send through a web form ...\n; /xsp:logic /page sendmail:send-mail sendmail:frommyemailaddress/sendmail:from sendmail:tomyemailaddress/sendmail:to sendmail:subjectsubject/sendmail:subject sendmail:smtphostmy smtp host/sendmail:smtphost sendmail:bodyxsp:exprtext/xsp:expr/sendmail:body /sendmail:send-mail /xsp:page Also the activation.jar and mail.jar are put in web-inf\lib directory. Server: Resin. I had downloaded the example for logic sheet at http://www.cocooncenter.de/cc/documents/resources/logicsheet/index.html It works perfectly. So there is no problems with my confoguration. I do not know what kind of xsl file if at all is required. I would like to ask for help in this regard ASAP. Silvy Mathews
More esql, short question on transformers
What is the difference between transformer type=serverpages and type=jsp ? -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: More esql, short question on transformers
Title: RE: More esql, short question on transformers serverpages = xsp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:20 PM To: [EMAIL PROTECTED] Subject: More esql, short question on transformers What is the difference between transformer type=serverpages and type=jsp ? -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More esql, short question on transformers (oops)
von Schwerdtner, Thomas (GXS, FPI) says: --_=_NextPart_001_01C1EBBC.1D67DE90 Content-Type: text/plain; charset=ISO-8859-1 serverpages = xsp Of course I meant to say generators. But at any rate, it seems that functionally a very simular execution path happens. The jsp type I guess can do a generic jsp, but serverpages has the advantages of cocoon's framework. I'm still struggling with using esql and thought I'd try it in a jsp with that generator type. I don't seem to be able to get that syntax right, but no matter, I'd rather put esql in an xml file and use serverpages, if I can get it to hppen, anyway. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:20 PM To: [EMAIL PROTECTED] Subject: More esql, short question on transformers What is the difference between transformer type=serverpages and type=jsp ? -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --_=_NextPart_001_01C1EBBC.1D67DE90 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=3DContent-Type CONTENT=3Dtext/html; = charset=3DISO-8859-1 META NAME=3DGenerator CONTENT=3DMS Exchange Server version = 5.5.2654.19 TITLERE: More esql, short question on transformers/TITLE /HEAD BODY PFONT SIZE=3D2serverpages =3D xsp/FONT /P PFONT SIZE=3D2gt; -Original Message-/FONT BRFONT SIZE=3D2gt; From: [EMAIL PROTECTED] [A = HREF=3Dmailto:[EMAIL PROTECTED];mailto:[EMAIL PROTECTED]/A]/FONT BRFONT SIZE=3D2gt; Sent: Wednesday, April 24, 2002 2:20 PM/FONT BRFONT SIZE=3D2gt; To: [EMAIL PROTECTED]/FONT BRFONT SIZE=3D2gt; Subject: More esql, short question on = transformers/FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; What is the difference between transformer = type=3Dquot;serverpagesquot; and/FONT BRFONT SIZE=3D2gt; type=3Dquot;jspquot; ?/FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; --/FONT BRFONT SIZE=3D2gt; Jeff Sexton/FONT BRFONT SIZE=3D2gt; ODS Health Plans/FONT BRFONT SIZE=3D2gt; [EMAIL PROTECTED]/FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; = -/F= ONT BRFONT SIZE=3D2gt; Please check that your question has not already = been answered in the/FONT BRFONT SIZE=3D2gt; FAQ before posting. lt;A = HREF=3Dhttp://xml.apache.org/cocoon/faqs.html; = TARGET=3D_blankhttp://xml.apache.org/cocoon/faqs.html/Agt;/FONT BRFONT SIZE=3D2gt; /FONT BRFONT SIZE=3D2gt; To unsubscribe, e-mail: = lt;[EMAIL PROTECTED]gt;/FONT BRFONT SIZE=3D2gt; For additional commands, e-mail: = lt;[EMAIL PROTECTED]gt;/FONT BRFONT SIZE=3D2gt; /FONT /P /BODY /HTML --_=_NextPart_001_01C1EBBC.1D67DE90-- -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem, I think
Christian Haul says: On 24.Apr.2002 -- 08:54 AM, [EMAIL PROTECTED] wrote: Christian Haul says: Looks like there is a problem with your XSP or - if any - your logicsheets. There should be another message telling you exactly what went wrong. Cocoon is very verbose on errors so sometimes one doesn't spot the root cause. Your XSP will be transformed to a java file, here org/apache/cocoon/www/docs/myfile_xml.java and then compiled to org/apache/cocoon/www/docs/myfile_xml.class (paths relative to $TOMCAT/work/localhost/cocoon/) the sitemap log contains a set of errors beginning with this: ERROR (2002-04-24) 11:33.24:977 [sitemap.generator.velocity] (/cocoon/myDir/myfile.xml) HttpProcessor[8080][4]/Vrator: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. I don't have any idea what this means. It seems like this just shouldn't be that hard. Maybe I should just stick with the earlier version of cocoon, it has esql files running fine. -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RosettaNet Standards Implementation
Hello, Heard about SAP Integration and all? Is there any one who has implemented / implementing/ specing RosettaNet PIP Implementations .. Regds, Chiths
Re: special characters for i18n
From: Horst Rutter [EMAIL PROTECTED] Sorry for not mentioning.. Yes, this is portuguese, but I don't want to mislead anybody, because I am not. The translation was provided by my wife who speaks native Portuguese. Fine! The only question I ask is: would you support your translation in future? Sometimes I need minor changes and cannot get a person for translating the needed text (e.g. Polish translation is left unsupported now). Send me your (latest) version of simple_dict.xml unless it's in cvs and I fill in the blanks. Hope to commit all the stuff today and will let you know when it's ready. You'll need to update only the messages_pt.xml. As far as providing simple_dict_pt.xml.. The reason I did this is I thought you are supposed to: Maintain a master dictionary that keeps growing (simple_dict.xml in this case) and then whenever you add a new locale or make corrections, extract out simple_dict_xx.xml using merge.xsl. (the template) Make the changes and merge back into the big one. Then use convert.xsl to generate the resource bundle messages_xx.xml used by Cocoon. This is what I concluded based on whatever documentation there was. ;( That could be reasonable to keep translations in sync, but I've never used it that way. So how is this supposed to work now? Now, as only messages_xx.xml are used, I've created a stylesheet that transforms the source file, say simple.xml, into messages_xx.xml converting all the i18n:text and i18n:param tags into message key=... /. you edit simple_dict.xml and then use convert.xsl to regenerate the message catalog for the locale in question? That's it? No, I don't touch the simple_dict.xml anymore. Moreover, I was going to remove all the legacy stuff (merge.xsl, convert.xsl, simple_dict.xml) from CVS, but it seems that I have to rethink it. Never thought that somebody went so far as using those stylesheets ;) Konstantin Horst - Original Message - From: Konstantin Piroumian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 4:50 AM Subject: Re: special characters for i18n Hi! Thanks for sending this. I guess that this is Portuguese? Could you also translate this line: Portuguese translation was made by your-name / [your-email /] and the country name of Portugal? Btw, the simple_dict_pt.xml is in the old dictionary format and it's not supported any more. Why do you use it? -- Konstantin Piroumian [EMAIL PROTECTED] Thanks, All very useful information. Still the solution to my problem was that I (blind me!) did not realize that the stupid MS WordPad writes UTF-16. Now I am aware of saving my files in UTF-8 (with MS Notepad) and voila here goes another extension for the i18n sample. (gotta move over to Debian one of these days..) For anyone of the commiters who cares I have attached simple_dict_pt.xml and messages_pt.xml (Was not sure if I should direct this directly to Konstantin Piroumian) Horst - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Send Mail Problem
Mathews, Silvy (HQP) wrote: My configurations are as follows: cocoon.xconf * builtin-logicsheet parameter name=prefix value=sendmail/ parameter name=uri value=http://apache.org/cocoon/sendmail/1.0/ parameter name=href value=resource://silvy/logicsheet/sendmail.xsl/ /builtin-logicsheet I don't know where you put the XSL but with the above it has to be contained in a jar with path silvy/logicsheet. If you have it in the original place and have rebuilt Cocoon, it would be something like resource://org/apache/cocoon (see other logicsheets in cocoon.xconf for exact path). If you have put it as a file somewhere, like $COCOON_HOME/logicsheets, it would be something like context://logicsheets/sendmail.xsl HTH Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Announcement] XMLForm 0.81 available in Scratchpad
+=+ [|] Cocoon's new form handling solution just got more robust [|] +-+ [|] with the addition of two new tags - group and repeat.[|] +=+ The syntax and semantics for these tags was borrowed from the XForms spec. http://www.w3.org/TR/xforms/slice9.html#ui-group http://www.w3.org/TR/xforms/slice9.html#ui-repeat http://www.w3.org/TR/2002/WD-xforms-20020118/sliceE.html I would like to note that repeat/ is a very powerful iterating tag, since it unrolls over a nodeset resulting from its xpath selector. Flat collections is the simplest type of things it can iterate over. See the XForms repeat tag documentation to learn what you can do with it and remember that since the underlying Form model can be a DOM node as well as a JavaBean or even both mixed together, the data structures which can be addressed and enumerated can be quite unconventional. The XMLForm demo in Cocoon Scratchpad was updated to show the use of group and repeat. When you build the latest cocoon snapshot with scratchpad, point your browsers to http://localhost:8080/cocoon/mount/xmlform/wizard.html This addition mostly concludes my mission of implementing a server-side XForms subset natively integrated in Cocoon. From here on, I will be looking for more feedback, suggestions for improvement, performance enhancements, patches and very crital - user documentation. The code has relatively detailed javadoc, but any assistance with a HOWTO document will be appreciated. Hopefully XMLForm can make it in the Cocoon 2.1 core distro if it gathers enough votes. Best wishes to all, Ivelin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple installation problem?
+ Cocoon 2.2 + Tomcat 4.0.4 b2 + WIN-2K + JBuilder+ Hi, All my setup is working fine, But when I try to call my own Java classes from XSP pages I get nothing, no error no content. While debugging my page_XSP.java class I notice there is a NoClassDefFoundError but there is no reason for that. The classes reside in the /WEB-INF/classes... so what could it be !? Thanks, Gal.
RE: Simple installation problem?
In some cases if the cocoon.jar (and its libs) are loaded from the lib directory they cannot see classes from the applications. Try putting cocoon.jar and its core libs in the WEB-INF/lib directory of you war. Or you can jar up your custom classes and throw that jar in tomcat's lib (where cocoon.jar lives). I had this problem witch C2.0.2, Tomcat 4.0.4b2 and JBoss 2.4 and since more than one app used Cocoon I had to go with the second option. Hope this helps. Artur... -Original Message- From: Gal Nitzan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 6:33 PM To: [EMAIL PROTECTED] Subject: Simple installation problem? + Cocoon 2.2 + Tomcat 4.0.4 b2 + WIN-2K + JBuilder+ Hi, All my setup is working fine, But when I try to call my own Java classes from XSP pages I get nothing, no error no content. While debugging my page_XSP.java class I notice there is a NoClassDefFoundError but there is no reason for that. The classes reside in the /WEB-INF/classes... so what could it be !? Thanks, Gal. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and Nokia Toolkit
Hello,My question is on configuring Cocoon to work with Nokia WAP Toolkit. I am trying to build and return a page based on the type of the device that sends a request. According to the documentation that I found on Cocoon site, this functionality has been tested with Nokia WAP Toolkitso I decided to give it a try.In my sitemap configuration I have the following entry in the pipeline:map:match pattern="*" map:generate type="serverpages" src="pages/{1}.xml"/ map:transform src="pages/common.xsl"/ map:serialize //map:matchI have also created a new XSL file, common2wap.xsl, that formats thecontent accroding to WAP spec. What do I need to do in order to forceCocoon to use common2wap.xsl instead of common.xsl whenever I hit the page from Nokia simulator? So far, the only site that I found to providethe answer to this is O'Reilly OnJava.com (http://www.onjava.com/pub/a/onjava/excerpt/java_xml_ch9/?page=5) Example 9-4 on this page suggests that I need to put ?xml-stylesheet href="pages\common2wap.xsl" type="text/xsl" media="explorer"?in my XML file in order to use the stylesheet appropriate for WAP. I've tried that but it did not work. The output is still built according to common.xsl. Is there a better way of doing this or am I missing something here?Thank you,Sergei Severin
Cocoon on webreference.com
Hi everyone, Not really sure how old the article is so maybe you've already seen this, but I recently stumbled on a Cocoon article on WebReference.com. Nothing really ground shaking, but it's nice to see Cocoon getting more exposure. Here's the link: http://www.webreference.com/xml/column52/ Paul - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating Javadocs with JDK1.4 latest Snapshot using -subpackageshack results bizarre
Now Perry Faulkner introduced the fact that Java SDK 1.4 introduced -subpackages to replace the -version -owner flags to make this javadoc build work after one generates a verbose output log file of the initial build -verbose javadocs yourLogFile, and then take that long command near the end of the output where it fails and then pass the fix. It worked for a while and then breaks. So I decided to remove the offending path reference to xml-cocoon2\src\java\org\apache\cocoon\components\language\programming\java or the .org path listing for the programming.java and reran the fix with the javadoc @myLogFileFix, for example. Interestingly it generates the html reference APIs for everything underneath that directory, even though I removed the reference to it in the path file. This just makes me want to know more how Cocoon is generating its API docs with the latest changes inside of SDK 1.4. -Marc // - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is the secret...
What is the trick to unsubscribing from this list? I've followed these instructions dozens of times by now, including direct email to the administrator, but the flood just continues. Yes, this is the address I subscribed with. To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple esql problem - Oh I see the trouble.
[EMAIL PROTECTED] wrote: Christian Haul says: class not found. Looks like there is a problem with your XSP or - if any - your logicsheets. There should be another message telling you exactly what went wrong. Cocoon is very verbose on errors so sometimes one doesn't spot the root cause. Your XSP will be transformed to a java file, here org/apache/cocoon/www/docs/myfile_xml.java and then compiled to org/apache/cocoon/www/docs/myfile_xml.class (paths relative to $TOMCAT/work/localhost/cocoon/) I see the trouble. My files are all in a subdirectory (say myDir) under docs. Everything works except jsp where it will need to create and run the servlet. The work directory on contains docs/samples, docs/myDir isn't there, and that's the class not found. I left the myDir out of the code I posted here earlier to simplify it. I figured that was working since it's finding all my files fine. How do I add additional directories under docs and get the right directory structure to be created under $TOMCAT/work/localhost/cocoon/? No need to - directories will be created as needed. So, you don't have a .java file. That means your transformation process is aborted by an error. I didn't see an obvious error in your previous post. Please show us the logs for this request. sitemap.log should contain all information needed. Look at the times and post all lines that belong together. There may be more than one error message and the root cause is not always the first error but sometimes the second or third. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the secret...
hey brad, give ur e-mail address in the subject Cheers Arul - Original Message - From: Brad Cox [EMAIL PROTECTED] To: Cocoon Mailing List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 9:03 AM Subject: What is the secret... What is the trick to unsubscribing from this list? I've followed these instructions dozens of times by now, including direct email to the administrator, but the flood just continues. Yes, this is the address I subscribed with. To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
clob-esql-xml
Hi all! How to extract clob column as xml into dynamic page? For example: my CLOB: h1hello!/h1 in sample.xsp I define: ... esql:execute-query esql:queryselect myclob from mytable/esql:query esql:results esql:row-results esql:get-xml column=myclob/ /esql:row-results /esql:results /esql:execute-query ... ?This example don't work :( What I'm wrong? Thanx. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changes.xml file invalid xml when parsed
The following cited source: SN AG, Germany is a no no. Modified my local copy with Samp;N AG, Germany, etc... and the build docs no longer fails. -Marc // - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]