cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steven.no...@the-ecorp.com
Subject [C2] Sitemap compilation problem
Date Wed, 07 Mar 2001 07:47:13 GMT
Hi,

I've run into some troubles getting the sitemap compiled, my wild guess is
because of the / in the name of the resource (not the URI) I'm trying to
redirect to.

I've been looking around in the XSL that does the sitemap XML->Java
conversion, to no avail however :-(

relevant portion of my sitemap:

    <map:match pattern="resources/">
        <map:redirect-to resource="resources"/>
    </map:match>

    <map:match pattern="resources">
        <map:generate src="content/resources/resources.xml"/>
        <map:transform src="style/section.xsl"/>
        <map:serialize type="html"/>
    </map:match>

    <map:match pattern="resources/thoughts/">
        <map:redirect-to resource="resources/thoughts"/>
    </map:match>

    <map:match pattern="resources/thoughts">
        <map:generate src="content/resources/thoughts/index.xml"/>
        <map:transform src="style/listsection.xsl"/>
        <map:serialize type="html"/>
    </map:match>

    <map:match pattern="resources/thoughts/*">
        <map:generate src="content/resources/thoughts/{1}.xml"/>
        <map:transform src="style/thought.xsl"/>
        <map:serialize type="html"/>
    </map:match>

compilation error in the log:

DEBUG   7701    [cocoon  ] (Thread-24): Language Exception
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1341: Method
resource_services(org.apache.cocoon.sitemap.ResourcePipeline,
java.util.List, org.apache.cocoon.environment.Environment, java.lang.String)
not found in class org.apache.cocoon.www.sitemap_xmap.
          return resource_services(pipeline, listOfMaps,
                                  ^
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1485: Method
resource_resources(org.apache.cocoon.sitemap.ResourcePipeline,
java.util.List, org.apache.cocoon.environment.Environment, java.lang.String)
not found in class org.apache.cocoon.www.sitemap_xmap.
          return resource_resources(pipeline, listOfMaps,
                                   ^
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1565: Undefined variable: resource_resources
          return resource_resources /
                 ^
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1566: Method
thoughts(org.apache.cocoon.sitemap.ResourcePipeline, java.util.List,
org.apache.cocoon.environment.Environment, java.lang.String) not found in
class org.apache.cocoon.www.sitemap_xmap.
                 thoughts(pipeline, listOfMaps, environment,
                         ^
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1710: Undefined variable: resource_resources
          return resource_resources /
                 ^
Line 0, column 0:
D:\bin\apps\jakarta-tomcat-3.2\work\localhost_8080%2Fcocoon\org\apache\cocoo
n\www\sitemap_xmap.java:1711: Method
presentations(org.apache.cocoon.sitemap.ResourcePipeline, java.util.List,
org.apache.cocoon.environment.Environment, java.lang.String) not found in
class org.apache.cocoon.www.sitemap_xmap.
                 presentations(pipeline, listOfMaps,
                              ^

	at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:201)
	at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:132)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:245)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:163)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:174)
	at java.lang.Thread.run(Thread.java:484)

Complete sitemap & generated sitemap_xmap.java available on simple request
:-)

I'm running a relatively fresh (couple of days) full CVS check-out in the
Tomcat 3.2 container.

</Steven>

Mime
View raw message