Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 91287 invoked from network); 7 Mar 2001 08:51:35 -0000 Received: from ns.the-ecorp.com (212.190.119.2) by h31.sny.collab.net with SMTP; 7 Mar 2001 08:51:35 -0000 Received: from pdc.ons.net (uu212-190-114-162.unknown.uunet.be [212.190.114.162]) by ns.the-ecorp.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id JAA17375 for ; Wed, 7 Mar 2001 09:51:42 +0100 From: steven.noels@the-ecorp.com X-Authentication-Warning: ns.the-ecorp.com: Host uu212-190-114-162.unknown.uunet.be [212.190.114.162] claimed to be pdc.ons.net Received: by PDC with Internet Mail Service (5.5.2650.21) id ; Wed, 7 Mar 2001 09:50:08 +0100 Message-ID: <9E725728E7D0D311B24D00508B6A054303FFD2@PDC> To: cocoon-dev@xml.apache.org Subject: RE: [C2] Sitemap compilation problem Date: Wed, 7 Mar 2001 09:50:07 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Starting to answer my own question (as far as I can get): I found this code fragment in the generated sitemap which looks kind of suspicious for me: if ((map = wildcardMatch(matcher_wildcard_N187_expr, objectModel)) != null) { getLogger().debug("Matched matcher_wildcard_N187"); listOfMaps.add (map); if (true) return resource_resources / thoughts(pipeline, listOfMaps, environment, cocoon_view); listOfMaps.remove (listOfMaps.size() - 1); } To the best of my knowledge (my Java awareness is much too fresh however), the slash (resource_resources / thoughts) shouldn't be there. Another thing I have found out is that apparently resources need to be defined separately: What I'll try next is to define separate resources for the faulthy pipelines in my map, but xml2java via xsl clearly isn't a debug friendly environment ;-( > -----Original Message----- > From: steven.noels@the-ecorp.com [mailto:steven.noels@the-ecorp.com] > Sent: Wednesday, March 07, 2001 8:47 AM > To: cocoon-dev@xml.apache.org > Subject: [C2] Sitemap compilation problem > > > 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: > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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\or > g\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\or > g\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\or > g\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\or > g\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\or > g\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\or > g\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.JavaLan > guage.compile( > JavaLanguage.java:201) > at > org.apache.cocoon.components.language.programming.CompiledProg > rammingLanguag > e.load(CompiledProgrammingLanguage.java:132) > at > org.apache.cocoon.components.language.generator.ProgramGenerat > orImpl.generat > eResource(ProgramGeneratorImpl.java:245) > at > org.apache.cocoon.components.language.generator.ProgramGenerat > orImpl.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. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org >