Re: Migration problem

2009-05-14 Thread Joerg Heinicke
Xindice is a dependency of the optional block 'xmldb'. As Bertrand I recommend to exclude all blocks you don't need. Joerg On 14.05.2009 10:32, Jean-Claude Moissinac wrote: Checked the command ./cocoon.sh, it works So, it's only the war deployed in tomcat6 which fails to work with the

Re: Migration problem

2009-05-14 Thread Joerg Heinicke
On 14.05.2009 14:56, Jean-Claude Moissinac wrote: On Thu, May 14, 2009 at 1:55 PM, Joerg Heinicke joerg.heini...@gmx.de wrote: Xindice is a dependency of the optional block 'xmldb'. As Bertrand I recommend to exclude all blocks you don't need. So, I need to check all my applications to find

Re: Migration problem

2009-05-14 Thread Joerg Heinicke
On 14.05.2009 15:08, Jean-Claude Moissinac wrote: With all blocks removed, the problem remains. May 14, 2009 3:02:41 PM org.apache.catalina.core.ApplicationContext log INFO: ERROR (2009-05-14) 15:02.41:363 [access ] (Unknown-URI) Unknown-Thread/Unknown-Class: Exception reloading

Re: Migration problem

2009-05-14 Thread Joerg Heinicke
On 14.05.2009 15:41, Jean-Claude Moissinac wrote: OK I will investigate in that direction. But it will help if I can find what cocoon is trying to write. (I think, I'm not the first to use cocoon.war in tomcat on Ubuntu) Looking at your stack trace it's at

Re: custom serializer

2009-05-13 Thread Joerg Heinicke
it and display the result On 12.05.2009 14:17, Joerg Heinicke wrote: In which way not helpful? Is ZIP the wrong compression for you or did you just not get it to work? Joerg On 12.05.2009 07:53, saeid itune wrote: Basically i have xml file which it will be compressed and the result

Re: custom serializer

2009-05-12 Thread Joerg Heinicke
In which way not helpful? Is ZIP the wrong compression for you or did you just not get it to work? Joerg On 12.05.2009 07:53, saeid itune wrote: Basically i have xml file which it will be compressed and the result will be displayed to the user in compressed format. i want to get whole xml

Re: ServerPagesGenerator in 2.2 ?!

2009-05-11 Thread Joerg Heinicke
I'm not sure why you can't find the XSP block in 2.2 but there is a ServerPagesGenerator: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/ Joerg On 11.05.2009 10:37, Søren Krum wrote: Hi! Now i tried out the

Re: ServerPagesGenerator in 2.2 ?!

2009-05-11 Thread Joerg Heinicke
Ah, that is true. Not all blocks actually got released as part of 2.2 release. But you can still take the block and use it. Regarding your error, the type of manager might have changed from ComponentManager to ServiceManager. Joerg On 11.05.2009 12:37, Søren Krum wrote: Joerg Heinicke

Re: ServerPagesGenerator in 2.2 ?!

2009-05-08 Thread Joerg Heinicke
Cocoon 2.2 still has an XSP block (cocoon-xsp) with the ServerPagesGenerator. Joerg On 08.05.2009 12:07, Søren Krum wrote: Hi! While upgrading from a cocoon 2.1 to 2.2 i found some pices of code using a ServerPageGenerator, but i was not able to find that one in one of the cocoon modules.

Re: Howto: Make CSS available from within a stylesheet?

2009-04-29 Thread Joerg Heinicke
What exactly are you trying to achieve? An XSLT is used for transforming an XML structure into another one. There is no CSS involved. Do you want to style the output? Joerg On 29.04.2009 11:46, Yet another person wrote: I've been trying to use a css stylesheet in my xsl transformation but It

Re: how to call continuation, created by button's action?

2009-04-28 Thread Joerg Heinicke
in browser the link to download this file. 2009/4/28 Joerg Heinicke joerg.heini...@gmx.de Can you tell us what you are actually trying to achieve (independent from the code)? Joerg On 25.04.2009 09:34, Maria Grigorieva wrote: Hello!!! I need to create continuation with the button's click. var k

Re: how to call continuation, created by button's action?

2009-04-27 Thread Joerg Heinicke
Can you tell us what you are actually trying to achieve (independent from the code)? Joerg On 25.04.2009 09:34, Maria Grigorieva wrote: Hello!!! I need to create continuation with the button's click. var k; .. form.lookupWidget(report).addActionListener(function(event) {

Re: COCOON-1887 (was: Getting started with C2.2 -- where's the exception information?)

2009-02-23 Thread Joerg Heinicke
On 30.01.2009 18:04, Andy Stevens wrote: I uploaded https://issues.apache.org/jira/browse/COCOON-1887 2 1/2 years ago and it's still waiting, even though it's a relatively trivial change and only about half a dozen lines of code if you ignore the comments and unit test :-( Hey Andy, this

Re: Getting started with C2.2 -- where's the exception information?

2009-02-21 Thread Joerg Heinicke
On 30.01.2009 18:04, Andy Stevens wrote: Nobody said 2.1 is dead, it is clearly (IMHO) in maintenance mode. Sounds good in theory, but the big assumption is that submitted patches might actually be applied. I uploaded https://issues.apache.org/jira/browse/COCOON-1887 2 1/2 years ago and it's

Re: Articles about Cocoon in French

2009-02-15 Thread Joerg Heinicke
Hi Christophe, you can actually do such changes to the documents yourself. See the link at the end of every page on cocoon.apache.org. I did it this time. They will go live with the next site update. Joerg On 11.02.2009 11:29, Christophe Nowicki wrote: Hi, I've wrote an article about

[Travel Assistance] Applications for ApacheCon EU 2009 - Now Open

2009-01-23 Thread Joerg Heinicke
Original Message Subject: [Travel Assistance] Applications for ApacheCon EU 2009 - Now Open Date: Fri, 23 Jan 2009 13:28:19 + From: Tony Stevenson pct...@apache.org Reply-To: commun...@apache.org To: travel-assista...@apache.org The Travel Assistance Committee is now

Re: generate pdf from xml with embedded image?

2008-12-23 Thread Joerg Heinicke
Marten van der Honing wrote: Peter: Did you write a preprocessor in cocoon? Where can i find more info on that? Meanwhile i tried another approach: xsl:variable name=image-base64 select=.//IMAGE/ You might try xsl:variable name=image-base64 select=string(.//IMAGE)/ just to be sure.

Re: FW: Problem with large xml using aggregate

2008-12-23 Thread Joerg Heinicke
Kothapalli, Rajani K wrote: We have a pipeline that looks like: map:pipeline map:match pattern=*/*.testcontent map:aggregate element=wrapper map:part src=cocoon:/{1}/x/ map:part src=cocoon:/{1}/y/ map:part

Re: How to set the language for a date?

2008-12-23 Thread Joerg Heinicke
Smigge wrote: Isn't there a simple way of just changing the locale - even only within one xslt? As you can see there is no standardized way of handling dates locale-aware in XSLT. I really recommend to do this using i18n functionality of Cocoon. Joerg

Re: FW: Caching XMLResourceBundle in a disk persistent store not possible

2008-11-24 Thread Joerg Heinicke
From what I see the only reason for not implementing Serializable is that XMLResourceBundle will miss its dependencies after deserialization, which is only the Logger which has to be injected by the component manager. So every call to getLogger() would return null after the deserialization. In

Re: [2.1] Generator src from document content

2008-11-13 Thread Joerg Heinicke
On 14.11.2008 04:26, Palol Carlos wrote: I'm trying to query a Daisy 2.2 repository from a Lenya 2 website (Cocoon 2.1) So i have XML documents like this: mydoc query SELECT name WHERE InCollection('xyz') /query /mydoc And would like to query that repository through HTTP API, like

Re: not sure how to modify xsl match

2008-11-04 Thread Joerg Heinicke
What's the HTML result you get? I would have to check how onload is handled, but I'd expect this to be the problem. Cocoon Forms tries to set onload itself, I just don't know exactly how it handles existing onload values. Joerg On 04.11.2008 23:52, Paul Joseph wrote: Hi Robby, I *think*

Re: Cocoon become very slow on load (Solved)

2008-10-09 Thread Joerg Heinicke
import can cause such heavy blocking, but I'm happy that my application works now very nice under heavy load. About reloading: I was successful disable it, but it had no effect on the blocking problem I'm glad I could help :-) Joerg Joerg Heinicke schrieb: I have no idea if setupContext

Re: how to implement back button functionality from within a flow script

2008-10-09 Thread Joerg Heinicke
On 08.10.2008 16:05, Paul Joseph wrote: Thank you kindly for your prompt reply Derek...I surmised this was the case but wanted to check with the experts... I'm not considering myself an expert especially on AJAX, but I second Derek's analysis. Joerg Derek Hohls wrote: Paul The short

Re: AW: How to force a Save As prompt?

2008-10-08 Thread Joerg Heinicke
On 08.10.2008 09:25, Matthias Müller wrote: Hey, one more question: in your example you serialize your stream as xml. i want to be flexible with this, e.g. for xml or pdf files. That's not a problem at all. Actually wrapping map:serialize in map:act is pointless in this case. Just have the

Re: Cocoon become very slow on load

2008-10-08 Thread Joerg Heinicke
On 08.10.2008 17:20, Thorsten Mauch wrote: Hi All I have a really weird problem with cocoon 2.1.11. My Application becomes very slow under a load, even if it now relay heavy. A page request take up to one Minute. The strange point is that in another application I use exactly the same java

Re: FlashVars

2008-10-06 Thread Joerg Heinicke
On 03.10.2008 17:56, Charlie Rose wrote: I am trying to embed a Flash movie in an html page. object clsid: ... param name=FlashVars value=lcId=1234567890 ... When I get to the lcId the ampersand is interpreted as entity ref indicator and the generation fails. I try to replace by amp; and it

Re: SendMailTransformer

2008-09-30 Thread Joerg Heinicke
On 01.10.2008 01:14, Christian Decker wrote: java.lang.NoSuchMethodError: org.apache.cocoon.mail.transformation.SendMailTransformer.getLogger()Lorg/apache/avalon/framework/logger/Logger; at org.apache.cocoon.mail.transformation.SendMailTransformer.setup(SendMailTransformer.java:313)

Re: SendMailTransformer

2008-09-30 Thread Joerg Heinicke
On 01.10.2008 01:46, Christian Decker wrote: I wonder why you are not using 2.2's SendMailTransformer. There actually isn't any reason that I'm not using the 2.2's SendMailTransformer, except I was unable to find it. You see, I;m using mvn to manage the project and there appears to be no

Re: Database connection by cocoon 2.2

2008-09-28 Thread Joerg Heinicke
On 25.09.2008 12:53, yosauron wrote: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from URL

Re: Database connection by cocoon 2.2

2008-09-23 Thread Joerg Heinicke
On 23.09.2008 09:12, yosauron wrote: Please, Does anybody know where is the error? I have been searching the error for 5-6 days and I don't have any more clues... Can anyone help me? Caused by: java.lang.NoSuchMethodError:

Re: cforms + javaflow + sitemap problem

2008-09-21 Thread Joerg Heinicke
On 21.09.2008 15:11, Magsend wrote: the content is still duplicates... but without style My guess is that one of the parts comes with a content root element as well (or something like that). How do index.xml and form-template/{1}.xml look like? Joerg

Re: Cocoon 2.1.5.1 and Windows Handle Leak

2008-09-12 Thread Joerg Heinicke
On 12.09.2008 17:40, Stephen Connolly-2 wrote: I was able to get a patch that seems to work. There were only two transactions in SVN required for a back-port: http://svn.apache.org/viewvc?view=revrevision=56921 http://svn.apache.org/viewvc?view=revrevision=57424 I hope nobody else has to do

Re: Cocoon 2.1.5.1 and Windows Handle Leak

2008-09-11 Thread Joerg Heinicke
Stephen Connolly-2 stephen.alan.connolly at gmail.com writes: We have an application that is using Cocoon 2.1.5.1 (I know that's a wee bit old) With the application IDLE, no clients have even attempted to connect. We see on Windows a handle leak at a rate of approx 64 handles (32 Event and

Re: cocoon 2.1.11, fc9, build.sh error

2008-09-09 Thread Joerg Heinicke
On 09.09.2008 01:21, Al wrote: I'm having trouble getting the sun java installed properly. alternatives never see the install and jpackage seems to also have problem with version 1.6 I uncommented : include.block.imageop=false in local.blocks.properties. Is that the best way to do option

Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Joerg Heinicke
On 09.09.2008 00:36, Al wrote: I'm having trouble getting the sun java installed properly. alternatives never see the install and jpackage seems to also have problem with version 1.6 I uncommented : include.block.imageop=false in local.blocks.properties. Is that the best way to do option

Re: Forms crash with selection-list/@src

2008-09-01 Thread Joerg Heinicke
On 01.09.2008 21:40, Andre Thenot wrote: I'm getting an error with CForms when trying to use selection-lists. If I embed the fd:items in the form model, under fd:selection-list, everything works fine. But if I try to reference that list from elsewhere, using the @src attribute of

Re: Sticking with 2.1.* ( was '[Announce] Apache Lenya 2.0.2 released' )

2008-09-01 Thread Joerg Heinicke
On 01.09.2008 12:28, Andreas Kuehne wrote: Yes, for a pure 'uses' relataionship ... But there a re a bunch of transformers, actions and stuff ... this won't migrate withn a coffee break ! I don't get your point. What's the difference to a normal update? Joerg - Original Message

Re: DAOSecurityHandler

2008-08-18 Thread Joerg Heinicke
On 06.08.2008 02:30, Robin Rigby wrote: I am looking for the Java equivalent of the JavaScript var parser = cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE); and the same for SourceResolver. Sitemap components seem to get them from an Avalon ServiceManager and I

Re: Cocoon Authentication

2008-08-12 Thread Joerg Heinicke
Magnus Haraldsen Amundsen Magnus.Haraldsen.Amundsen at computas.com writes: We use the Coocoon authentication block in our web app through the following dependency in our pom.xml: In our Spring configuration we have declated a simple security handler and a standard application: This is

Re: flowscript string length

2008-07-25 Thread Joerg Heinicke
On 25.07.2008 15:56, Jeff Schmitz wrote: Using cocoon 2.1 I'm trying to get the length of a string in my flowscript code, but it always returns undefined instead of a number. I've tried both of the below with the same results: var part = this is a test; var last = part.length(); var last =

Re: How to stop validating the XML output

2008-07-24 Thread Joerg Heinicke
On 11.07.2008 00:20, Leonid Geller wrote: Does anyone know if there is an easy way to tell cocoon to stop validating the transformed XML output for correctness? E.g. I intentionally want to not close some element tags. As Andre said you are talking about well-formedness rather than validity.

Re: Problem with setCharacterEncoding

2008-07-24 Thread Joerg Heinicke
On 08.07.2008 08:26, Gautam Joshi (jgautam) wrote: We are trying to set character encoding to UTF-8 in the request object (org.apache.catalina.connector.RequestFacade) to ensure that the Danish and some other characters are processed correctly. We observed however that just using

Re: block communication and page fragment

2008-07-24 Thread Joerg Heinicke
On 19.07.2008 19:26, Mansour Al Akeel wrote: Thank you, I am trying it now, but getting errors. I think it's with block communications. When I put this in my site map: map:aggregate element=root map:part src=cocoon:/block1/ /map:aggregate I get java.lang.StackOverflowError If I do this:

Re: test if map:read was successful?

2008-07-24 Thread Joerg Heinicke
On 16.07.2008 16:23, Nick McDonald wrote: I'm using map:read to send a file. I use cocoon.sendPage() in my flowscript to initiate the transfer; once the transfer is complete, I need to return to the flowscript and possibly perform some additional actions, depending on whether the file was

Re: Database connection by cocoon 2.2

2008-07-24 Thread Joerg Heinicke
/19 at 01:08, in message [EMAIL PROTECTED], Joerg Heinicke [EMAIL PROTECTED] wrote: I agree with Boris. In Cocoon 2.2 the database block is kind of obsolete. An application should rather be developed with more standard means as provided by Spring. Cocoon was never very good at integrating database

Re: hi

2008-07-24 Thread Joerg Heinicke
On 24.07.2008 00:30, student csu wrote: * Question: how to debug xslt in cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML

Re: images in svg not serializing as jpeg

2008-07-22 Thread Joerg Heinicke
On 09.08.2007 14:14, Lincoln Mitchell wrote: How do I create a jpeg from an SVG which has reference to a relative external image? In previous posts I read that you can't write... xlink:href=image.jpg ... because the path CAN'T be relative. Is this true? Yes, that's true. The SVG2JPEG

Re: Is it possible to restrict file uploads to certain URLs?

2008-07-22 Thread Joerg Heinicke
On 29.01.2008 01:20, Andy Stevens wrote: I have a new requirement for one of our sites to allow the users to upload some files. However, I read in the Cocoon docs/wiki that switching on the enable-uploads init parameter will make it use the multipart request factory etc. on all requests it

Re: Problem with CInclude and nested exceptions

2008-07-22 Thread Joerg Heinicke
I remember a problem with exceptions/errors in flowscript swallowing the actual exception just like try { ... } catch (Exception e) { throw new Exception(); } in Java. Joerg On 10.09.2007 13:18, Tobia Conforto wrote: I'm currently experiencing an annoying problem where Cocoon does not

Re: Automatic call pipeline at startup

2008-07-22 Thread Joerg Heinicke
If you don't want to program it yourself you have to use the infrastructure provided. In your case it's the servlet API as Andreas pointed out. Joerg On 30.01.2008 14:40, Alessandro Vincelli wrote: Thank you for this solution, but I want find a solution less inasive. Andreas Kuehne ha

Re: Database connection by cocoon 2.2

2008-07-22 Thread Joerg Heinicke
I agree with Boris. In Cocoon 2.2 the database block is kind of obsolete. An application should rather be developed with more standard means as provided by Spring. Cocoon was never very good at integrating database stuff. Joerg On 06.06.2008 10:05, Johannes Hoechstaedter wrote: I know,

Re: Max file size in FileGenerator and encoding in StreamGenerator

2008-07-22 Thread Joerg Heinicke
On 26.02.2008 16:05, Stefan Ludwig wrote: my problem is solved! now i use the FileGenerator. configured like this: map:generate type=file src={request-param:file}/ I'm really surprised this works. It seems to be a valid alternative to upload protocol. But then I wonder why having the latter

Re: cache-dir keeps adding same jar files when creating an object

2008-07-22 Thread Joerg Heinicke
I might be wrong but I don't think the cache-dir is created by Cocoon. Joerg On 16.08.2007 21:54, footh wrote: The cache-dir in my cocoon app keeps adding about 4 megs of jar files every time I instantiate a certain class. The class in question is the ServiceClient class from Axis2. Simply

Re: More continuation scope questions ... [was: map:flow scope?]

2008-07-22 Thread Joerg Heinicke
On 01.02.2008 20:43, Steven D. Majewski wrote: So it appears that the continuation uri must resolve back to the same sitemap that originated the initial flowscript call. Yes, they have to. IIRC this feature was only introduced later on for security reasons and not there from the beginning.

Re: IncludeCacheManager vs. SourceUtil.toSAX

2008-07-22 Thread Joerg Heinicke
On 11.06.2008 15:00, Christoph Gaffga (triplemind.com) wrote: What is the best practice on including another pipeline? Does SourceUtil does use the pipeline cache also. And is IncludeCacheManager really using the pipeline cache? Somebody might correct me here, but I'm pretty sure ... Both

Re: Cocoon Productivity

2008-07-22 Thread Joerg Heinicke
On 31.05.2007 09:20, Niels van Kampenhout wrote: I have not seen anyone else pointing it out, but after a day or two I was really struck by the fact that conceptually pipelines are not pipelines in any common understanding of the term; rather matchers are the pipelines! I know what you mean,

Re: MultipartHttpServletRequest in a generator

2008-07-22 Thread Joerg Heinicke
On 16.06.2008 23:10, Grzegorz Kossakowski wrote: Situations like this are little bit worrying me but anyway standard question: why do you want to cast to MultipartHttpServletRequest? MultipartHttpServletRequest provides a method get(String) for access to multiparts which can't be accessed in

Re: Firefox 3 and URL

2008-07-02 Thread Joerg Heinicke
In Javascript you can use prototype to redeclare functions of an object. I wonder if it works though with core libraries or if they aren't locked. Joerg On 02.07.2008 08:48, Luca Morandini wrote: i have : xElt.getElementsByTagName(...); xElt is a XMLElement. i want to use your function

Re: pass wildcard parameters to transformer

2008-06-10 Thread Joerg Heinicke
On 10.06.2008 07:39, Johannes Hoechstaedter wrote: I have the follwing smapping: map:match pattern=test/* ... /map:match Now I want to insert this paranmeter defined by the wildcard in the generated xml document. I want to do this by a transformer. All I managed is to insert a variable by

Re: character-maps in cocoon

2008-06-10 Thread Joerg Heinicke
On 09.06.2008 06:29, Heather Rankin wrote: Are character-maps supported in Cocoon 2.1? I need to replace lt; and gt; entity references with the literal characters '' and '' and can't get it to work in Cocoon. I have the following character-map in my XSLT: xsl:output use-character-maps=cm1

Re: xsl:copy-of select

2008-06-09 Thread Joerg Heinicke
That makes it xsl:copy-of select=sql:rowset/sql:row/sql:email/. You have to navigate the tree. Joerg On 09.06.2008 11:05, Johannes Hoechstaedter wrote: The output is the following: sql:rowset nrofrows=... name=lastmod sql:row sql:login_namename/sql:login_name sql:emailemail/sql:email

XSP block (was: Type 'serverpages' does not exist for 'map:generate')

2008-06-09 Thread Joerg Heinicke
Moving this discussion from users list (for reference [1]) to dev list. On 06.06.2008 19:02, Alfred Nathaniel wrote: Warning: I'm stating my own opinion here, nothing official or something like that. There are at least three problems with XSP: 1. No active committer is interested in XSP

Re: Avoiding OutOfMemory Errors by limiting data in pipeline

2008-06-09 Thread Joerg Heinicke
Joerg Heinicke joerg.heinicke at gmx.de writes: 2. Does the full amount of the buffer automatically get allocated for each request, or does it grow gradually based on the xml stream size? That's a very good question - with a negative answer: A buffer of that particular size is created

Re: Type 'serverpages' does not exist for 'map:generate'

2008-06-04 Thread Joerg Heinicke
On 04.06.2008 02:25, Derek Hohls wrote: XSP is not available in Cocooon 2.2 - see: http://marc.info/?l=xml-cocoon-usersm=120349702914226w=2 where the developers suggest you migrate your code to use java objects + flowscript + template. Alternatively, stick to Cocoon 2.1 unless you have some

Re: Jboss 5.0.0.CR1 / Cocoon.war deployment issue - java.lang.IllegalAccessError: class javax.xml.parsers.SecuritySupport12

2008-06-03 Thread Joerg Heinicke
On 03.06.2008 20:55, Andrew Madu wrote: I am in the process of migrating my application from 4.0.3SP1 to 5.0.0.CR1, on Win XP SP1, and am receiving the following error message in the server logs when placing my WAR (Cocoon 2.1.8) into the deploy directory. It would seem that there is an issue

Re: Installation problem

2008-05-31 Thread Joerg Heinicke
On 30.05.2008 14:16, [EMAIL PROTECTED] wrote: I have just installed a new Cocoon 2.1.10 WAR file to our Tomcat 5 server. When you call Cocoon for the first time the following error shows up in the log file and Cocoon never appears in the browser. Has anyone seen this before? Here is the

Re: Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException

2008-05-22 Thread Joerg Heinicke
On 22.05.2008 04:05, Magnus Haraldsen Amundsen wrote: We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block to authenticate users. A short period of time after logging in we sometimes get a Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException.

Re: XML binding in the default namespace

2008-05-21 Thread Joerg Heinicke
On 21.05.2008 08:04, Suzan Foster wrote: https://issues.apache.org/jira/browse/COCOON-1794 But the patch does not change anything for non-repeater bindings. Does this imply that binding to default namespace actually works in general, the namespaces are just not propagated down to repeater

Re: Strange (?) cocoon.context.getInitParameter() == null problem

2008-05-15 Thread Joerg Heinicke
On 15.05.2008 12:16, Shahriar Aghajani wrote: Hi, I'm using Cocoon 2.2 RC2 on top of Tomcat and I had a strange problem with getInitParameter(). I defined some parameters in Tomcat's context block for my application, eg: These init parameters are not in Tomcat's servlet.xml (or whatever it

Re: CForms Aggregator Widget--preserving line breaks in text areas

2008-05-14 Thread Joerg Heinicke
On 14.05.2008 13:00, Paul Joseph wrote: However, when I use a Text Area type widget in an aggregator, I find that the Aggregator does not seem to be able to retrieve and display any information in any of the widgets that make up the aggregator, IF I enter even a single line break in the Text

Re: WebContinuation is null when using a custom Generator

2008-05-14 Thread Joerg Heinicke
On 14.05.2008 21:08, shai200 wrote: I'm trying to use a flowscript with a custom generator (not a JXTemplate), so I'm trying to get access to the continuation Id. But when I invoke WebContinuation kont = FlowHelper.getWebContinuation(objectModel); in the setup() method, kont is null... how do

Re: ImageReader displays path instead of image. Very annoying.

2008-05-11 Thread Joerg Heinicke
On 11.05.2008 20:19, shai200 wrote: I'm using the following ImageReader component configuration: map:components map:readers default=resource map:reader name=image src=org.apache.cocoon.reading.ImageReader logger=sitemap.reader.image pool-max=32/ /map:readers

Re: Avoiding OutOfMemory Errors by limiting data in pipeline

2008-04-27 Thread Joerg Heinicke
On 24.04.2008 16:08, Bruce Atherton wrote: Thanks for the response. About setting the buffer size, this looks like it could be what I am looking for. A few questions: 1. Do I have to set the buffer size on each transformer and the serializer as well as the generator? What about setting it on

Re: Problem after trunk update

2008-04-27 Thread Joerg Heinicke
On 25.04.2008 07:33, Robin Rigby wrote: Updated trunk. Rebuild OK. Then mvn jetty:run gives this first ERROR [main] (ContextLoader.java:214) - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from

Re: [HELP] SitemapEvenListener

2008-04-27 Thread Joerg Heinicke
On 23.04.2008 05:48, Patrick Heiden wrote: Still no ideas/solutions to share (Jörg?). I can't hide, can I? ;) A have read [1] and assume that one of your aforementioned colleagues is Jörg Heinicke ( maybe you have a solution meanwhile, Jörg? Especially: How are you able to use declarative

Re: [2.1]change response http status

2008-04-27 Thread Joerg Heinicke
On 16.04.2008 07:24, nanomonk wrote: Hmm.. no, I need to set status code according to some events during executing my own serializer, for example: if all ok done - status code 1, some error - 2, another error - 3... so, can I to access to Response object from serializer(exactly via

Re: How do I use multiple custom generators for a single page?

2008-04-23 Thread Joerg Heinicke
On 23.04.2008 18:49, James 7 wrote: The xml is not written to file so I cannot simply include them as parts of an aggregate, at least as far as I know. You can, using the cocoon:/ pseudo protocol in map:aggregate causing a sub request in the same sitemap: map:match pattern=test

Re: Avoiding OutOfMemory Errors by limiting data in pipeline

2008-04-23 Thread Joerg Heinicke
On 23.04.2008 20:56, Bruce Atherton wrote: Here are some specifics, in case they are relevant. One heap analysis showed 1.5 Gigabytes of memory being held by the object at the end of this tree (package names suppressed to keep this readable): - ScriptableObject - FOM_Cocoon -

Re: NEWBIE question: HTML Generator

2008-04-16 Thread Joerg Heinicke
On 16.04.2008 07:48, Heather Rankin wrote: Browser's configured to use an HTTP Proxy. Can I configure anything on the cocoon end to deal with this? You can configure the JVM to use a proxy by setting system properties: http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html Joerg

Re: date bug related to leap year?

2008-04-12 Thread Joerg Heinicke
On 12.04.2008 07:40, Paul Joseph wrote: Do you know what I need to do to switch it to the JDK lib.? Any thing to grep for that I then need to replace with its equivalent JDK call? I can't answer your questions directly right now, but I searched for ICU4J on our changes page [1] and found

Re: date bug related to leap year?

2008-04-11 Thread Joerg Heinicke
On 10.04.2008 06:01, Paul Joseph wrote: In short, I see this problem only for the date datatype for a field widget that is used in a repeater type widget on a Windows platform. Could it be related to the date library? As far as I know we used to use or still use IBM's ICU4J but there should

Re: Javaflow - major memory issue

2008-04-03 Thread Joerg Heinicke
footh footh at yahoo.com writes: Ok, I applied all the changes in order. Since some changes affect the same class, I'm assuming the latter change contains any changes from a previous revision. I don't know how exactly you mean this, but one *change* does definitely not include the former

Re: Multiple or single cocoon instances

2008-04-03 Thread Joerg Heinicke
On 03.04.2008 18:44, Shahriar Aghajani wrote: I'd like to know about this too. How do people run a fleet of disparate Cocoon applications/websites on a single server? I have a hand full of Cocoon sites that I'm running on the same server, under Tomcat, each as a separate virtual host. We

Re: Javaflow - major memory issue

2008-04-02 Thread Joerg Heinicke
in. Do you have better results waiting let's say 15 or 20 minutes? Joerg --- Joerg Heinicke [EMAIL PROTECTED] wrote: On 01.04.2008 18:52, footh wrote: Just ran a very simple test using the changes from revision 642694 and had unusual results. Byte arrays, and consequently

Re: Javaflow - major memory issue

2008-04-01 Thread Joerg Heinicke
On 01.04.2008 18:52, footh wrote: Just ran a very simple test using the changes from revision 642694 and had unusual results. Byte arrays, and consequently the BufferedOutputStream still took up large amounts of retained space in the total memory usage. So, this didn't change. However, the

Re: Javaflow - major memory issue

2008-03-30 Thread Joerg Heinicke
On 27.03.2008 00:31, Joerg Heinicke wrote: Sure, here is the hierarchy from bottom to top. At this point, I ran the test for about five minutes (running longer would increase the percentage) and the retained size of the one ContinuationsManagerImpl object is 58% of the total

Re: Character escaping problem with custom generator

2008-03-30 Thread Joerg Heinicke
On 30.03.2008 03:39, shai200 wrote: I have a custom generator with a generate() method that looks like this: public void generate() throws IOException, SAXException, ProcessingException { contentHandler.startDocument();

Re: Javaflow - major memory issue

2008-03-27 Thread Joerg Heinicke
On 27.03.2008 04:39, Torsten Curdt wrote: Sure, here is the hierarchy from bottom to top. At this point, I ran the test for about five minutes (running longer would increase the percentage) and the retained size of the one ContinuationsManagerImpl object is 58% of the total. The

Re: Javaflow - major memory issue

2008-03-26 Thread Joerg Heinicke
On 18.03.2008 03:07, footh wrote: Sure, here is the hierarchy from bottom to top. At this point, I ran the test for about five minutes (running longer would increase the percentage) and the retained size of the one ContinuationsManagerImpl object is 58% of the total. The

Re: i18n:text stored in an xsl:variable

2008-03-26 Thread Joerg Heinicke
On 20.03.2008 13:29, Rainer Koschnick wrote: It seems that the results of a i18n:text/ translation cannot be stored in a xsl:variable/. That has nothing to do with i18n. What you are trying to do just does not work with XSLT 1.0. xsl:template match=paramText xsl:variable name=param0

Re: i18n:text stored in an xsl:variable

2008-03-26 Thread Joerg Heinicke
On 20.03.2008 15:43, [EMAIL PROTECTED] wrote: SOLUTION 2: Pass i18n elements as text to remain in results for later transforms. xsl:variable name=param0 xsl:text disable-output-escaping=yeslt;i18n:text key=[EMAIL PROTECTED]/gt;/xsl:text /xsl:variable This will very likely not work. The

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 00:31, shai200 wrote: This doesn't work for me for some reason. I get an error (see end of this message). My code snippet is: public class XMLInjectAction extends AbstractAction { public Map act (Redirector redirector,SourceResolver resolver, Map objectModel, String

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 18:46, shai200 wrote: This requirement is the primary function that I'll need from Cocoon, otherwise it's not good for me and I'll have to find some other servlet generating framework. It's not that Cocoon does not support this functionality in general. What we said so far only

Re: Compiled vs. Interpreted Sitemap Engine (Cocoon 2.x)

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 21:00, Robert La Ferla wrote: btw - this applies to Cocoon 2.1 as well. Anyone know how exactly it works? See Carsten's reply on the dev list: http://marc.info/?l=xml-cocoon-devm=120644301119918w=4 Joerg - To

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 22:45, shai200 wrote: Alright, so since you're already in the groove of answering my questions (thanks btw), I would need my generator class to also have access to the entire Request Map (preferably in the form MapString,String[] where the String[] key is the set of values in case

Re: java 1.5 and cocoon

2008-03-24 Thread Joerg Heinicke
On 24.03.2008 21:03, Robert La Ferla wrote: Cocoon is Java 5 or even Java 6 compatible. I think this is true for Cocoon 2.1 and above but not for 2.0 which has a package with enum in the namespace. I'm tempted to say of course not thinking that this should be obvious. I mean when did we

Re: java 1.5 and cocoon

2008-03-22 Thread Joerg Heinicke
On 22.03.2008 11:07, Patrick Heiden wrote: Some parts of my domainmodel rely on java-1.5 specific stuff like Generics and so on. Within my first cocoon steps I don't have changed the source=1.3 attribute and of course get the 'generics are not supported in -source 1.3'-build-error. Is this

Re: How to inject the result of an action into a generator

2008-03-18 Thread Joerg Heinicke
On 18.03.2008 01:50, shai200 wrote: I am wondering about another option: is it possible to generate a JSP and then from within the JSP call a to a bean to which I'll pass the request object? Or will the JSP not have access to the request? Generate a JSP? Sounds horrible ;-) In general the JSP

Re: Javaflow - major memory issue

2008-03-17 Thread Joerg Heinicke
On 17.03.2008 20:50, footh wrote: Thanks for all the replies. I did some more digging into the profiling data. It turns out that the ContinuationsManagerImpl is at the top of the object path of the byte arrays where org.apache.cocoon.environment.util.BufferedOutputStream is the actual parent

  1   2   3   4   5   6   7   8   9   10   >