cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Turk" <jt...@redwoodtoxicology.com>
Subject RE: error-compling sitemap_xmap
Date Mon, 18 Mar 2002 19:14:08 GMT
Cyril -

sitemap.xmap is converted into a java source file - that's the file the 571
lines refers to.  You can find that file under the Tomcat work directory
(look for something like
cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java).

John
  -----Original Message-----
  From: cyril vidal [mailto:cyr.vidal@wanadoo.fr]
  Sent: Monday, March 18, 2002 11:05 AM
  To: cocoon-users@xml.apache.org
  Subject: error-compling sitemap_xmap


  Hello,

  When I want to transform some documents (it doesn't happen with serving
static documents), I obtain a strange  error message
  type fatal

  message Language Exception

  description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 571, column 63: '}' expected. Line 0, column 0: Note:
C:\tomcat\work\localhost\essai\cocoon-files\org\apache\cocoon\www\sitemap_xm
ap.java uses or overrides a deprecated API. Recompile with "-deprecation"
for details. 1 error, 1 warning

  but my sitemap.xmap file doesn't include 571 lignes!!! This is the short
following one:

  <?xml version="1.0"?>
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">


  <map:components>
  <map:generators default="file">
    <map:generator name="file"
src="org.apache.cocoon.generation.FileGenerator"/>
  </map:generators>

  <map:transformers default="xslt">
    <map:transformer  name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer"/>
  </map:transformers>

  <map:readers default="resource">
    <map:reader name="resource"
src="org.apache.cocoon.reading.ResourceReader"/>
  </map:readers>

  <map:serializers default="html">
    <map:serializer name="xml" mime-type="text/xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
    <map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer"/>
    <map:serializer name="svg2png"
src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/png"/>
    <map:serializer name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer"
mime-type="application/pdf"/>
  </map:serializers>

  <map:matchers default="wildcard">
    <map:matcher name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcher"/>
  </map:matchers>
  </map:components>

  <map:pipelines>
    <map:pipeline>
      <map:match pattern="index.html">
         <map:read src="static/index.html" mime-type="text/html"/>
      </map:match>
    </map:pipeline>
  <map:pipeline>
      <map:match pattern="content/*.html">
        <map:generate src="content/{1}.xml"/>
        <map:tranform src="transforms/tri.xsl"/>
        <map:serialize type="html"/>
     </map:match>
  </map:pipeline>


  </map:pipelines>

  </map:sitemap>

  Someone could tell me what's happening?

  Thanks for your help,

  Cyril.


Mime
View raw message