cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LAU Sze Sze (ECC)" <ss...@nie.edu.sg>
Subject JSPGenerator Error for <map:aggregate>
Date Fri, 05 Mar 2004 02:21:36 GMT
Hi,
 
I am facing this problem for a long time and is not able to solve it.
When I aggregate a jsp file within the <map:aggregate>, I can get the
following error:
 
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Exception
JSPGenerator.generate(): java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
 
cause: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
 
The following is my code in the sitemap.xmap
 
       <map:match pattern="login">
          <map:generate type="jsp" src="xdocs/login/login.jsp"/>
          <map:transform src="stylesheets/login2document.xsl"/>
         <map:serialize type="html"/>
       </map:match>
 
       <map:match pattern="*.xsp">
            <map:aggregate element="site">
               <map:part src="cocoon:/bookmain-{1}.xml" />
 
               <map:part src="cocoon:/booktop-{1}.xml" />
 
               <map:part src="cocoon:/login" />
 
               <map:part src="cocoon:/body-{1}.xsp" label="content" />
            </map:aggregate>
 
            <map:transform src="stylesheets/sitemain2xhtml.xsl">
               <map:parameter name="use-request-parameters" value="true"
/>
 
               <map:parameter name="base-url" value="/clearinghouse" />
            </map:transform>
 
            <map:serialize />
         </map:match>
 
I am using cocoon 2.1.4. Thanks for your help and looking forward to
your reply soon.
 
Regards
Lau Sze Sze
Technical Consultant
E-Learning Competency Centre
National Institute of Education
1 Nanyang Walk
Singapore 637616
Tel: (65) 6790 3745
Fax: (65) 6861 7374
www.ecc.org.sg <http://www.ecc.org.sg/> 
www.elearninghouse.com <http://www.elearninghouse.com/> 
 
 

Mime
View raw message