cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cyril vidal" <cyr.vi...@wanadoo.fr>
Subject Problems with XSP
Date Tue, 23 Apr 2002 19:54:34 GMT
HY!

I would like to execute a very simple XSP sample. Here is my sitemap:

<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:generator name="serverpages" src="org.apache.cocoon.generation.ServerPagesGenerator"/>
</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="CinemaFO.pdf">
      <map:generate src="static/CinemaFO.xml"/>
      <map:transform src="transforms/CinemaFO.xsl"/>
       <map:serialize type="fo2pdf"/>
    </map:match>
  </map:pipeline>

<map:pipeline>
    <map:match pattern="compteur.xsp">
      <map:generate type="serverpages" src="transforms/compteur.xsp"/>
      <map:transform src="transforms/page-html.xsl"/>
       <map:serialize/>
    </map:match>
  </map:pipeline>

</map:pipelines>
               
</map:sitemap>

Unfortunately, when I execute the file compteur.xsp, I get the following error message:
type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Could not load class for program 'org\apache\cocoon\www\transforms\compteur_xsp' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.transforms.compteur_xsp

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/essai/compteur.xsp

path-info

compteur.xsp
Someone could help me, please?
Thanks,
Cyril.


Mime
View raw message