cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bräu <stefan-br...@gmx.net>
Subject [HELP]Failed to load sitemap from file:/usr/local/tomcat/webapps/cocoon/test/personen-db/sitemap.xmap
Date Thu, 18 Mar 2004 10:18:48 GMT
Description:org.apache.cocoon.ProcessingException: Failed to load 
sitemap from 
file:/usr/local/tomcat/webapps/cocoon/test/personen-db/sitemap.xmap: 
java.lang.NullPointerException


---
SITEMAP:


<?xml version="1.0"?>

<!-- CVS $Id: sitemap.xmap,v 1.13 2003/11/18 07:12:10 tony Exp $ -->

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


<map:components>
         <map:actions>
                 <map:action name="mod-db-add" 
src="org.apache.cocoon.acting.modular.DatabaseAddAction">
                         <descriptor>content/insert.xml</descriptor>
                         <throw-exception>true</throw-exception>
                 </map:action>
         </map:actions>

         <transformers>
                 <map:transformer name="i18n"
                          
src="org.apache.cocoon.transformation.I18nTransformer">

                          <catalogues default="messages">
                            <catalogue id="messages" name="messages" 
location="translations"/>
                          </catalogues>
                          
<untranslated-text>untranslated</untranslated-text>
                          <cache-at-startup>true</cache-at-startup>
                 </map:transformer>
         </transformers>
</map:components>

  <map:pipelines>
   <map:pipeline>


         <map:match patter="liste">
                 <map:generate src="content/personen-db.xml" />
                 <map:transform type="sql">
                         <map:parameter name="use-connection" 
value="mysqlcocoontest" />
                         <map:parameter name="show-nr-of-rows" 
value="true" />
                         <map:parameter name="clob-encoding" 
value="UTF-8" />
                 </map:transform>
                 <map:serialize type="xml" />
         </map:match>

         <map:match pattern="insert">
          <map:act type="mod-db-add">
           <map:generate type="serverpages" src="xsp/bands.xsp"/>
           <map:transform type="xslt" src="style/bands.xsl"/>
           <map:serialize type="html"/>
          </map:act>
         </map:match>

    <map:match pattern="*/personen.html">
     <map:generate src="content/personen.xml"/>
          <map:transform type="i18n">
            <map:parameter name="locale" value="{1}"/>
          </map:transform>
         <map:transform src="style/page2html.xsl" type="xslt" />
     <map:serialize type="html"/>
    </map:match>

    <map:match pattern="personen.xml">
     <map:generate src="content/personen.xml"/>
     <map:serialize type="xml"/>
    </map:match>

   <map:match pattern="resources/*.gif">
         <map:read src="resources/{1}.gif" mime-type="image/gif"/>
   </map:match>

  <map:match pattern="START">
         <map:read src="index.html" mime-type="text/html"/>
  </map:match>

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



i'd be thankful for every hint

thanks
stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message