Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 68278 invoked by uid 500); 14 Mar 2002 19:43:59 -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 68267 invoked from network); 14 Mar 2002 19:43:59 -0000 From: "Vadim Gritsenko" To: Subject: RE: Problem creating new generator Date: Thu, 14 Mar 2002 14:43:23 -0500 Message-ID: <003201c1cb90$809df810$90a4558b@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <000c01c1cb73$a52d1fc0$85966586@Pachelbel> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Volker Schneider [mailto:volker.schneider@danet.de] > > Dear cocoon-users, First of all, what servlet engine do you use? I will assume Tomcat 4.0.1 here... > first I tried to run the "time" example, but I got the error message, that > the component cannot be found, though all classes were at the right place. What is it? Or were did you get it? > Second I tried to take the Generator.java class, Do you mean Generator interface or one of the Cocoon's generators? > renamed it and cleaned it > from the missing component. The generator should now generate an empty > document (startDocument + endDocument). For this class I created a new > directory "testapp" below the "classes" directory Is this classes directory same as tomcat/webapps/cocoon/WEB-INF/classes? > and gave the new class the > package name of this directory. I assume you compiled your generator and you have a class file. > Then I registered the new generator in the > sitemap, but didn't create a pipeline for it (I removed my pipeline, because > I saw, that the error also occurred without the pipeline. Then I cleaned the > working directory and restarted cocoon). > > When calling the demo site http:///cocoon (which takes the changed > sitemap) an error occurred which says, that the sitemap was wrong, because > the class name was unknown. My generator entry looked like this: > > ... > > > > What is wrong? If my assumptions are correct, it should work. > Where can I find examples or documentation how to add / build new > generators, transformers and serializers? Basically, these are all the correct steps. If you will be unable to find a solution for your issue, you can try (assuming you have src version of Cocoon, not bin) to put your generator under org.apache.cocoon.generation package, and use "build -Dinclude.webapp.libs=yes webapp" to make webapp which includes your generator. Vadim > We can't use only standard > components, because as an example we have to serve some other devices which > don't understand HTML or WML. > > Thank you, best regards, > - Volker - --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: