Re: memory leak in PoolableProxyHandler

2010-06-29 Thread Alexander Daniel
On 29.06.2010, at 14:43, Robby Pelssers wrote: Can anyone tell me if the latest stable build downloadable from Cocoon2.2 home page contains the fix for the issue below? https://issues.apache.org/jira/browse/COCOON-2259 Unfortunately not. The patch is even not committed to the trunk. Alex

Re: how-to use xml catalog with apache cocoon 2.2

2010-05-26 Thread Alexander Daniel
On 25.05.2010, at 12:14, Robby Pelssers wrote: Hi all, Just wondering if we have some online documentation explaining how to configure Cocoon for using xml catalogs. Hi Robby, A while back I summarized [1] some of my findings on using entity resolution with catalogs in Cocoon 2.2. Alex

Re: stacktrace when generating image with svg2png serializer

2010-03-25 Thread Alexander Daniel
On 19.03.2010, at 18:39, Robby Pelssers wrote: px...@nlscli02:/home/pxqa1wget http://www.w3.org/ --18:36:46-- http://www.w3.org/ = `index.html' Resolving www.w3.org... failed: Name or service not known. px...@nlscli02:/home/pxqa1 So this must be an issue to do with not being

Re: URL rewriting

2009-11-05 Thread Alexander Daniel
On 06.11.2009, at 01:41, Kamal Bhatt wrote: Thanks. Is there an input module that specifies the session ID? If the session ID is in a cookie you can use the cookie input module [1]. [2] describes that the RequestModule supports requestedSessionId, requestedSessionIdFromCookie,

Last-Modified HTTP header only returned after an initial request

2009-11-02 Thread Alexander Daniel
Cocoon 2.2 returns the Last-Modified HTTP header only after an initial request on a caching pipeline but not on the first request. [1] shows the pipeline is used for testing and [2] the HTTP requests and responses. Does somebody know the reason for this behavior? Is it a bug or as

Re: XHTML via Tidy not making it into XSLT

2009-10-23 Thread Alexander Daniel
On 23.10.2009, at 13:26, Peter Flynn wrote: Testing it from the command line with Saxon, I get this: Recoverable error on line 7 of file:/xsl/tools.xsl: FODC0005: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd 503

Re: problem showing pdf as text/plain with resourcereader

2009-10-18 Thread Alexander Daniel
On 17.10.2009, at 10:34, joao tiago a. m. viegas wrote: Hello everyone, i'm having this problem where i want to read static pdf files in the server and supply them to the browser for being read by the acrobat pdf plugin. The plugin always complains about it being a text/plain file. I'm

Re: How to use SOAP to deliver a Cocoon report?

2009-09-28 Thread Alexander Daniel
On 28.09.2009, at 09:50, Andreas Kuehne wrote: Hi Alexander, I didn't get your solution right, I guess ... as far as I understand Davids use case he will get a soap request, want's to fiddle out some parameters and return a report wrapped as a soap response. This fits into these sparse

Re: How to use SOAP to deliver a Cocoon report?

2009-09-27 Thread Alexander Daniel
On 24.09.2009, at 17:56, David Beasley wrote: Can anyone help me with using the Axis-based Cocoon SOAP server? I want to be able to deliver an XML-formatted report in response to a SOAP request. I've written a pipeline that produces the report. Cocoon will handle SOAP requests ok, but only

Re: Accessing resource from reader

2009-09-17 Thread Alexander Daniel
On Sep 17, 2009, at 14:56 , Radaven wrote: Hi, I am working on my BarcodeImageReader which generates barcode image. The parameters of barcode are loaded from xml config file (saved on same place as other resources like jx templates, etc.). How can I get to this file to have it as

Re: Restricting access by IP address

2009-09-10 Thread Alexander Daniel
Another option is to use servlet filters [1] if you prefer to implement the access restriction in Java. Alex [1] http://java.sun.com/products/servlet/Filters.html On Sep 10, 2009, at 8:47 , Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use

Re: XInclude XPointer attribute

2009-07-12 Thread Alexander Daniel
On 12.07.2009, at 14:17, Alexis Georges wrote: Hello, I am trying to use the XIncludeTransformer (Cocoon 2.2), but it does not seem to be processing the xpointer attribute. Does Cocoon support it or not? According to the documentation [1] XIncludeTransformer should support xpointer in

Re: Cocoon installation question

2009-07-11 Thread Alexander Daniel
On 08.07.2009, at 16:32, Boyland, James wrote: I downloaded cocoon-2.2.0.tar.gz (I assume it is the Linux version) to my windows desktop and unzipped it just to take a look at the INSTALL.txt file, and I cannot find the INSTALL.txt file. Any ideas? The best way to get started with Cocoon

Re: Cocoon protocol memory leak

2009-07-03 Thread Alexander Daniel
On 13.05.2009, at 17:40, Will Sheppard wrote: After we replaced all the ‘cocoon:’ protocol calls with 'http://localhost/path/to/cocoon' , the memory leak disappeared. No matter how many times or how fast the pipeline was hit, memory usage would always come down just before it reached 100Mb.

Re: Cocoon protocol memory leak

2009-05-19 Thread Alexander Daniel
Thanks for sharing your observations. This might be related to a problem we are currently facing. The use of the cocoon: protocol has several other pros additional to error stack: - caching - map:generate in caller and map:serialize in callee will be optimized and the SAX stream is passed

Entity resolution with catalogs in Cocoon 2.2

2008-11-25 Thread Alexander Daniel
Entity resolution with catalogs is well documented for Cocoon 2.1 [1] but it works a little bit different with a Cocoon 2.2 Maven project: CHANGING THE VERBOSITY OF CATALOG RESOLVER You just have to create src/main/resources/META-INF/cocoon/spring/ override.properties with following content

Re: Setting up Saxon in a Maven built Cocoon application

2008-11-18 Thread Alexander Daniel
We had problems with the XmlFileInputModule when having Saxon in the classpath [4]. The reason for that is that both Xalan and Saxon set the TransformerFactoryImpl via META-INF/services/ javax.xml.transform.TransformerFactory [1] (Java Services API) and Saxon was in the load order before

Re: Testdriven development (XSLT) for cocoon applications

2008-11-15 Thread Alexander Daniel
On 31.10.2008, at 09:28, Robby Pelssers wrote: I already looked for unittesting XSLT, but would like to know the experience from this community. One requirement might be the possibility to write tests for xslt2.0. I am using UTF-X for XSLT unit testing. You can use the XSLT processor of

Component configuration: Spring vs. Avalon

2008-10-20 Thread Alexander Daniel
In Cocoon 2.2 the file generator is defined directly as Spring component whereas the XSLT transformer is still defined in a xconf via the Avalon bridge. A definition via the Avalon bridge also creates a pool for the component visible as xsltPooled. Does this have any performance reasons or

Re: Cocoon Configuration API usage - how to get running mode?

2008-10-10 Thread Alexander Daniel
On 10.10.2008, at 09:18, Perez Guerrero, Antonio Javier wrote: How can I read spring managed properties from Java, without defining my classes as beans? I’ve tried using org.apache.cocoon.configuration.MutableSettings, which has all the methods that I need... But I cannot instantiate it

Re: Handling file not found errors

2008-10-10 Thread Alexander Daniel
On 10.10.2008, at 12:57, Derek Hohls wrote: I have: map:selector name=exception src=org.apache.cocoon.selection.ExceptionSelector exception name=not-found class=org.apache.cocoon.ResourceNotFoundException/ exception name=file-not-found class=java.io.FileNotFoundException/ /map:selector

Re: [C2.2] Sitemap: Block Context Path

2008-10-10 Thread Alexander Daniel
On 06.10.2008, at 14:05, Matthias Müller wrote: what's the easiest way to get the context path of the current block (the project root)? i want to to use a parameter $myContextPath in my sitemap to work in a jx template, like this: map:generate type=jx

Re: Handling file not found errors

2008-10-10 Thread Alexander Daniel
On 10.10.2008, at 10:48, Derek Hohls wrote: Using Cocoon 2.1.8 I am displaying data from a database that, in theory, contains URL links to files on the local server. Occasionally, for various reasons, the files are not available. At the moment, Cocoon returns an informative - but ugly -

Re: flowscript editor

2008-10-08 Thread Alexander Daniel
On 08.10.2008, at 09:56, Derek Hohls wrote: Some googling turns up: http://eclipse.moelleryoung.com/jseditor/ designed as a plug-in for eclipse ... not sure about status or usefulness What else? Maybe Eclipse JavaScript Development Tools [1] which are part of Eclipse Web Tools Platform

Re: Setting up Saxon in a Maven built Cocoon application

2008-10-06 Thread Alexander Daniel
On 20.06.2008, at 20:48, Sylvain Desvé wrote: RESOLVED I finally managed to do it. For those who encounter the same problem, here's what I did. Thanks a lot for sharing! 3. I edited sitemap.xmap and added a component : map:components map:transformers default=xslt

Re: appending to existing HTML

2008-10-06 Thread Alexander Daniel
On 06.10.2008, at 13:23, arj123 wrote: Hi all, I want to append the output HTML (created by transforming XML using XSL using cocoon) to my existing HTML. Is it possible using cocoon? Yes, this is possible with the HTML generator, some XSLT and the include transformer. addInclude.xsl

Re: [2.2] put to xml some new elements

2008-10-02 Thread Alexander Daniel
On 01.10.2008, at 15:09, nanomonk wrote: generally, we have somethink like that: ?xml version=1.0 encoding=UTF-8? root abra abrakadabrablahabrakadabra abrakadabra2blah2abrakadabra2 /abra /root there is need to put to this xml some elements filled with data that we got from

Re: [C2.2] Where's the JXTemplateGenerator?

2008-10-02 Thread Alexander Daniel
On 02.10.2008, at 11:27, Matthias Müller wrote: Hi there, i want to convert my C2.11 project to C2.2. While trying to generate a JXTemplate i receive the following error: Unable to read Avalon configuration from 'sitemap.xmap'.; nested exception is

Re: [2.2] No bean named org.apache.cocoon.servletservice.spring.BlockServletMap is defined

2008-10-02 Thread Alexander Daniel
On 02.10.2008, at 15:32, Perez Guerrero, Antonio Javier wrote: Is there any documentation on how to configure web.xml, cocoon.xconf, core.xml, etc? I feel like shooting in the dark, it's quite frustrating. The Cocoon Spring Configurator documentation [1] provides a lot of information.

Re: action for each request

2008-09-29 Thread Alexander Daniel
On 29.09.2008, at 10:31, Varga Zsombor wrote: Hi! I'd like to run an action before every request, and after it use matchers to decide what to happen. For example: map match pattern=a.html map:generate type=serverpages src=AA.xsp map:transform src=XXX.xsl/ map:serialize/ /map:match map

Re: action for each request

2008-09-29 Thread Alexander Daniel
On 29.09.2008, at 13:40, Varga Zsombor wrote: Thanks a lot! I will try it. But where can i find documentation abou this (the sub matchers)? On [1] when you search for Matchers can be nested Is it true that the latest stable version of Cocoon 2.1 is 2.1.11? As i remember there was an

Re: cocoon and start and end date

2008-09-28 Thread Alexander Daniel
If your web application is targeted for a international audience you should consider different time zones. Then I suggest to use JavaScript to generate these dates. If you are fine with using the server's time zone then you can use - EXSLT with XSLT 1.0 [1] - XSLT 2.0 current-date() [2] -

SSF and SAX events and Caching

2008-09-26 Thread Alexander Daniel
In October 2007 SSF did not support passing SAX events directly from one block to another and also caching was not supported. I did some research on the web site and in the users and dev mailing list but I can't find a clear statement whether these issues have already been addressed.

Re: Getting the request query parameters in the XML

2008-03-27 Thread Alexander Daniel
On 27.03.2008, at 13:45, Kjetil Kjernsmo wrote: I need to access the query parameters from a GET request in my XSLT, and I have thought of several ways to do this, but all seems cumbersome, so I'm supposing I've lost something trivial. You could use the request generator [1]: map:generate

Re: Cocoon calendar generator padweeks

2008-03-14 Thread Alexander Daniel
On 11.03.2008, at 17:19, Carlos Martínez wrote: I'm trying to use de Calendar Generator in the cocoon 2.1.9. All works good, buy the parameter padweeks is ignored. The match in the sitemap map:match pattern=mes_*_*.src map:generate type=calendar map:parameter name=month

Re: Internationalization transformer (i18n). Translate attrbutes with parameters

2008-03-13 Thread Alexander Daniel
On 11.03.2008, at 08:45, Joan Pascual wrote: I'm using 18n translation in Cocoon 2.1.9. I want to translate an attribute value. We can do that using i18:attr attribute, but we have a message with params and we don't know how to translate it. It is possible to translate an attribute value

Re: Cocoon 2.2 - CocoonServlet?

2008-02-25 Thread Alexander Daniel
On 25.02.2008, at 16:58, Edward S wrote: is there any documentation for this request / servlet filter? e.g. http://java.sun.com/products/servlet/Filters.html I have not understood the difference between request and servlet filter though. Or are these the same thing? Alex

Re: Max file size in FileGenerator and encoding in StreamGenerator

2008-02-20 Thread Alexander Daniel
On 19.02.2008, at 09:47, Stefan Ludwig wrote: The StreamGenerator works fine with large files (from 20MByte XML-Data to PDF in just 2mins!), but encoding doesn't work. This generator gets encoding from request, but i need the encoding from XML-Datafile. Is there any chance that you make the

Re: POST .xml

2008-02-18 Thread Alexander Daniel
On 16.02.2008, at 12:32, nanomonk wrote: and I have pipeline with StreamGenerator: - map:match pattern=upload/setSettings map:generate type=stream map:parameter name=form-name value=uploadfile/ map:parameter name=defaultContentType value=text/xml/

Re: GZIP Stream Generator

2008-02-18 Thread Alexander Daniel
On 18.02.2008, at 16:50, Sébastien Geindre wrote: Have you ever heard about a king of stream generator that could rread a gzip compress xml data flow, gunzip it and generate sax events ? Does this kind of generator exist ? I never heard of such a generator. If you are already using Apache

Re: document() and xsltc

2007-11-07 Thread Alexander Daniel
This is a known Xalan-J XSLTC issue [1]. Instead of using the XSLT document() function you could use the Include transformer [2] which supports caching. We use it successfully in our project. Alex [1] http://issues.apache.org/jira/browse/XALANJ-1928 [2]

Re: Error handling and action seems incompatible

2007-10-06 Thread Alexander Daniel
A User's Look at the Cocoon Architecture by Matthew Langham and Carsten Ziegeler [1] explains it very well: Matchers, and selectors are executed immediately when the sitemap is processed. But generators, transformers, and serializers are not executed immediately. They are chained to build

Re: Get any Path in CocoonContext

2007-05-01 Thread Alexander Daniel
The RealPath input module provides the functionality you are looking for. For more information see - http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/ modules/input/RealPathModule.html - If you have installed the standard Cocoon 2.1.10 distribution in Tomcat:

Re: Cocoon 2.1.10 Can't Find DatabaseActions, Logger Actions

2007-04-30 Thread Alexander Daniel
Maybe you haven't included the databases block when building Cocoon where the org.apache.cocoon.acting.modular.DatabaseAddAction resides? Regards, Alex On 30.04.2007, at 22:11, Bruce Perryman wrote: I'm attempting to upgrade my app from cocoon 2.1.4 to 2.1.10 and when starting my app,

Re: cookie-selector

2007-04-30 Thread Alexander Daniel
Is there a way to use the cookie-selector to check if a cookie exist, whatever value it has. No there isn't. The CookieSelector class returns false when a cookie does not exist, i.e. map:otherwise will be executed. You would need to know all possible values of the cookie to be sure that