cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2] Generator Already Set
Date Mon, 23 Oct 2000 18:11:25 GMT
Berin,

You missed the "<map:serialize/>" in your sitemap.xmap, this caused the problem.

-------------------------------------------------------------------------------------------
   <map:match pattern="welcome">
    <map:generate src="docs/home.xml"/>
    <map:transform src="stylesheets/document2html.xsl"/>
    <map:serialize/>           
   </map:match>
-------------------------------------------------------------------------------------------

Thanks,
dims

--- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> That doesn't help if you aren't using the Cocoon samples
> sitemap.  I have that, and that context works nicely.
> The problem came in after my customized sitemap didn't
> process nicely for some reason.
> ----- Original Message ----- 
> From: "Davanum Srinivas" <dims@yahoo.com>
> To: <cocoon-dev@xml.apache.org>
> Sent: Monday, October 23, 2000 12:49 PM
> Subject: Re: [C2] Generator Already Set
> 
> 
> > Berin,
> > 
> > Use my sitemap.xmap and see if this helps. Adjust the gif, css, js paths if needed.
> > 
> > Thanks,
> > dims
> > 
> > --- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> > > Yep.  I changed the XSL.  Here is a copy--we have a
> > > rather complex layout for our page, but hopefully you
> > > can sort it out.
> > > 
> > > ----- Original Message ----- 
> > > From: "Davanum Srinivas" <dims@yahoo.com>
> > > To: <cocoon-dev@xml.apache.org>
> > > Sent: Monday, October 23, 2000 10:27 AM
> > > Subject: Re: [C2] Generator Already Set
> > > 
> > > 
> > > > Berin,
> > > > 
> > > > What did you try to modify? Did you try to change the XSL for the error
page? Any way send
> me
> > > the
> > > > changes, i will take a look.
> > > > 
> > > > Thanks,
> > > > dims
> > > > 
> > > > --- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> > > > > Has anyone looked into this?  It is frustrating when everything looks
OK, but
> > > > > you *have* to use the included Cocoon error page just to make things
work.
> > > > > 
> > > > > My sitemap doesn't explicitly look like it is setting the Generator
for error
> > > > > pages at all.  Any help on this front would be appreciated.
> > > > > 
> > > > > ----- Original Message -----
> > > > > From: "Berin Loritsch" <bloritsch@infoplanning.com>
> > > > > To: <cocoon-dev@xml.apache.org>
> > > > > Sent: Friday, October 20, 2000 2:47 PM
> > > > > Subject: [C2] Generator Already Set
> > > > > 
> > > > > 
> > > > > > I decided to do a quick port of our company's web site to
> > > > > > Cocoon2 to see just how easy it was.  Since we only had
> > > > > > one XSP page, it was cake.  However, when I wanted to
> > > > > > play with changing the style of the error page to match
> > > > > > the rest of the site, I got the following error and
> > > > > > nothing renders any more:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
----------------------------------------------------------------------------------------------------
> > > > > > :Error creating the resource
> > > > > >
> > > > > > Generator already set. You can only select one Generator (generator:file)
> > > > > >
> > > > > > from
> > > > > >
> > > > > > source
> > > > > >
> > > > > > org.apache.cocoon.ProcessingException
> > > > > >
> > > > > > description
> > > > > >
> > > > > > org.apache.cocoon.ProcessingException: Generator already set.
You can only select one
> > > > > Generator (generator:file)
> > > > > >
> > > > > > extra info
> > > > > >
> > > > > > org.apache.cocoon.ProcessingException: Generator already set.
You can only select one
> > > > > Generator (generator:file) at
> > > > > > org.apache.cocoon.sitemap.ResourcePipeline.setGenerator(ResourcePipeline.java:78)
at
> > > > > >
> _D_._jakarta_tomcat_4_0_m3._webapps._ROOT._sitemap_xmap.process(_sitemap_xmap.java:1137)
> > > at
> > > > > > org.apache.cocoon.sitemap.Handler.process(Handler.java:132)
at
> > > > > org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87) at
> > > > > > org.apache.cocoon.Cocoon.process(Cocoon.java:226) at
> > > > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:166)
at
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
> > > > > >
> > >
> org.apache.catalina.core.ApplicationFilterWrapper.doFilter(ApplicationFilterWrapper.java:159)
> > > > > at
> > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:165)
at
> > > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:174)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:1785)
at
> > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
> > > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:343)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:785)
at
> > > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:902)
at
> > > > > java.lang.Thread.run(Thread.java:484)
> > > > > >
> > > > > > Error creating the resourceorg.apache.cocoon.ProcessingExceptionGenerator
already set.
> You
> > > can
> > > > > only select one Generator
> > > > > > (generator:file)org.apache.cocoon.ProcessingException: Generator
already set. You can
> only
> > > > > select one Generator
> > > > > > (generator:file)org.apache.cocoon.ProcessingException: Generator
already set. You can
> only
> > > > > select one Generator (generator:file)
> > > > > at
> > > > > > org.apache.cocoon.sitemap.ResourcePipeline.setGenerator(ResourcePipeline.java:78)
at
> > > > > >
> _D_._jakarta_tomcat_4_0_m3._webapps._ROOT._sitemap_xmap.process(_sitemap_xmap.java:1137)
> > > at
> > > > > > org.apache.cocoon.sitemap.Handler.process(Handler.java:132)
at
> > > > > org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87) at
> > > > > > org.apache.cocoon.Cocoon.process(Cocoon.java:226) at
> > > > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:166)
at
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
> > > > > >
> > >
> org.apache.catalina.core.ApplicationFilterWrapper.doFilter(ApplicationFilterWrapper.java:159)
> > > > > at
> > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:165)
at
> > > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:174)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:1785)
at
> > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
> > > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:343)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:785)
at
> > > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:902)
at
> > > > > java.lang.Thread.run(Thread.java:484)
> > > > > >
> > > > > > ---------------------------------------
> > > > > > If you lust for Ham and Eggs, you have
> > > > > > committed breakfast in your heart
> > > > > > already.   -- C. S. Lewis
> > > > > 
> > > > 
> > > > 
> > > > =====
> > > > Davanum Srinivas, JNI-FAQ Manager
> > > > http://www.jGuru.com/faq/JNI
> > > > 
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Messenger - Talk while you surf!  It's FREE.
> > > > http://im.yahoo.com/
> > > > <?xml version="1.0"?>
> > > 
> > > <xsl:stylesheet version="1.0"
> > >  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >  xmlns:error="http://apache.org/cocoon/2.0/error">
> > > 
> > >   <xsl:template match="error:notify">
> > >     <html>
> > >       <head>
> > >         <title><xsl:value-of select="@type"/>:<xsl:value-of
select="error:title"/></title>
> > >         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
> > >         <link rel="stylesheet" type="text/css" href="resources/ipms.css"
title="ipms"/>
> > >         <script src="resources/menu.js"></script>
> > >       </head>
> > >       <body marginwidth="0" marginheight="0">
> > >        <table cellpadding="0" cellspacing="0" border="0">
> > >           <tr valign="top">
> > >             <td width="140"><img src="images/logo.gif" width="140"
height="98"/></td>
> > >             <td background="images/back.gif" width="100%">
> > >               <img src="images/transp.gif" width="1" height="13"/><br/>
> > >               <img src="images/title.gif" width="286" height="31"/><br/>
> > >               <img src="images/transp.gif" width="200" height="20"/><a
href="search"><img
> > > src="images/search.gif" border="0" width="82" height="27"/></a><br/>
> > >               <span class="title"><xsl:value-of select="@type"/>:<xsl:value-of
> > > select="error:title"/></span>
> > >             </td>
> > >           </tr>
> > >         </table>
> > >         <table cellpadding="0" cellspacing="0" border="0">
> 
=== message truncated ===


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

Mime
View raw message