RE: pipeline dependencies
Create a simple selector to check if the file exists, and if it doesn't call pipeline A. David -Mensaje original- De: Ali Mesbah [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 14:10 Para: [EMAIL PROTECTED] Asunto: pipeline dependencies Hi, Is it possible to define pipeline dependencies in the sitemap? Imagine I have two pipelines A and B. Pipeline B has a SourceWritingTransformer and all it does is writing a generated document on the filesystem. Pipeline A has its own generator and transformer but it depends on the document written by B. So A denpends on B. In other words when A is called B has to be called first but the output of A sould be serialized to the browser (and not the output of B). Thanks, Ali -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception when using copy-of
I haven't seen in http://www.apache.org/dist/cocoon/ the existence of Cocoon 2.0.5!!! Does it really exist? What's new? David -Mensaje original- De: Stefan Hilzinger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de junio de 2003 17:38 Para: [EMAIL PROTECTED] Asunto: Exception when using copy-of this message had been rejected because of its previous subject, so I send it again. Sorry if you should receive twice as well! hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 jdk 1.4.1_02 os's: windows xpp / suse linux 8.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145) at
RE: Upgrading Java
It's possible, the only different jars are excalibur-database, fop, cocoon and cocoon-scratchpad. I'm even switching JVM by replacing these files, because I work under Unix (latest JVM is 1.3.1) and Windows (latest JVM is 1.4.1 and supports hot code replacement, very useful for debugging). David -Mensaje original- De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: viernes, 20 de junio de 2003 9:38 Para: [EMAIL PROTECTED] Asunto: Re: Upgrading Java AFAIK the only areas where you are likely to have problems are: 1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on Wiki) 2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is handled. But you can probably work around that by replacing the excalibur- datasource jar with the new one. You shouldn't need to recompile anything. That _should_ be it. Others may choose to correct me. I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much' trouble with it). Regards, Upayavira On 20 Jun 2003 at 8:13, Derek Hohls wrote: I am wanting to upgrade my Java version from 1.3 to 1.4 in order to keep pace with new software that needs it - however, I have the '1.3 compatible' version of Cocoon installed. Are then any issues in putting in the 1.4 version of Cocoon... can I just overwrite all the jars in the library and restart Tomcat - or is there some obscure and mystical procedure one has to follow? (I dont want to just overwrite my complete Cocoon installation as I have modified files in various places.) Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Informix configuration
I have successfully used Cocoon with Informix, but I use other methods of connecting to the database, I do it through Java code. Here is an excerpt of my pipeline: map:components map:transformers default=xslt map:transformer name=sql src="">org.apache.cocoon.transformation.SQLTransformer/ /map:transformers /map:components map:pipelines map:transform type=sql label=transf1 map:parameter name=dburl value={session:databaseUrl}/ /map:transform /map:pipelines Through an input module and JXDom, I access a function call getUrl() that returns a string that contains the URL to the database connection, of the following type: jdbc:informix-sqli://server:1526/database:INFORMIXSERVER=server;user=myuser;password=mypassword I do so, because each user session may have a connection to a different database. David -Mensaje original- De: Galia Angelova [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de junio de 2003 16:44 Para: [EMAIL PROTECTED] Asunto: Informix configuration Hi! Does anybody know how to configure cocoon in order to work with Informix? Ihe informix data base is on a remote PC- profisrv,Informix server name - ol_profisrv, database name eisppbase I've done the folowing configuration: in cocoon.xconf: datasources jdbc name=eispp pool-controller min=5 max=10/ dburljdbc:informix-sqli://profisrv:1526/eisppbase:INFORMIXSERVER=ol_profisrv/dburl userusr/user password/ DBDATEDMY4/DBDATE /jdbc /datasources in web.xml: init-param param-nameload-class/param-name param-value com.informix.jdbcx.IfxConnectionPoolDataSource /param-value /init-param page.xml: page xmlns:sql=http://apache.org/cocoon/SQL/2.0 titleMy App page/title content paraJust a static contents/para execute-query xmlns=http://apache.org/cocoon/SQL/2.0 query select title from sm_State where ID_State='12' !-- here comes the SQL statement or stored procedure -- /query /execute-query /content /page sitemap.xmap: map:match pattern=*.xml map:generate src=""> map:transform type=sql map:parameter name=use-connection value=eispp/ map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=""> map:serialize/ /map:match After running the application I get this message: My App page Just a static contents Failed to obtain connection. Made 5 attempts with 5000ms interval Is there something that I've missed? Thank you in advance! Galia Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: calling a custom method in a bean?
You have many possibilities, these are some of them: 1. You can use a Xalan Java extensions, you can easily call any Java function from a XSLT file (see http://xml.apache.org/xalan-j) 2. You can use an input module and pass a parameter to a XSLT transform in this way map:transform src=my.xsl map:parameter name=myparameter value={my-input-module:myfunction()} /map:transform David -Mensaje original- De: Paul Tomsic [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de junio de 2003 20:30 Para: [EMAIL PROTECTED] Asunto: calling a custom method in a bean? Is it possible to alter the pipeline of cocoon so that we're calling a custom javabean that would generate the XML for the transform? (or at least call our own method from our bean?) More specifically, one of our reports needs column headers that have the date(s) of fiscal years on them. This information comes from an order that was placed in, say FQ4-2003, so our column headers would be: 30.June 2003,7.July.2003,14.July.2003, etc. We need to figure out the first monday of a quarter, then add 7 to it for 13 wks. We've got a method that does this in Java, but how do we call that method from cocoon? Just wondering if anyone's dealt w/ this before? thanks __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Informix configuration
Thank you, David! It's a good idea. The problem is that i can't get a cannection with thw data base. Something with my configuration or driver is not proper. Galia "Carmona Perez, David" [EMAIL PROTECTED] wrote: I have successfully used Cocoon with Informix, but I use other methods of connecting to the database, I do it through Java code. Here is an excerpt of my pipeline: Try a small Java program that doesnt use Cocoon, that connects to Informix David -Mensaje original- De: Galia Angelova [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 18 de junio de 2003 13:58 Para: [EMAIL PROTECTED] Asunto: RE: Informix configuration map:components map:transformers default=xslt map:transformer name=sql src="">org.apache.cocoon.transformation.SQLTransformer/ /map:transformers /map:components map:pipelines map:transform type=sql label=transf1 map:parameter name=dburl value={session:databaseUrl}/ /map:transform /map:pipelines Through an input module and JXDom, I access a function call getUrl() that returns a string that contains the URL to the database connection, of the following type: jdbc:informix-sqli://server:1526/database:INFORMIXSERVER=server;user=myuser;password=mypassword I do so, because each user session may have a connection to a different database. David -Mensaje original- De: Galia Angelova [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de junio de 2003 16:44 Para: [EMAIL PROTECTED] Asunto: Informix configuration Hi! Does anybody know how to configure cocoon in order to work with Informix? Ihe informix data base is on a remote PC- profisrv,Informix server name - ol_profisrv, database name eisppbase I've done the folowing configuration: in cocoon.xconf: datasources jdbc name=eispp pool-controller min=5 max=10/ dburljdbc:informix-sqli://profisrv:1526/eisppbase:INFORMIXSERVER=ol_profisrv/dburl userusr/user password/ DBDATEDMY4/DBDATE /jdbc /datasources in web.xml: init-param param-nameload-class/param-name param-value com.informix.jdbcx.IfxConnectionPoolDataSource /param-value /init-param page.xml: page xmlns:sql=http://apache.org/cocoon/SQL/2.0 titleMy App page/title content paraJust a static contents/para execute-query xmlns=http://apache.org/cocoon/SQL/2.0 query select title from sm_State where ID_State='12' !-- here comes the SQL statement or stored procedure -- /query /execute-query /content /page sitemap.xmap: map:match pattern=*.xml map:generate src=""> map:transform type=sql map:parameter name=use-connection value=eispp/ map:parameter name=show-nr-of-rows value=true/ /map:transform map:transform src=""> map:serialize/ /map:match After running the application I get this message: My App page Just a static contents Failed to obtain connection. Made 5 attempts with 5000ms interval Is there something that I've missed? Thank you in advance! Galia Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
FOP problems with Unix
Hi all, I have a strange problem. Under Windows, everything works ok, the FOP serializer creates a PDF file. But under Unix, some files are converted ok and some aren't. The FOP xml file created by the pipeline is the same. I've tried to convert it to pdf by invoking directly FOP through a command line and it works. So it must be something related to the interface between FOP and Cocoon. In addition, I don't get any error message in the logs. I'm using Cocoon 2.0.4 Any help would be greatly appreciated. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML Parsing + SAX
Why dont you use a java.io.StringBufferInputStream? David -Mensaje original- De: Brian Delahunty [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 18 de junio de 2003 17:11 Para: [EMAIL PROTECTED] Asunto: XML Parsing + SAX Hey, I have a String that contains an XML file [not a URL/URI that points to an XML file but the actual XML itself]. I'm tying to use this string in a custom generator to produce sa exents. I'm using this code so far: XMLReader xmlr = XMLReaderFactory.createXMLReader(); xmlr.setContentHandler(this.contentHandler); xmlr.parse( don't know what goes here); I can't get parse to work with a String. Any ideas? Brian
RE: FOP problems with Unix
Thanks, Maybe this is the cause, as my Unix system has no X windows. But I wonder why some files are processed ok and others don't, or why can I do it from the command line. David -Mensaje original- De: John R. Callahan [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 18 de junio de 2003 17:40 Para: [EMAIL PROTECTED] Asunto: Re: FOP problems with Unix I've had this problem many times: you need an X windows display (the DISPLAY environment variable) set to a viable display (like localhost:0.0) first OR use the headless Java stuff in JDK 1.4 (see the Cocoon install notes or Wiki). -- jack John R. Callahan, Ph.D. CTO [EMAIL PROTECTED] Sphere Software Corporation - Original Message - From: Carmona Perez, David [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:40 AM Subject: FOP problems with Unix Hi all, I have a strange problem. Under Windows, everything works ok, the FOP serializer creates a PDF file. But under Unix, some files are converted ok and some aren't. The FOP xml file created by the pipeline is the same. I've tried to convert it to pdf by invoking directly FOP through a command line and it works. So it must be something related to the interface between FOP and Cocoon. In addition, I don't get any error message in the logs. I'm using Cocoon 2.0.4 Any help would be greatly appreciated. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP Serializer configuration
I'm using Cocoon 2.04 and Tomcat 4.1. The purpose is very simple, I want to set the baseDir property to the context path. ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; configuration !--basedir: donde encontrar imagenes, establecer directorio base el contexto-- entry keybaseDir/key valuexsp:exprcontext.getRealPath()/xsp:expr/value /entry /configuration /xsp:page I know that I can do it in some other ways like adding the context path to every src of each graphic, but wonder why it doesn't work. David -Mensaje original- De: Joerg Heinicke [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de junio de 2003 16:55 Para: [EMAIL PROTECTED] Asunto: Re: FOP Serializer configuration Shortly after writing this, I had to realize that the servlet context can be jndi:/localhost/..., which is not what I want and that has changed between Tomcat 4.0 and 4.1 (both in combination with JBoss 3.x). Changing the user-config to cocoon:/ protocol does not work as you already have experienced. This I didn't expect, because why should context:// work and cocoon:// not. Can you file a bug in bugzilla? For me simply using a relative path works now, but this won't help you as you seem to create the fop-config dynamically. May I ask for the use case? Joerg Joerg Heinicke wrote: What Cocoon version do you use? I have 2.0.4 and use user-configcontext://doc/fop/config.xml/user-config without any problems. Joerg Carmona Perez, David wrote: Hi all, Alter reading this page: http://cocoon.apache.org/2.0/userdocs/serializers/pdf-serializer.html I've tried to configure the FOPSerializer with a file generated through a Cocoon pipeline in this way: map:serializer logger=sitemap.serializer.fo2pdf mime-type=application/pdf name=pdf src=org.apache.cocoon.serialization.FOPSerializer user-configcocoon:/config-fop.xsp/user-config /map:serializer I can access cocoon:/config-fop.xsp well, but the FOPSerializer class tries to open: file://myContextPath/cocoon:/config-fop.xsp Does anyone know the cause? David -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP Serializer configuration
Thanks Joerg, Your solution is much simpler and works!! David -Mensaje original- De: Joerg Heinicke [mailto:[EMAIL PROTECTED] Enviado el: viernes, 13 de junio de 2003 10:08 Para: [EMAIL PROTECTED] Asunto: Re: FOP Serializer configuration You can reach the same without an extra XSP, therefore the context:// protocol exists. It's the way I had it: user-configcontext://user-config.xml/user-config But this is resolved to jndi:/localhost (with Tomcat 4.1) and won't help you. So I changed it to a relative path (i.e. relative to the sitemap): user-configconfig/fop/user-config.xml/user-config In the user-config.xml, you can set the baseDir to a relative path too (here relative to the user-config.xml): entry keybaseDir/key value./value /entry (I used valuefonts//value for the keyfontBaseDir/key), but I guess the above should work too.) Does this work? Joerg Carmona Perez, David wrote: I'm using Cocoon 2.04 and Tomcat 4.1. The purpose is very simple, I want to set the baseDir property to the context path. ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; configuration !--basedir: donde encontrar imagenes, establecer directorio base el contexto-- entry keybaseDir/key valuexsp:exprcontext.getRealPath()/xsp:expr/value /entry /configuration /xsp:page I know that I can do it in some other ways like adding the context path to every src of each graphic, but wonder why it doesn't work. David -Mensaje original- De: Joerg Heinicke [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de junio de 2003 16:55 Para: [EMAIL PROTECTED] Asunto: Re: FOP Serializer configuration Shortly after writing this, I had to realize that the servlet context can be jndi:/localhost/..., which is not what I want and that has changed between Tomcat 4.0 and 4.1 (both in combination with JBoss 3.x). Changing the user-config to cocoon:/ protocol does not work as you already have experienced. This I didn't expect, because why should context:// work and cocoon:// not. Can you file a bug in bugzilla? For me simply using a relative path works now, but this won't help you as you seem to create the fop-config dynamically. May I ask for the use case? Joerg Joerg Heinicke wrote: What Cocoon version do you use? I have 2.0.4 and use user-configcontext://doc/fop/config.xml/user-config without any problems. Joerg Carmona Perez, David wrote: Hi all, Alter reading this page: http://cocoon.apache.org/2.0/userdocs/serializers/pdf-serializer.html I've tried to configure the FOPSerializer with a file generated through a Cocoon pipeline in this way: map:serializer logger=sitemap.serializer.fo2pdf mime-type=application/pdf name=pdf src=org.apache.cocoon.serialization.FOPSerializer user-configcocoon:/config-fop.xsp/user-config /map:serializer I can access cocoon:/config-fop.xsp well, but the FOPSerializer class tries to open: file://myContextPath/cocoon:/config-fop.xsp Does anyone know the cause? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP Serializer configuration
Sorry, It doesn't work, even though baseDir equals ., it doesn't find my images unless I specify like this; src=file:///c:/cocoon/images/myImage.gif instead of src=images/myImage.gif, supposing that c:\cocoon is the context path. David -Mensaje original- De: Joerg Heinicke [mailto:[EMAIL PROTECTED] Enviado el: viernes, 13 de junio de 2003 10:08 Para: [EMAIL PROTECTED] Asunto: Re: FOP Serializer configuration You can reach the same without an extra XSP, therefore the context:// protocol exists. It's the way I had it: user-configcontext://user-config.xml/user-config But this is resolved to jndi:/localhost (with Tomcat 4.1) and won't help you. So I changed it to a relative path (i.e. relative to the sitemap): user-configconfig/fop/user-config.xml/user-config In the user-config.xml, you can set the baseDir to a relative path too (here relative to the user-config.xml): entry keybaseDir/key value./value /entry (I used valuefonts//value for the keyfontBaseDir/key), but I guess the above should work too.) Does this work? Joerg Carmona Perez, David wrote: I'm using Cocoon 2.04 and Tomcat 4.1. The purpose is very simple, I want to set the baseDir property to the context path. ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; configuration !--basedir: donde encontrar imagenes, establecer directorio base el contexto-- entry keybaseDir/key valuexsp:exprcontext.getRealPath()/xsp:expr/value /entry /configuration /xsp:page I know that I can do it in some other ways like adding the context path to every src of each graphic, but wonder why it doesn't work. David -Mensaje original- De: Joerg Heinicke [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de junio de 2003 16:55 Para: [EMAIL PROTECTED] Asunto: Re: FOP Serializer configuration Shortly after writing this, I had to realize that the servlet context can be jndi:/localhost/..., which is not what I want and that has changed between Tomcat 4.0 and 4.1 (both in combination with JBoss 3.x). Changing the user-config to cocoon:/ protocol does not work as you already have experienced. This I didn't expect, because why should context:// work and cocoon:// not. Can you file a bug in bugzilla? For me simply using a relative path works now, but this won't help you as you seem to create the fop-config dynamically. May I ask for the use case? Joerg Joerg Heinicke wrote: What Cocoon version do you use? I have 2.0.4 and use user-configcontext://doc/fop/config.xml/user-config without any problems. Joerg Carmona Perez, David wrote: Hi all, Alter reading this page: http://cocoon.apache.org/2.0/userdocs/serializers/pdf-serializer.html I've tried to configure the FOPSerializer with a file generated through a Cocoon pipeline in this way: map:serializer logger=sitemap.serializer.fo2pdf mime-type=application/pdf name=pdf src=org.apache.cocoon.serialization.FOPSerializer user-configcocoon:/config-fop.xsp/user-config /map:serializer I can access cocoon:/config-fop.xsp well, but the FOPSerializer class tries to open: file://myContextPath/cocoon:/config-fop.xsp Does anyone know the cause? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP Serializer configuration
Hi all, Alter reading this page: http://cocoon.apache.org/2.0/userdocs/serializers/pdf-serializer.html I've tried to configure the FOPSerializer with a file generated through a Cocoon pipeline in this way: map:serializer logger=sitemap.serializer.fo2pdf mime-type=application/pdf name=pdf src=org.apache.cocoon.serialization.FOPSerializer user-configcocoon:/config-fop.xsp/user-config /map:serializer I can access cocoon:/config-fop.xsp well, but the FOPSerializer class tries to open: file://myContextPath/cocoon:/config-fop.xsp Does anyone know the cause? David -Mensaje original- De: Geoff Howard [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de junio de 2003 13:43 Para: [EMAIL PROTECTED] Asunto: RE: POI --Setting logger Level It's a whole separate sub project: http://jakarta.apache.org/poi/ After reading through the documentation there, if your question is still unanswered, there are mail lists linked from that main page. Geoff -Original Message- From: Mehra, Vishal [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 5:15 PM To: '[EMAIL PROTECTED]' Subject: RE: POI --Setting logger Level Is there a separate mailing list for POI issues? -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:03 PM To: [EMAIL PROTECTED] Subject: RE: POI --Setting logger Level This appears to be a POI question with no relation to Cocoon whatsoever - that's probably why you've not gotten a response. Geoff At 04:56 PM 6/11/2003, you wrote: Any pointer Guys... -Original Message- From: Mehra, Vishal [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 2:25 PM To: '[EMAIL PROTECTED]' Subject: RE: POI --Setting logger Level Joerg, Thanks for the pointer. As I am running a standalone java application, there is no Web/Application server available to set the configuration. Basically my java code looks like wb = new HSSFWorkbook(); sheet = wb.createSheet(fileName); HSSFRow row = sheet.createRow( (short) 0); Is there a relative directory structure from the classes directory where I set the property for logkit.conf or any other way to tell the POI classes to use FATAL log level. Thanks, Vishal -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:44 PM To: [EMAIL PROTECTED] Subject: Re: POI --Setting logger Level Hello Vishal, the HSSFSerializer has a logger in its configuration in the sitemap (at least you can set one). The log level can then be configured in the logkit.xconf. http://wiki.cocoondev.org/Wiki.jsp?page=ExploringTheLogs Joerg Mehra, Vishal wrote: I have a java application which executes dynamic SQL and based on the result set generates appropriate .XLS file. This java application internally uses cocoon and poi libraries to generate the Excel file. By default, for each cell generation approximately 10 lines are getting printed on the console. As, I have a large Excel file, generation of this file is taking a very long time. It appears the debug level is set to DEBUG (if not specified) Is there a POI api to set the log level to FATAL which will reduce the number of log message displayed. Otherwise is there a way to dump the output to a file, instead of the console. Thanks, Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to debug COCOON with ECLIPSE and TOMCAT?
Hi Lionel, I'm using very successfully the Sysdeo plug-in. And with JDK 1.4 it supports hot-code replacement, you can modify on the fly a Java class without restarting the server. David -Mensaje original- De: Lionel Crine [mailto:[EMAIL PROTECTED] Enviado el: martes, 03 de junio de 2003 16:55 Para: [EMAIL PROTECTED] Asunto: Re: How to debug COCOON with ECLIPSE and TOMCAT? I use tomcat cocoon and the sdk 1.4 All is working fine. Do you have an error message ? At 07:27 03/06/2003 -0700, you wrote: Hi, I would like to debug cocoon with eclipse and tomcat. I have the blueskytime plugins for eclipse and tomcat but could not make them debug cocoon. May be there's something i'm not doing right? Galia Do you Yahoo!? Free http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.comonline calendar with sync to Outlook(TM). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Link Livesites: ExtremeComputing.org Cocoon 2.0.2
The link doesnt work for me. David -Mensaje original- De: Bobby Corpus [mailto:[EMAIL PROTECTED] Enviado el: viernes, 30 de mayo de 2003 5:10 Para: [EMAIL PROTECTED] Asunto: Link Livesites: ExtremeComputing.org Cocoon 2.0.2 ExtremeComputing.org is an organization of active and highly enthusiastic researchers from a variety of scientific and engineering fields engaged in high performance computing. URL: http://www.extremecomputing.org -- Bobby Corpus, JrTalk not of wasted affection; affection never was wasted.-Longfellow, Henry Wadsworth
RE: the url cannot be null
Maybe you're facing the same problem I've had with the SQL Transformer that is closing the connection too prematurely. * open connection * perform query * get resultset * close the connection-- I've had to move this step later * browse the resultset David -Mensaje original- De: I-Lin Kuo [mailto:[EMAIL PROTECTED] Enviado el: viernes, 30 de mayo de 2003 17:44 Para: [EMAIL PROTECTED] Asunto: RE: the url cannot be null I think you are missing sql:use-connectionconnection-name/sql:use-connection in testSQL.xml Thanks for the suggestion but that's not it. I don't need to specify that in testSQL.xml if I supply it as a parameter to the SQLTransformer in the pipeline as I've done. Besides, it's the same file in both cases, but one runs and the other doesn't. I did a little more searching and found the following on http://wiki.cocoondev.org/Wiki.jsp?page=UnderstandingCocoonMounts Components Inheritance of components have been a little problem between some versions of Cocoon, it's now solved. But after experience, it's not so bad to keep the components you need in each sitemap, especially to have your own names for generators or transformers, and be able to move your app under any other sitemap, or put it directly as root. So, maybe it's my SQLTransformer that's not being inherited in my subsitemap? I-Lin Kuo, Ann Arbor, MI Macromedia Certified ColdFusion 5.0 Advanced Developer Sun Certified Java 2 Programmer Ann Arbor Java Users Group (http://www.aajug.org) _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HELP]Premature end of file.
First of all, look at the logs that Cocoon generates!. Probably an exception has been thrown. David -Mensaje original- De: ravi gaddam [mailto:[EMAIL PROTECTED] Enviado el: viernes, 30 de mayo de 2003 19:40 Para: [EMAIL PROTECTED] Asunto: [HELP]Premature end of file. Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: Premature end of file.
RE: SQLTransformer bug
Thanks Brian! David -Mensaje original- De: Brian Johnson [mailto:[EMAIL PROTECTED] Enviado el: jueves, 29 de mayo de 2003 22:30 Para: [EMAIL PROTECTED] Asunto: Re: SQLTransformer bug I reported this bug and posted a fix many months ago, but nothing has been done with it. It seems to only affect certain databases. I'd be glad to forward you the code. Brian On Wednesday, May 28, 2003, at 09:36 AM, Carmona Perez, David wrote: Dear Cocooners, I've think I found a bug in the SQLTransformer in Cocoon 2.0.4, at least under Informix. I use a simple query (select * from table) and it fails. After having investigated a bit, I've come to the conclusion that it tries to do the following open connection create prepared statement get resultset close connection navigate through the gathered resultset Of course when navigating through the resultset, you get an SQLException. If I comment out the connection closing, everything works ok. The right order would need to be: open connection create prepared statement get resultset navigate through the gathered resultset close connection Has this happened to anyone else? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQLTransformer bug
Dear Cocooners, I've think I found a bug in the SQLTransformer in Cocoon 2.0.4, at least under Informix. I use a simple query (select * from table) and it fails. After having investigated a bit, I've come to the conclusion that it tries to do the following open connection create prepared statement get resultset close connection navigate through the gathered resultset Of course when navigating through the resultset, you get an SQLException. If I comment out the connection closing, everything works ok. The right order would need to be: open connection create prepared statement get resultset navigate through the gathered resultset close connection Has this happened to anyone else? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session attributes in sitemap
Look at the Sunshine component: http://www.plenix.org/dbprism/doc/xdocs/developing/sunshine-contexts.html or create a simple action to do that. David -Mensaje original- De: Mato Mira, Fernando [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 28 de mayo de 2003 15:09 Para: '[EMAIL PROTECTED]' Asunto: RE: session attributes in sitemap From: Yury Mikhienko [mailto:[EMAIL PROTECTED] On Wed, 28 May 2003 11:56:55 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: Is there a way to set a session attribute in the sitemap? Try use SessionValidatorAction I don't think this can be used to set it to the value of a match variable like {1}. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]