Re: Bug in Cocoon-Caching?

2010-03-25 Thread Johannes Lichtenberger
On Tue, 2010-03-23 at 02:31 +0100, Jos Snellings wrote: > This was not a bug. I observed that caching pipelines produce this only > if they end in an XML serialization. This behaviour was strange and > misleading. > However, the cause was the 'cacheKey' the generator returned was the > "simpleCache

Re: Bug in Cocoon-Caching?

2010-03-22 Thread Johannes Lichtenberger
I think it could be related to the bug Jos Snellings posted some time ago where always the first execution in pipeline with type="xml" serializers is beeing executed. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org

Bug in Cocoon-Caching?

2010-03-22 Thread Johannes Lichtenberger
Hi, I've written generators, and caching generators which extend the non-caching components and implement CachingPipelineComponent. The isValid(CacheKey) method is as follows: /** * Check if caching period expired. * * @see org.apache.cocoon.pipeline.caching.AbstractCacheKey#isValid(Ca

rapid class reloader problem

2010-03-18 Thread Johannes Lichtenberger
Hi, somehow the rapid class reloader doesn't work... I'm not getting exceptions or anything, but a simple test with a sysout statement raised the problem that it's only going to be printed out after a complete restart of jetty (I usually use jetty:run which is a pain with remote debugging). greet

Unit tests...

2010-03-18 Thread Johannes Lichtenberger
Hi, I've tried to test my generator like I've found an "example" from the XMLSerializer (in trunk version): @Test public void testGenerator() throws Exception { runPipeline(new SAXGenerator(), XML); } private static void runPipeline( final SAXProducer generator, final Str

Re: Writing generator / Cocoon3 alpha

2010-03-16 Thread Johannes Lichtenberger
On Tue, 2010-03-16 at 17:36 +0100, Steven Dolg wrote: > Johannes Lichtenberger schrieb: > > Hm I checked out a new empty cocoon3 block with maven, copied the source > > codes and now the exceptions jetty throwed disappeared, but it still > > doesn't execute: >

Re: Writing generator / Cocoon3 alpha

2010-03-16 Thread Johannes Lichtenberger
Hm I checked out a new empty cocoon3 block with maven, copied the source codes and now the exceptions jetty throwed disappeared, but it still doesn't execute: public void execute() { try { System.out.println("blaa"); So blaaa is never printed on STDOUT... I assume my pattern

Re: Writing generator / Cocoon3 alpha

2010-03-09 Thread Johannes Lichtenberger
On Mon, 2010-03-08 at 19:15 +0100, Johannes Lichtenberger wrote: > On Mon, 2010-03-08 at 08:34 +0100, Reinhard Pötz wrote: > > Johannes Lichtenberger wrote: > > > On Sat, 2010-03-06 at 13:19 +0100, Johannes Lichtenberger wrote: > > >> On Sat, 2010-03-06 at 07

Re: Writing generator / Cocoon3 alpha

2010-03-08 Thread Johannes Lichtenberger
On Mon, 2010-03-08 at 08:34 +0100, Reinhard Pötz wrote: > Johannes Lichtenberger wrote: > > On Sat, 2010-03-06 at 13:19 +0100, Johannes Lichtenberger wrote: > >> On Sat, 2010-03-06 at 07:21 +0100, Jos Snellings wrote: > >>> Johannes, you need one or two things be

Re: Writing generator / Cocoon3 alpha

2010-03-07 Thread Johannes Lichtenberger
On Sat, 2010-03-06 at 13:19 +0100, Johannes Lichtenberger wrote: > On Sat, 2010-03-06 at 07:21 +0100, Jos Snellings wrote: > > Johannes, you need one or two things beside the code of the generator. > > - first, how is it invoked? Can you send the fragment of your > > sitemap

Re: Writing generator / Cocoon3 alpha

2010-03-06 Thread Johannes Lichtenberger
On Sat, 2010-03-06 at 07:21 +0100, Jos Snellings wrote: > Johannes, you need one or two things beside the code of the generator. > - first, how is it invoked? Can you send the fragment of your > sitemap.xmap that matches an url supposed to invoke this generator? > - second, is there a line in sitem

Writing generator / Cocoon3 alpha

2010-03-05 Thread Johannes Lichtenberger
Hi, I've got a (maybe rather simple) problem, but somehow the exectute()-method isn't going to be invoked. I can see, that my generator is, because I simply created a static-Block with a sysout statement. But /** * {...@inheritdoc} */ public void execute() { try { System.out.

Native XML database system / use cases

2010-02-24 Thread Johannes Lichtenberger
Hi all, can you think of nice use cases for an integration of Cocoon into a native XML database system? I've recently implemented a generic Generator which reads whole (shreddered) xml documents from the database system, am currently implementing a simple XPathTransformer which reads an attribute

Re: Springframework Exception / Cocoon3 Alpha1

2009-12-22 Thread Johannes Lichtenberger
On Tue, 2009-12-22 at 14:31 +0100, Thomas Markus wrote: > hi, > > set current spring version in your pom dependencyManagement section Ok, thank you. greetings, Johannes - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache

Springframework Exception / Cocoon3 Alpha1

2009-12-22 Thread Johannes Lichtenberger
Hello, it seems I'm getting the exact same exception on a computer running Windows 7: http://mail-archives.apache.org/mod_mbox/cocoon-users/200905.mbox/% 3c7c655c04b6f59643a1ef66056c0e095e023cb...@eusex01.sweden.ecsoft%3e Our cocoon app is running on Ubuntu Linux 9.10, Mac OS X and on another Wi

Re: writing my own transformer

2009-12-18 Thread Johannes Lichtenberger
On Fri, 2009-12-18 at 20:46 +0100, Johannes Lichtenberger wrote: > Hi, > > another maybe silly question is how do I get the consumer in a > transformer which extends AbstractTransformer (in Cocoon3). It seems if > I specify "final XMLConsumer mXMLConsumer = this.getXMLCons

Re: parameters / objects from pipeline comp. to pipeline component

2009-12-18 Thread Johannes Lichtenberger
On Fri, 2009-12-18 at 20:41 +0100, Johannes Lichtenberger wrote: > Hi, > > what's the proper way to handle data which should be sent from a > generator to a transformer (an ArrayList). It seems if I use a simple > static getter on a static ArrayList it's always

writing my own transformer

2009-12-18 Thread Johannes Lichtenberger
Hi, another maybe silly question is how do I get the consumer in a transformer which extends AbstractTransformer (in Cocoon3). It seems if I specify "final XMLConsumer mXMLConsumer = this.getXMLConsumer();" it's null... regards, Johannes -

parameters / objects from pipeline comp. to pipeline component

2009-12-18 Thread Johannes Lichtenberger
Hi, what's the proper way to handle data which should be sent from a generator to a transformer (an ArrayList). It seems if I use a simple static getter on a static ArrayList it's always null. regards, Johannes - To unsubscribe

SAXBuffer

2009-12-16 Thread Johannes Lichtenberger
I think for a thread-implementation I could use the SAXBuffer and add synchronized blocks like the following: synchronized(buf) { buf.addXXX(...); } regards, Johannes - To unsubscribe, e-mail: users-unsubscr...@cocoon.apac

Threading

2009-12-16 Thread Johannes Lichtenberger
Hi, I've thought about it and I think the simplest and fastest way to process a very regular XML file (shreddered) out of native database system is to build a datastructure with Threads. The xml file looks like: ... ... ... ... ... ... So I can create

Multithreading within a pipeline component.

2009-12-10 Thread Johannes Lichtenberger
Hello, is it even possible to generate threads for instance in a generator? I assume the SAX events generated wouldn't be in the right order at the following transformer. regards, Johannes - To unsubscribe, e-mail: users-unsub

Re: log4j issues...

2009-12-10 Thread Johannes Lichtenberger
On Fri, 2009-12-11 at 00:50 +0100, Steven Dolg wrote: > Johannes Lichtenberger schrieb: > > Hello, > > > > I'm still trying to catch errors with my logger, now I've even tried the > > following: > > > > static { > > GoogleEarthGe

log4j issues...

2009-12-10 Thread Johannes Lichtenberger
Hello, I'm still trying to catch errors with my logger, now I've even tried the following: static { GoogleEarthGenerator.class.getResource("rcl-config/WEB-INF/log4j.xml"); } /** Logger (commons-logging). */ private Log logger = LogFactory.getLog(getClass().getName()); but I'm always

Re: configuring Jetty to log into a file

2009-12-07 Thread Johannes Lichtenberger
On Mon, 2009-12-07 at 06:52 +0100, Jos Snellings wrote: > Look for any log4j.xml or log4j.properties in the classpath. > There is a log4j.xml in the cocoon samples > in ./rcl-config/WEB-INF/log4j.xml. A log file is created in name="File" value="./target/work/log/cocoon.log"/> > Jos Hello Jos, I

configuring Jetty to log into a file

2009-12-06 Thread Johannes Lichtenberger
Well, it's maybe not really cocoon specific, but I use mvn jetty:run to run jetty and I'm getting an Error in a recursive function so the stack trace is too long to follow in my shell. Does perhaps someone know how to configure jetty to log stacktraces in a file? greetings, Johannes

Re: run jetty / error / custom webapp

2009-12-05 Thread Johannes Lichtenberger
On Sat, 2009-12-05 at 23:50 +0100, Reinhard Pötz wrote: > Johannes Lichtenberger wrote: > > Hi, > > > > I have shared a project in a subversion repository, but when I checkout > > the project on another place and try to start jetty (mvn jetty:run) I > > get th

Re: debug

2009-12-05 Thread Johannes Lichtenberger
On Sat, 2009-12-05 at 23:32 +0100, Reinhard Pötz wrote: > Johannes Lichtenberger wrote: > > On Sat, 2009-12-05 at 23:10 +0100, Reinhard Pötz wrote: > >> Johannes Lichtenberger wrote: > >>> Hello, > >>> > >>> how do I debug pipeline components

Re: run jetty / error / custom webapp

2009-12-05 Thread Johannes Lichtenberger
I think the essential snippet from the POM file is: org.apache.cocoon cocoon-maven-plugin 1.0.0-M3 ssf rcl-config compile prepare

Re: debug

2009-12-05 Thread Johannes Lichtenberger
On Sat, 2009-12-05 at 23:10 +0100, Reinhard Pötz wrote: > Johannes Lichtenberger wrote: > > Hello, > > > > how do I debug pipeline components efficiently? I mean I don't have the > > Eclipse IDE Debugger, so I'm currently writing logger or simply syso

run jetty / error / custom webapp

2009-12-05 Thread Johannes Lichtenberger
Hi, I have shared a project in a subversion repository, but when I checkout the project on another place and try to start jetty (mvn jetty:run) I get the following error: [INFO] Can't copy custom webapp files (directory: '/home/johannes/workspace/mysite/rcl-config) to the web application in prepa

debug

2009-12-04 Thread Johannes Lichtenberger
Hello, how do I debug pipeline components efficiently? I mean I don't have the Eclipse IDE Debugger, so I'm currently writing logger or simply sysouts which isn't very helpful when debugging :-/ greetings, Johannes - To unsubsc

Re: URLConnectionUtils.closeLoudly()

2009-12-04 Thread Johannes Lichtenberger
On Fri, 2009-12-04 at 15:15 +0100, Jos Snellings wrote: [StackTrace] > It is certainly not closing a connection quietly :-) > > In URLResponse.java, is it possible that in execute() > > servletConnection = this.url.openConnection(); is null? > > Responses are like: >if (action.equals("st"

FlowScript

2009-11-29 Thread Johannes Lichtenberger
Hello, is FlowScript obsolete in Cocoon3 (if using cocoon-controller and cocoon-rest)? It seems it can't or at least really shouldn't be used in a RESTful webservice and I think that's one of the main goals of cocoon3? I'm currently preparing a short presentation about cocoon and I think to adher