cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject [C2] Trying to use Context class names
Date Wed, 21 Feb 2001 16:25:21 GMT
I get the following output when I try to create a compiled page at the root context.  Anyone
know what is going on?  The only change I made to ProgramGeneratorImpl is

===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/generator/Attic/ProgramGeneratorImpl.java,v
retrieving revision 1.1.2.33
diff -r1.1.2.33 ProgramGeneratorImpl.java
73a74,76
>     /** The context root */
>     protected String rootPath;
> 
82a86
>            this.rootPath = (String) context.get(Constants.CONTEXT_ROOT_PATH);
137c141,142
<         String normalizedName = IOUtils.normalizedFilename(filename);
---
>         String contextFilename = IOUtils.getContextFilePath(this.rootPath, filename);
>         String normalizedName = IOUtils.normalizedFilename(contextFilename);

===================================================================
Cocoon.log

ERROR   6199    [cocoon  ] (Thread-24): CocoonComponentSelector Could not find component for
hint '_sitemap_xmap'.
DEBUG   6219    [cocoon  ] (Thread-24): The instance was not accessible, creating it now.
ERROR   6389    [cocoon  ] (Thread-24): Error compiling sitemap
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)

	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

	at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:131)

	at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:259)

	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:198)

	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:156)

	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)

	at java.lang.Thread.run(Thread.java:484)

Mime
View raw message