[daisy] Error running Daisy-2.0 Export tool

Bruno Dumon bruno at outerthought.org
Fri Dec 8 02:10:12 CST 2006


On Thu, 2006-12-07 at 21:51 -0500, Robert Cecil wrote:
> Hi,  
> 
> 
> Just exploring the new 2.0 import/export stuff to see I can use it to
> package up schema definitions for team sharing.
> 
> 
> I tried:
> 
> 
> > ./daisy-export -u testuser -p testuser -f ~/exportset.xml -o
> > ~/options.xml -e ~/export
> > Password:
> > -l not specified, assuming repository is listening at
> > http://localhost:9263
> > 
> > 
> > Connecting to the repository.
> > 
> > 
> > *** An error occured ***
> > 
> > 
> > Error calling document customizer factory.
> > org.outerj.daisy.tools.importexport.import_.config.BasicCustomizer
> 
> 
> Here is the relevant stacktrace:
> 
> 
> > org.outerj.daisy.tools.importexport.ImportExportException: Error
> > calling document customizer factory.
> >         at
> > org.outerj.daisy.tools.importexport.export.config.ExportOptionsFactory.parseFromXml(ExportOptionsFactory.java:67)
> >         at
> > org.outerj.daisy.tools.importexport.export.cli.ExportCli.run(ExportCli.java:166)
> >         at
> > org.outerj.daisy.tools.importexport.export.cli.ExportCli.main(ExportCli.java:45)
> > Caused by: java.lang.ClassCastException:
> > org.outerj.daisy.tools.importexport.import_.config.BasicCustomizer
> >         at
> > org.outerj.daisy.tools.importexport.export.config.ExportOptionsFactory.parseFromXml(ExportOptionsFactory.java:64)
> 
> 
> Based upon the documentation
> (http://www.cocoondev.org/daisydocs-2_0/impexp/334.html) I had tried
> this:
> 
> 
> > daisy-import -d > exportoptions.xml
> 

oops, that's a documentation error (which I'll fix right away), it
should say

daisy-import -d > importoptions.xml

To get options for the export tool (which are different), one needs to
do:

daisy-export -d > exportoptions.xml

> 
> To create an example options .xml. I assumed I can just tweak the
> settings and leave the remaining output from the above command in the
> options file. To explore how to *just* grab schema,
<snip/>

See the other thread for this.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list