Hi Gernot,

        I've located the problem but aren't 100% sure about what the proper fix
        is as I think Carsten is still working on the code. I've already
        contacted him about the problem so I'm sure it will be fixed soon.
        
        In the meantime you can change the removeLastSitemapConfiguration() 
        method in CocoonComponentManager to look like:
        
void removeLastSitemapConfiguration() {
  if (this.sitemapConfigurations.size() > 0)
    this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
}       
        
        and it will let you continue working. A proper fix will appear
        shortly.
        
        Hope that helps.
        
        Cheers,
        
        Marcus
        
On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote:
> Hi!
> 
> Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I 
>experience the following problem
> After building and installing cocoon
> (./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; 
>./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
> Dinstall.war="C:/ent/jakarta-tomcat-4.1.12/webapps" installwar)
> and starting tomcat server enterint the URl "http://localhost:8080/cocoon/"; 
>correctly redirects to
> http://localhost:8080/cocoon/documents/index.html but then brings an error page 
>containing:
> 
> type fatal
> 
> message Index: -1, Size: 0
> 
> description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> stack-trace
> 
> java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
>       at java.util.ArrayList.RangeCheck(ArrayList.java:491)
>       at java.util.ArrayList.remove(ArrayList.java:375)
>       at  
>org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548)
>       at  
>org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156)
>       at 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
>       at 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
>       at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
>       at org.apache.cocoon.servlet.CocoonServlet.service
>       [...]
> 
> Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ 
>or http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree-
> portal) seems to work.
> 
> So my guess is I'm just missing the documentation html files ? Looking in the 
>$TOMCAT/webApps/cocoon/ documentation directory actually does not contain an
> index.html file, is this correct ?
> 
> What am I doing wrong ? Any hints, please ?
> 
> thanks,
> 
> Gernot.
> 
> 
> 
> ---------------------------------------------------------------------
> 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]>
> 

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

---------------------------------------------------------------------
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]>

Reply via email to