TR: ESQL - informix
hello, is esql commands not supported in cocoon 2.1 ? abstractesqlconnection don't mention it ? === A. DANEELS [EMAIL PROTECTED] 0243083931 The present email and all information included therein do not constitute a legal agreement accorded by Jouve.All legal agreements must be formulated in writing on paper by a legal representative of JOUVE.If you have received this email by mistake, please inform us of that fact and destroy the email and any documents it might contain. Thank you for your cooperation. Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé parun représentant légal de JOUVE. Par ailleurs, si vous recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.
struts and cocoon
does anybody use struts and cocoon framework in a same application ? im looking for documentation best regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jboss and cocoon
hi does anybody used cocoon with jboss ? i would like to use mey ejb method : toXML() who transform ejb data in xml what kind of generator may i use ? thanks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbies : problem with sitemap.xmap
hi i got a problem with cocoon 2 i would like to serve static page so i write sitemap.xmap like this - map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators map:generator name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator/ /map:generators map:serializers map:serializer name=xml mime-type=text/xml src=org.apache.cocoon.serialization.XMLSerializer/ /map:serializers map:matchers 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=index.html mime-type=text/html/ /map:match /map:pipeline /map:pipelines /map:sitemap but it doesnt work in browser i always obtaint this message Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:360) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile( JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:417) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:353) ... 3 more org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile( JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:417) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoonsamples/index.html path-info index.html i dont understand
RE: newbies : problem with sitemap.xmap
i had it in sitemap.xmap but it doesnt work in catalina stdout i obtaint this -- Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 java.lang.RuntimeException: Fatal: Errors in XSLT transformation: Warning: File jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem ap.x sl; Line 1817; Column 34; [Logicsheet processor] Attribute 'type' missing in dynamic tag map:match Fatal: Ach?vement dirigU de la feuille de style at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3170) at java.lang.Thread.run(Thread.java:536) - and exactely the same message in browser -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED]] Envoye : jeudi 13 fevrier 2003 10:01 A : [EMAIL PROTECTED] Objet : Re: newbies : problem with sitemap.xmap you need a reader : map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers in the components see the sitemaAt 09:55 13/02/2003 +0100, you wrote: hi i got a problem with cocoon 2 i would like to serve static page so i write sitemap.xmap like this - map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators map:generator name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator/ /map:generators map:serializers map:serializer name=xml mime-type=text/xml src=org.apache.cocoon.serialization.XMLSerializer/ /map:serializers map:matchers 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=index.html mime-type=text/html/ /map:match /map:pipeline /map:pipelines /map:sitemap but it doesnt work in browser i always obtaint this message Cocoon 2 - Internal server error - --- type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorI mpl.createR esource(ProgramGeneratorImpl.java:360) at org.apache.cocoon.components.language.generator.ProgramGeneratorI mpl.load(Pr ogramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not define method process(org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors at org.apache.cocoon.components.language.programming.java.JavaLangua ge.compile( JavaLanguage.java:243) at org.apache.cocoon.components.language.programming.CompiledProgram mingLanguag e.load(CompiledProgrammingLanguage.java:207) at org.apache.cocoon.components.language.generator.ProgramGeneratorI mpl.generat eResource(ProgramGeneratorImpl.java:417) at org.apache.cocoon.components.language.generator.ProgramGeneratorI
RE: newbies : problem with sitemap.xmap
i dont understand (im thinking im stupid) it doesnt work too (im using tomcat 4.1.12, jdk sun 1.4.1, cocoon 2.0.4) i make a lot of changes (thanks lionel hussayn) but i got always the same message in tomcat stdout Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 java.lang.RuntimeException: Fatal: Errors in XSLT transformation: Warning: File jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem ap.xsl; Line 1817; Column 34; [Logicsheet processor] Attribute 'type' missing in dynamic tag map:match Fatal: Ach?vement dirigU de la feuille de style at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) at java.lang.Thread.run(Thread.java:536) last sitemap.xmap - map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:components map:generators default=file/ map:generator name=html src=org.apache.cocoon.generation.HTMLGenerator/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:matchers default=wildcard/ /map:components /map:components map:pipelines map:pipeline map:match pattern=index.html map:generate type=html src=index.html/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap - -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED]] Envoye : jeudi 13 fevrier 2003 10:21 A : [EMAIL PROTECTED] Objet : RE: newbies : problem with sitemap.xmap in my sitemap i write that : map:generator name=html src=org.apache.cocoon.generation.HTMLGenerator/ ... map:match pattern=html map:generate type=html src=test.html/ map:serialize/ /map:match It's working fine .. The reader is used for the css, jpg, etc Hope that help At 10:09 13/02/2003 +0100, you wrote: i had it in sitemap.xmap but it doesnt work in catalina stdout i obtaint this -- Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 java.lang.RuntimeException: Fatal: Errors in XSLT transformation: Warning: File jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap /java/sitem ap.x sl; Line 1817; Column 34; [Logicsheet processor] Attribute 'type' missing in dynamic tag map:match Fatal: Ach?vement dirigU de la feuille de style at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3170) at java.lang.Thread.run(Thread.java:536) - and exactely the same message in browser -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED]] Envoye : jeudi 13 fevrier 2003 10:01 A : [EMAIL PROTECTED] Objet : Re: newbies : problem with sitemap.xmap you need a reader : map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers in the components see the sitemaAt 09:55 13/02/2003 +0100, you wrote: hi i got a problem with cocoon 2 i would like to serve static page so i write sitemap.xmap like this - map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators map:generator name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator/ /map:generators map:serializers map:serializer name=xml mime-type=text/xml src=org.apache.cocoon.serialization.XMLSerializer/ /map:serializers map:matchers 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=index.html mime-type=text/html/ /map:match /map:pipeline /map:pipelines /map:sitemap but it doesnt work in browser i always obtaint this message Cocoon 2 - Internal server error - --- type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 241, column 54: '}' expected Line 63,
RE: newbies : problem with sitemap.xmap
ok now its work just one problem when i request http://localhost:8080/cocoonsamples/staticpages/index.html i obtain this error in browser (nothing in tomcat stdout) -- Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoonsamples/staticpages/index.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoonsamples/staticpages/index.html path-info staticpages/index.html -- but index.html exist in staticpages directory cocoonsamples + | +- staticpages | +- WEB-INF + | +- classes any idea ? -- map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators map:generator name=html src=org.apache.cocoon.generation.HTMLGenerator/ /map:generators map:transformers default=xslt/ map:serializers default=html/ map:matchers map:matcher name=referer-match src=org.apache.cocoon.matching.WildcardHeaderMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match type=referer-match pattern=staticpages/*.html map:generate type=html src=staticpages/{1}.html/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap - 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: newbies : problem with sitemap.xmap
-Message d'origine- De : SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 13 février 2003 16:25 À : [EMAIL PROTECTED] Objet : Re: newbies : problem with sitemap.xmap hmm. what's the name of your cocoon webapplication ? is it cocoonsamples ? yes webapps + | +- cocoonsamples + or do you have a subdirectory named cocoonsamples in your cocoon webapp ? in the latter case try: http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html dont like cocoon in your URL ? then look at http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerDefaultContext regards, hussayn arnaud wrote: ok now its work just one problem when i request http://localhost:8080/cocoonsamples/staticpages/index.html i obtain this error in browser (nothing in tomcat stdout) -- Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoonsamples/staticpages/index.html was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoonsamples/staticpages/index.html path-info staticpages/index.html -- but index.html exist in staticpages directory cocoonsamples + | +- staticpages | +- WEB-INF + | +- classes any idea ? -- map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators map:generator name=html src=org.apache.cocoon.generation.HTMLGenerator/ /map:generators map:transformers default=xslt/ map:serializers default=html/ map:matchers map:matcher name=referer-match src=org.apache.cocoon.matching.WildcardHeaderMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match type=referer-match pattern=staticpages/*.html map:generate type=html src=staticpages/{1}.html/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap - 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] -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
Maybe they should try Cocoon2 :-)
http://www.sun-catalogue.com/productdescription.xml?site=FR_FREcatalogue=FCsegment=FC_SCitem=FC_SC_CATgroup=1fid=4id=84 Cocoon 1.8.2 Error found handling the request. java.lang.Exception: XSP Java Compiler: Compilation failed for _productdescription.java 1649: Class _d5._suncatalogue._htdocs.ProductBrowser not found. ProductBrowser pb = sunRequest.getProductBrowser(); ^ 1649: Method getProductBrowser() not found in inner class _d5._suncatalogue._htdocs._productdescription. SunRequest. ProductBrowser pb = sunRequest.getProductBrowser(); ^ Note: /tmp/repository/_d5/_suncatalogue/_htdocs/_productdescription.java uses or overrides a deprecated API. Recompile with -deprecation for details. 2 errors, 1 warning at org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java, Compiled Code) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, Compiled Code) at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java, Compiled Code) Warning: this page has been dynamically generated. Copyright (c) 1999-2001 The Apache XML Project. All rights reserved. -- arnaud :: http://vbstefi60.fapse.ulg.ac.be/~arnaud/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aggregation problem
) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) /pre/p HR size=1 noshade /body /html Thanks for any help -- Arnaud http://vbstefi60.fapse.ulg.ac.be/ - 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]
Aggregation solution [was Re: Aggregation problem]
Vadim Gritsenko [EMAIL PROTECTED] wrote: From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hi Arnaud, It is necessary to define element for each map:part also: map:part src=cocoon:/autolayout.xml element=uuu/ map:part src=cocoon:/coco.xml element=ooo/ This is *not* necessary. See the documentation examples in cocoon (you also do not need to add the namespace argument)... Arnaud Vandyck wrote: Hi all, I have these entries in a sub-sitemap: map:match pattern=autolayout.xml map:read src=docs2/autolayout.xml mime- type=text/xml/map:read map:serialize type=xml / This is invalid pipeline. When you use map:read/, you can not use serializer. And, IIRC, pipeline with the map:read can not be aggregated. Try map:generate instead (with map:serialize). ... but I missed this! Thank you Vadim, it works fine. -- Arnaud http://vbstefi60.fapse.ulg.ac.be/ - 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]
User authentication [was Re: Cocoon2 mySQL database ...]
Uwe Stelzer [EMAIL PROTECTED] wrote: Now I only need a good user authentification against the database. You have an example Session XSP - Sample Session XSP to illustrate session handling. on the demo of Cocoon. You also have the Protected Area - An example web-application built around db-authenticator, form-validator, session-validator and session-invalidator actions. These two examples should be enough to start. Have fun, -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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: AW: Dummy proof XML on-line editing
Jorn Heid [EMAIL PROTECTED] wrote: Something about that: There are two possibilities for such an editor: 1. Use DHTML. This isn't cross-platform but it works (look for a demo of it in the developer mailinglist from Stefano Mazzocchi) for ie now. 2. Write your own Java application. I have written an XML editor as an applet (so, it's integrated with the browser) which is like XML Spy (based on XML schema, adding shows context sensitive possible elements and so on). It's based on Swing. You can use a styled editor if you want to some kind of WYSIWYG. You can also write an html editor with swing but it's very simple and not nearly WYSIWYG. Does anybody already use Pollo? Powerful! Maybe it is possible to embed this (java) application as an applet. It's opensource... http://pollo.sourceforge.net/ -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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: starting Xvfb for Cocoon
Cindy Ballreich [EMAIL PROTECTED] wrote: I have a very basic RedHat 7.0 web server (Apache 1.3.20) and I want to run Cocoon 2.0 with Tomcat 3.3. Apparently, I also need to run Xvfb in order for Cocoon to work properly. I would very much like to start Xvfb at boot time along with all of the other web services. I've written an init.d script to do this. snip/ start) echo -n Starting Xvfb services: Xvfb :1 -screen 0 800x600x8 export DISPLAY=:1 snip/ Maybe add export DISPLAY=:1 in the tomcat startup script. Personnaly, I launch Xvfb _in_ the tomcat startup script (maybe not a good solution but it works). the lines were submitted on this list by Jan Warnstam, here they are: start) if [ -f /tmp/.X47-lock ]; then # parfait, il y a un serveur echo XServer already running else # ici j'insere une ligne pour resoudre le probleme de XFree # ces deux lignes ont ete envoyees par Jan Warnstam # [EMAIL PROTECTED] export DISPLAY=localhost:47 su root -c Xvfb :47 -screen 1 640x480x16 -s /bin/sh fi Regards, -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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]
NoSuchMethodError at...components.browser.BrowserImpl.createDocument...
Hi all, Don't know why my cocoon won't run anymore?! ERROR (2001-12-12) 14:38.34:821 [cocoon ] (/cocoon/) Thread-20/Handler: Error compiling sitemap java.lang.NoSuchMethodError at org.apache.cocoon.components.browser.BrowserImpl.createDocumentForBrowserInfo(BrowserImpl.java:379) at org.apache.cocoon.components.browser.BrowserImpl.compose(BrowserImpl.java:156) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) Is it one more time an XML parser problem? OS:Debian/GNU Linux, Woody JVM: Blackdown 1.3 Tomcat: 3.3b1 -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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]
Recursive sub sitemaps
Is it possible to mount sub sitemaps recursively? I mean: /cocoon/sitemap.xmap (mount sub) /cocoon/sub/sitemap.xmap (mount undersub) /cocoon/sub/undersub/sitemap.xmap and so on... -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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: NoSuchMethodError at...components.browser.BrowserImpl.createDocument...
arnaud wrote: Hi all, Don't know why my cocoon won't run anymore?! ERROR (2001-12-12) 14:38.34:821 [cocoon ] (/cocoon/) Thread-20/Handler: Error compiling sitemap java.lang.NoSuchMethodError at org.apache.cocoon.components.browser.BrowserImpl.createDocumentForBrowserInfo(BrowserImpl.java:379) at org.apache.cocoon.components.browser.BrowserImpl.compose(BrowserImpl.java:156) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) Is it one more time an XML parser problem? OS:Debian/GNU Linux, Woody JVM: Blackdown 1.3 Tomcat: 3.3b1 I did upgrade to Tomcat4.0.1 and have no more problem, sorry for the noise... -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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 2 powered website
Hello all, I am really glad to announce that http://www.generasound.com/ is now Cocoon 2.0rc2 powered, and I would really enjoy to see it listed for that. Some pages are still in PHP, but the mini-websites built online by our members are fully Cocoon based, which allow them to choose a look whatever data they filled in. For example : http://www.generasound.com/espace/KERMA/ If you are an artist or musician and if you speak a bit of french, feel free to subscribe on generasound and build your site ! Great thanks to all Cocoon community for developping and supporting this excellent software. Arnaud Bienvenu http://www.generasound.com/ - 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: C2rc1 and MacOS X - build problem
Date: Wed, 26 Sep 2001 20:12:13 -0400 From: Michael Engelhart [EMAIL PROTECTED] I had this problem too. The .tar.gz distribution for some reason doesn't extract correctly if you use the command line. Stuffit Expander ignores this but some of the files are missing. Download the zip archive instead and you should be fine. Don't have MacOSX in front of me but is'nt gnutar present? Maybe use gnutar instead of tar... I'll check -- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE - 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: Separation of Logic and Content
Date: Wed, 29 Aug 2001 14:14:39 From: Beat De Martin [EMAIL PROTECTED] # # ## # # ### # # # ### ## # #### ## # # # # ## # ### # # # # # # # ## ##### # # # # # # ## # ### # # ### ## # ### # # # # ## # ### # ### If I want to separate logic (XSL) and content (XML) how will the sitemap look like ? map:match pattern=welcome map:generate src=docs/samples/samples.xml/ map:transform src=stylesheets/simple-samples2html.xsl/ map:serialize/ /map:match or maybe it's still the logicsheet question? or maybe you want to parse multiple xml files with the same stylesheet? map:match pattern=sites/*.apache.org map:generate src=docs/samples/sites/{1}_apache_org.xml/ !-- the line above is the original one map:transform src=stylesheets/sites/{1}_apache_org-html.xsl/ but you can replace it with this one -- map:transform src=stylesheets/sites/same_stylesheet_for_all_sites-html.xsl/ map:serialize/ /map:match I know I could handle the logicsheet like a taglib and make a new entry in the cocoon.xconf. Is there another way ? I don't think so ;) --Arnaud - 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: [c2] jdbc connection problem
Date: 28 Aug 2001 12:11:02 +0200 From: Christoph Kliemt [EMAIL PROTECTED] Hi! I still have problems connecting a postgres database. (Could not get the datasource java.sql.SQLException: You cannot get a Poolable before the pool is initialized) Driver is loaded ok; database is connectable (tested with a small java-program without the use of cocoon), config should be ok... i hope... Hmpf.. not that much information. Any hints? Is there another way to get more information? 1) are you sure the correct jar is in cocoon/WEB-INF/lib? 2) did you modify cocoon/WEB-INF/web.xml? 3) did you modify cocoon/cocoon.xconf? If everything is correct, Stop Tomcat (or your servlet engine), delete the working directory of your servlet engine, then run it again. --Arnaud - 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: [C2b2] esql tags in xsl stylesheets
Response below... Date: Fri, 24 Aug 2001 16:22:09 +0200 From: Orgalist [EMAIL PROTECTED] I can't make it work, the esql tags are not interpreted i also use esql tags in file.xsp where it works if someone can help me thanks. (I know similar questions have been posted, but i could find a solution in the answers ) C. here's the namespace in my xsp file ===file.xsp=== xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; ... /xsp:page the part of the xsl i'd like to see working : ==file.xsl= ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; Impossible to do that! The esql *must* be in an xsp or xml page, never in the stylesheet. The esql tags will be removed when processing by Cocoon so you even can not match esql tags in xsl. Read the docs/samples/xsp/esql.xsp example or the employee examples (see the sitemap to know where to find it, must be in docs/samples/forms/employee.x* (xsp and xml)). Hope it helps, --Arnaud - 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: separation of content and logic
From: Karl Øie [EMAIL PROTECTED] Subject: RE: separation of content and logic Date: Thu, 23 Aug 2001 15:07:17 +0200 Message-ID: [EMAIL PROTECTED] btw: I'll try the id(xxx) tip you gave me, perhaps it can speed up things a lot! :-) Can you give us a feed back? ;) Thanks, --Arnaud - 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: newcomer: desperately impossible getting Cocoon Started
--- Enric Staromiejski [EMAIL PROTECTED] wrote: snip/ 2. We install Tomcat-3.2.1. (and it starts ok) It is possible to run T3.2.1 with C2b2 but 1) Tomcat 3.2.2 is out now. 2) Tomcat 3.3.x is better because it manages the jar files in a different way. The librairies of Tomcat can be completly different of the one of your webapp(s). So you can use different parser for Tomcat, Cocoon and other parsers. I think it is recommended to use this version of Tomcat (or Tomcat4!). --Arnaud - 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]
[C2] esql from c2 to c2...
Hello, I have a strange problem with esql. I got a page running well with an old(one ortwomonth?)cvsversion ofcocoon2 http://vbstefi60.fapse.ulg.ac.be/www/index.html but with c2b2, it generates an error when compiling the page... of course, the source is not complete! I do not want to flood the list, so I made a quick page here: http://vbstefi30.fapse.ulg.ac.be/help/ with links to the source code, the generated code and the log. Thank you for your time, thank you for your help, --Arnaud - 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 Cocoon 2 with Tomcat 3.2.3-1 on Debian
From: Jan Warnstam [EMAIL PROTECTED] Subject: Problems with Cocoon 2 with Tomcat 3.2.3-1 on Debian Date: Thu, 23 Aug 2001 17:42:53 +0200 Message-ID: [EMAIL PROTECTED] First, I suspect that, since I am running both Cocoon and Tomcat on a remote server (which I access via SSH) the Tomcat engine has a problem with opening an X connection when AWT is invoked by Cocoon 2 (is it? it's a guess). I tried to patch this by setting the DISPLAY environment variable to localhost:47 in the /etc/init.d/tomcat shell script but that did not make it work, though it changed the behaviour since Tomcat stopped crashing and we got an error message in the browser instead. Check the log snapshot from cocoon.log below: I'm waiting for a better solution but I commented all the svg references in the sitemap... but there was a discussion a week ago, maybe you'll find an alternative in the archive. Now, also it seems that our Cocoon 2 is having problems reaching JdbcConnection, look below: I cannot do that to (but on MacOSX hsqldb works fine with cocoon2!). So I did create a postgresql db to use with cocoon2 and put the jar file for postgres in WEB-INF/lib and modify the entry in the cocoon.xconf. You can find the table here: http://vbstefi30.fapse.ulg.ac.be/help/cocoon_employee.sql [of course it's free! GPL, ASL, copyleft and what ever you want;))] Also, there is a complaint that the sitemap handler's sitemap is not available. This is also the error being printed on the error message page being displayed in the browser as I try to access :8081/cocoon/. Check the third and last log snapshot below: Well, I think it's because of the svg problem. Hope it helps, --Arnaud - 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: esql and UnsupportedEncodingException - patch proposal
I applied your patch instead of mine; it is smarter and does the job. Would some Cocoon Guru apply it to CVS ? What is the procedure to ask for it ? Don't you like it ? Here is Michael's patch again (using cocoon's coding style) : Index: ./src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl === RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v retrieving revision 1.16 diff -u -r1.16 esql.xsl --- ./src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl 2001/08/06 15:38:57 1.16 +++ ./src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl +2001/08/09 15:26:48 @@ -636,6 +636,8 @@ /xsl:otherwise /xsl:choose } catch (Exception _esql_exception_xsl:value-of select=generate-id(.)/_2) {} +} catch(java.io.UnsupportedEncodingException e) { + throw new RuntimeException(e.toString()); } if (_esql_queries.empty()) { _esql_query = null; -- Arnaud Bienvenu http://www.generasound.com/ - 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: esql and UnsupportedEncodingException - patch proposal
Oops, I found Michael's patch has a drawback : if you apply it and then you do not use the encoding attribute (i.e. esql:get-columns/), then you have an error : Exception java.io.UnsupportedEncodingException is never thrown in the body of the corresponding try statement. So finally the solution I posted at the beginning of this thread may be better. - 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: Can the sitemap pass parameters to XSP, like it passes them to XSL?
Tibi, You can get the parameter with this function : parameters.getParameter(lang, unknown); (unkown is the default value) If you want to insert it outside java code within your xsp, use xsp:expr : xsp:exprparameters.getParameter(lang, unknown)/xsp:expr If somebody knows a better way, please tell us :-) -- Arnaud Bienvenu http://www.generasound.com/ - 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]
esql get-colums NullPointerException
When you use esql:get-columns and one of your column has a NULL value, you find yourself with a disgracefull NullPointerException. Here is a patch for Cocoon2 to have an empty tag instead : Index: esql.xsl === RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v retrieving revision 1.15 diff -u -r1.15 esql.xsl --- esql.xsl2001/07/30 09:20:20 1.15 +++ esql.xsl2001/08/06 15:14:11 @@ -1079,8 +1079,10 @@ xsl:value-of select=$resultset/.getString(xsl:value-of select=$column-spec/) /xsl:when xsl:otherwise - new String (xsl:value-of select=$resultset/.getBytes + xsl:value-of select=$resultset/.getBytes(xsl:value-of +select=$column-spec/) + != null ? new String (xsl:value-of select=$resultset/.getBytes (xsl:value-of select=$column-spec/), xsl:value-of select=$encoding/) + : /xsl:otherwise /xsl:choose /xsl:template This solution is inspired from the patch posted by Matthew Cordes on 2001-02-22 about the same problem but applying to Cocoon1. Comments are very welcome. Arnaud Bienvenu http://www.generasound.com/ - 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]
[C2] Generator
Hi, does anyone knows where to find more documentation about Generator in Cocoon2? I want to make a new Generator. Does anyone do that ??? Where can I find examples or documentations ??? best regards Arnaud - 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: ESQL can't connect to PostgreSQL
Hi, I have PostgreSQL 7.1 up and running on my Debian BOX, JDBC driver (postgresql.jar) is in /usr/share/java, that is location where all jars are placed. Cocoon I v1.8.2, JServ v1.1.2, JDK 1.1.8v1.3. I have searched archive, found similar problems, but non of them told me why i can't connect to db. 1) put /usr/share/java/postgresql.jar in the classpath of JServ 2) It is recommended to use mod_jk and Tomcat instead of JServ 3) Debian packages are available for Tomcat (and Cocoon -12) (Woody) 4) You can also install JDK1.3 from BlackDown, they also have debian packages (IBM-JDK 1.3 is also available but not in .deb) 5) Please, do not post in html --Arnaud - 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: util:get-file-contents with Cocoon2.1-dev
On Wed, Jul 18, 2001 at 10:40:22AM -0700, Davanum Srinivas wrote: Try the latest Code from CVS. - Made the encoding attribute optional. Thanks for replying so fast, this works fine ! - Fixed relative path problem. (if you specify just data.txt it will look under cocoon directory for it). This still doesn't work; when I specify data.txt, I see the exception : java.io.FileNotFoundException: file:/usr/local/soft/jakarta-tomcat-3.2.2/webapps/cocoon (No such file or directory) Actually, looking at XSPUtil.relativeFilename(), I see line 102 : return NetUtils.getPath(context.getResource(filename).toExternalForm()); The getPath() method returns a path, not a filename, so I wonder how it could work. Moreover, the context.getResource() method calls javax.servlet.ServletContext.getResource() which needs to have a path begin with / as an argument, according to http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getResource(java.lang.String) To say the truth, I would have expected that util:get-file-contents could include a file relatively to the location of the XSP file, and not the cocoon path. I don't know if it is possible, but it would be great. Note that the IOException is thrown by design. The LogicSheet should not hide this exception. Well, in other including utilities you can find in util.xsl (i.e. util:include-file), all exceptions are catched, so why not for util:get-file-contents ? Thank you for your attention. P.S: Do you think this thread should migrate to cocoon-devel ? -- Arnaud Bienvenu http://www.generasound.com/ - 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: It's about Cocoon 2.1-dev
Hi, I think the samples you are looking for are in webapp/docs/samples. You can see them in action at http://localhost:8080/cocoon -- Arnaud Bienvenu http://www.generasound.com/ - 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]
esql:query + esql:parameter bug
If I write, for example : esql:query select * from space where person like esql:parameter type=stringAlex/esql:parameter ... (I known I don't need the esql:parameter tags here, but see below...) Then I get an error : Error compiling index_xsp: Line 303, column 37: ')' expected. Actually, the generated code is : try { _esql_query.prepared_statement.setString(1, this.characters(Alex);); } which is obviously incorrect. The generated code gets more broken if you use something like esql:parameterrequest:get-parameter name=Alex//esql:parameter I think this is a big problem, and if some developer manage to fix it, he would be a real man (or woman)... -- Arnaud Bienvenu http://www.generasound.com/ - 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: esql:query + esql:parameter bug
On Thu, Jul 19, 2001 at 03:41:19PM +0200, Stefan Seifert wrote: esql:parameter type=stringxsp:exprAlex/xsp:expr/esql:parameter You are absolutely right, this works ! esql:parameter type=stringxsp-request:get-parameter name=Alex//esql:parameter Great, this works too, provided I declare the according namespace of course : xmlns:xsp-request=http://apache.org/xsp/request/2.0; (for Cocoon2.1-dev) Actually, the request taglib I was using didn't exist anymore, and has obviously been replaced by xsp-request. I still wonder why I must use esql:parameter tags and not xsp:expr like Olivier Jeulin suggested in his reply ? (his solution concern another version of Cocoon I guess) So it looks like there was no bug in the code, but there is one in the doc. These URLs I learned from tell to use the request taglib : http://xml.apache.org/cocoon2/logicsheet-request.html http://xml.apache.org/cocoon2/logicsheet-concepts.html Thank you very much for your help, it's really useful. PS : I can get these docs up to date according to what have been said, if some developper thinks it may be a good idea, just contact me... -- Arnaud Bienvenu http://www.generasound.com/ - 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: logicsheet and taglib
On Wed, Jul 18, 2001 at 12:31:51PM +0200, Per Steffensen wrote: That is the difference between logicsheets and taglibs? A logicsheet defines a taglib http://xml.apache.org/cocoon2/logicsheet-guide.html -- Arnaud Bienvenu http://www.generasound.com/ - 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]
util:get-file-contents with Cocoon2.1-dev
Trying to use util:get-file-contents on Cocoon2.1-dev (cvs updated today), I noticed three problems : - You must specify the encoding attribute, or go to hell - You must catch the java.io.IOException, or apply the patch I made for util.xsl - You must use absolute path for the name of the file Since I'm a beginner with java and xsp, don't yell at me. If you find this patch is crap, please tell me why and suggest some better solution. And by the way, do you known why relative paths won't work ? --- src/org/apache/cocoon/components/language/markup/xsp/java/util.xsl 2001/07/12 11:03:21 1.5 +++ src/org/apache/cocoon/components/language/markup/xsp/java/util.xsl 2001/07/18 15:08:59 @@ -240,14 +240,20 @@ /xsl:choose /xsl:variable -xsp:expr - XSPUtil.getFileContents( -XSPUtil.relativeFilename( - String.valueOf(xsl:copy-of select=$name/), - this.objectModel -), xsl:value-of select=@encoding/ - ) -/xsp:expr +xsp:logic + String result = ; + try { +result = XSPUtil.getFileContents( + XSPUtil.relativeFilename( +String.valueOf(xsl:copy-of select=$name/), +this.objectModel + ), xsl:value-of select=@encoding/ +); + } catch (Exception e) { +getLogger().error(Could not include page, e); + } +/xsp:logic +xsp:exprresult/xsp:expr /xsl:template Here is my XSP page (it works for me) : ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; page util:get-file-contents name=/tmp/data.txt encoding=iso-8859-1/ /page /xsp:page -- Arnaud Bienvenu http://www.generasound.com/ - 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]
Fw: RE: C1 to C2
Sorry, I thought the reply was not on the list so I posted in private. And sorry for this mail, I think the charset is not correct but I've just installed Mew (Messaging in Emacs World) and I did not configure it at the time ;) --Arnaud Arnaud, could you, please, post your reply to the cocoon-users' mailing list as well ? I think this matter is of general interest. Best regards, - Luca Morandini - -Original Message- From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]] Sent: venerdì 13 luglio 2001 15.41 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: C1 to C2 On Fri, 13 Jul 2001 15:31:56 +0200, Luca Morandini [EMAIL PROTECTED] wrote: -Original Message- From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]] Sent: venerdì 13 luglio 2001 14.53 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: C1 to C2 If you only pass xml files to C2, you'll loose the ability to construct dynamic pdf with the pdf extension and so on with .txt or .sh or .jpg, and so on... you may pass every URI you want to Cocoon, whathever the extension. Of course, you will have to rely on the Apache rewrite engine to handle this job (I mean: switching URI between Apache or Cocoon). This URI switching task might be pretty tricky and, moreover, is bound to put application logic outside the sitemap... which is unfortunate. I did never work with the Apache rewrite engine, this is my first error ;) In your configuration, what will you do if you got to serve static xml files (example: applet configuration)? I'll tell Apache NOT to pass xml files contained in a subsite to Cocoon. For instance, every URI in www.foobar.com/foo/static won't be passed to Cocoon but served directly by Apache, while every URI in www.foobar.com/foo/dynamic will be passed to Cocoon for further processing. I think MY mistake was to tell apache to relay * to Cocoon. The other mapping did not work anymore! But I did not want to check all the extension type (well, I should because they are not so many)! ;) Thanks for the tips, I'll try --Arnaud - 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: C1 to C2
Le Thu, 12 Jul 2001 21:49:19 -0600, Lajos Moczar [EMAIL PROTECTED] écrivait: lmocz If I understand you correctly, all you have to do is rename cocoon.war lmocz to ROOT.war - this will eliminate the need for the cocoon/ after your lmocz hostname, since the ROOT webapp equates to /. Dont' forget to copy all lmocz your own stuff from $TOMCAT_HOME/webapps/cocoon to lmocz $TOMCAT_HOME/webapps/ROOT. Be aware that C2 will serve _all_ the pages (including the static ones). If you are in an Apache+Tomcat+Cocoon context, this mean that Everything on your site will be served by C2. Am I Wrong? Well I didn't find a way to do it! So, no php, no cgi and no other webapps (Apache+Tomcat+Cocoon)! If someone know how to avoid this, I'll be glad to know ;) --Arnaud
Re: ./build.sh - permission denied
Le Fri, 13 Jul 2001 15:49:02 +0530, raghu [EMAIL PROTECTED] écrivait: Hello there, I am unable to build the cocoon2, i downloaded the cocoon-2.0-b1.tar from xml.apache.org, and untarred it in a directory. When i try to build using ./build.sh -Dinclude. i get permission denied, why is it so i am in the root while doing this. Can anybody help. Pleas. chmod 755 build.sh --Arnaud