Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 28727 invoked by uid 500); 20 May 2002 18:48:08 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 28716 invoked from network); 20 May 2002 18:48:07 -0000 Date: Mon, 20 May 2002 20:47:02 +0200 (CEST) From: Stephan Michels To: cocoon-users Subject: Re: Fwd: SourceWriterTransformer problems In-Reply-To: <20020520143420.47026.qmail@web20703.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, 20 May 2002, [iso-8859-1] Jeremy Aston wrote: > I've been racking my brain all weekend over a problem with SourceWriterTransformer (more likely my use of it actually). On C2.0.2, JDK1.3 everything works fine. I have now moved to 2.1-dev, JDK1.4 and my JDK1.4 compiled excalibur. SourceWriterTransformer now no longer works. It does do the source:insert stuff as per the Sunspot stuff but not source:write. It now throws various exceptions on the name of the file that it should write to as specified in the src attribute of the source:write element. > > I have tried different combinations in the sitemap including a generator and a serializer around the transformer but it makes no difference > > My source XML file is: > > > > > > I've tried it with the jez/jez.xml file created and not created but to no avail. This is strange because everything was working, creating files if they did not exist etc so I am getting just a little stumped. I have also tried different protocols (file://, context://) etc but they all just vary the exception thrown with the same basic message that the file cannot be found. > > If the file already exists (as zero length) then the error is: > > WARN (2002-05-20) 11:10.56:416 [sitemap.transformer.tofile](/xcpt/testwrite) HttpProcessor[8080][0]/SourceWritingTransformer: failed, The src attribute doesn't resolve to a writeable source > java.lang.ClassCastException: org.apache.excalibur.source.impl.URLSource I think only org.apache.cocoon.components.source.impl.FileSource implements WriteableSource. So only file:// should work. If not perhaps, you use the false SourceFactory. You should have following entries in your xconf --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: