Hi !!
I worked with Tomcat 4.0.4, JDK 1.3.1_03 and Cocoon2.0.2-src under W2000. I want to use the Cocoon2.0.3 version. I installed it as describe in the "Installing Apache Cocoon" page. I get a problem with a part of my site. As it didn't work with 2.0.3-bin I tried with 2.0.3-src and 2.0.2-bin : it works with none of this. I don't understand... I have the message: type fatal message Generator already set. You can only select one Generator (file) description org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.se tGenerator (AbstractEventPipeline.java:135) at org.apache.cocoon.components.pipeline.CachingEventPipeline.set Generator( CachingEventPipeline.java:117) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.matchN 10564(H:\j akarta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-fi les\org/apache/cocoon/www/file_/H_/transrapide\sitemap_xmap.java:3798) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.proces s(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\ org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:1087) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.proces s(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\ org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:782) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) [...] request-uri /cocoon/monsite/internet/espaceclient/espaceclient.info path-info monsite/internet/espaceclient/espaceclient.info It appears as I use this part of my sitemap (with the request uri "internet/espaceclient/test.bienvenue.acces" and no session information): <map:match pattern="*/*/*.*.*"> <!-- first validate whether user has logged in --> <map:act type="session-validator"> <map:parameter name="descriptor" value="descriptors/params.xml"/> <map:parameter name="validate" value="identifiant,nom,prenom,id,titre"/> <!-- generate protected content --> <map:generate session="true" type="serverpages" src="logic/{../2}/{../3}.xsp"> <map:parameter name="lid" value="{id}"/> </map:generate> <map:transform src="stylesheets/{../1}/{../5}.xsl"> <map:parameter name="xml-file" value="../../documents/{../2}/{../4}.xml"/> <map:parameter name="media" value="{../1}"/> <map:parameter name="section" value="{../2}"/> <map:parameter name="css-stylesheet" value="styles.css"/> <map:parameter name="css-menu" value="menu-{../1}.css"/> <map:parameter name="toc-file" value="../../documents/toc.xml"/> <map:parameter name="base-url" value="/cocoon/transrapide"/> <map:parameter name="req-page" value="{../3}.{../4}.{../5}"/> </map:transform> <map:transform src="stylesheets/{../1}/menupage.xsl"> <map:parameter name="titre" value="{titre}"/> <map:parameter name="prenom" value="{prenom}"/> <map:parameter name="nom" value="{nom}"/> <map:parameter name="id" value="{id}"/> <map:parameter name="section" value="{../2}"/> <map:parameter name="toc-file" value="../../documents/toc.xml"/> <map:parameter name="css-stylesheet" value="styles.css"/> <map:parameter name="css-menu" value="menu-{../1}.css"/> <map:parameter name="base-url" value="/cocoon/transrapide"/> <map:parameter name="barre-logo" value="../../documents/logo.xml"/> <map:parameter name="request-url" value="{../3}.{../4}"/> <map:parameter name="media" value="{../1}"/> </map:transform> <map:serialize session="true"/> </map:act> <!-- something was wrong, redirect to login page --> <map:redirect-to uri="espaceclient.info"/> </map:match> that use the redirect part and this other part of the sitemap: <map:match pattern="internet/espaceclient/espaceclient.info"> <map:generate src="documents/espaceclient/login.xml"/> <map:transform src="stylesheets/internet/info2.xsl"> <map:parameter name="section" value="espaceclient"/> <map:parameter name="base-url" value="/cocoon/transrapide"/> </map:transform> <map:call resource="InternetMenuPage"> <map:parameter name="section" value="espaceclient"/> <map:parameter name="request-url" value="{2}.{3}"/> </map:call> <map:serialize/> </map:match> Obviously, this worked with 2.0.2... Thanks, Nicolas !! > > -----Message d'origine----- > > De : Koen Pellegrims [mailto:[EMAIL PROTECTED]] > > Envoye : mercredi 28 aout 2002 15:54 > > A : [EMAIL PROTECTED] > > Objet : RE: 2.0.2 -> 2.0.3 > > > > > > I cannot tell you what has changed, but I can help you look > > for the error. > > The exception is thrown during the compile phase for the > > sitemap. When the > > sitemap (or any xsp/logicsheet) is recompiled, cocoon > generates a java > > source file that gets compiled. The line number in the > > exception is in this > > sitmap_xmap.java file. > > > > This file is somewhere in your work directory, which is probably > > <tomcat-dir>/work or > <tomcat-dir>/webapps/cocoon/WEB-INF/work. In this > > directory, you'll find a hierarchy that corresponds with your > > webapps. Look > > for sitemap_xmap.java there and inspect line 1210. That > > should at least give > > you a clue as to what is wrong with your sitemap. > > > > K. > > > > > -----Oorspronkelijk bericht----- > > > Van: zze-STIENNE Nicolas FTRD/DMI/CAE > > > [mailto:[EMAIL PROTECTED]] > > > Verzonden: woensdag 28 augustus 2002 15:31 > > > Aan: [EMAIL PROTECTED] > > > Onderwerp: 2.0.2 -> 2.0.3 > > > > > > > > > Hi !! > > > > > > I worked with Tomcat 4.0.4, JDK 1.3.1_03 and Cocoon2.0.2 > > under W2000. > > > > > > I want to use the Cocoon2.0.3 version. > > > > > > I installed it as describe in the "Installing Apache Cocoon" page. > > > > > > But when I test it I receive the following message : > > > > > > org.apache.cocoon.ProcessingException: Language Exception: > > > org.apache.cocoon.components.language.LanguageException: > > Error compiling > > > sitemap_xmap: Line 1210, column 84: invalid escape > > character Line 1214, > > > column 40: invalid escape character Line 1261, column 84: > > invalid escape > > > character Line 1265, column 40: invalid escape character > > Line 0, column > > > 0: 4 errors > > > > > > Where could the problem come from ? > > > How can I interprete the line number: 1210 doesn't exist in my > > > sitemap... > > > > > > Why does my sitemap compile without error under > Cocoon2.0.2 but not > > > under Cocoon2.0.3 ? > > > > > > Thanks for the response... > > > > > > Please excuse me if a similar question/answer has been > written... I > > > haven't found it... > > > > > > Nicolas !! > > > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been > > answered in the > > > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > > For additional commands, e-mail: > <[EMAIL PROTECTED]> > > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>