Thanks a lot for your help. I was able to resolve that problem and it runs without any error messages. However, I now have another problem. I am trying to explicitly generate an html file from an xml one, but it's creating the file as a directory with nothing in it :



-bash-2.05b$ ls -l ts/dest
total 4
drwxr-xr-x    2 femibyte femibyte     4096 Jun 18 04:39 languages.html/

-bash-2.05b$ ls -l ts/dest/languages.html/
total 0


Here's what my cli.xconf file looks like:

<context-dir>.</context-dir>
  <config-file>build/webapp/WEB-INF/cocoon.xconf</config-file>
  <work-dir>ts/work</work-dir>
  <dest-dir>ts/dest</dest-dir>

...

<uri type="replace" src-prefix="techsite/documents/tech/"
  src="languages.xml" dest="ts/dest/languages.html"/>

Here's the matcher in the sitemap :

<!-- pages -->
     <map:match pattern="*/*/*/*.*">
       <map:generate src="techsite/documents/{3}/{4}.xml"/>
       <map:transform src="techsite/stylesheets/techarea.xsl">
         <!--map:parameter name="section" value="{1}"/ -->
         <!--map:parameter name="toc-file"
     value="techsite/documents/toc.xml"/-->
       <map:serialize type="html"/>
         <!-- map:parameter name="base-url" value="techsite"/ -->
       </map:transform>
       ...
       <map:serialize type="html"/>
</map:match>


The weird thing is that the file is created properly when I use cocoon in a servlet container. Can anyone help me out here?


Thanks,
Femi

From: Joerg Heinicke <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Error in offline site generation
Date: Mon, 07 Jun 2004 09:37:38 +0200

On 07.06.2004 06:01, Riddim Dread wrote:
I get the following error when I try to run cocoon to generate a file in offline mode :

X [0] techsite/documents/tech/languages.xml BROKEN: Type 'file' is not defined for 'generate' at file:/home/femibyte/downloads/cocoon-2.1.2/techsite/sitemap.xmap:38:64
Total time: 0 minutes 4 seconds


Can anyone provide me w/ an explanation as to what is going on?

This means you have a <map:generate type="file"/> in your sitemap, but nowhere defined what that generator is. If you don't use a subsitemap of the root sitemap delivered with Cocoon, you have to add a map:components section to your sitemap, where the file generator is defined:


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

The same must be added for the other components you use. Just have a look into the map:components section of Cocoon's default root sitemap.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up � now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to