[daisy] Daisy 1.5.1 -> Daisy 2.0 with sauce

Marc Portier mpo at outerthought.org
Thu Apr 5 00:37:16 CDT 2007


Caleb,

This sounds like the trailing-slash issue I've noticed recently on the
2.0-RC

See this subtle note that was added to the online install-docs [1]:
> Important: for Windows, the DAISY_HOME environment variable should not
> end on a backslash! (because the path is inserted in scripts between
> double quotes, and a backslash on the end would escape the double quote)

[1] http://cocoondev.org/daisydocs-2_0/13-cd.html

HTH
-marc=


Caleb Callaway wrote:
> Successfully made the jump from 1.5.1 to 2.0 on a Windows XP Home (urgh)
> machine, and it is Neat! Had a couple issues that I thought would be good to
> pass along, though...
> 
> First of all using the "set DAISY_HOME=" method of environment variables
> Windows is not a good idea because the repo/wiki startup commands don't
> return to the command prompt. This means you need to open second shell
> window to continue the upgrad process, which necessitates defining the
> variable again, which can lead to Much Confusion (I speak from personal
> experience!) I think it's best to go to the Advanced section of your system
> properties (Right-Click on My Computer and select Properties, or go through
> the Control Panel) and rename your current DAISY_HOME to something else, and
> then re-define it. 
> 
> Secondly, for reasons that completely mystify me, I had to edit the batch
> files (for init and such) thusly:
> 
> 	"%JAVA_HOME%/bin/java" %DAISY_JAVA_OPTIONS%
> "-Ddaisy.home=%DAISY_HOME%"
> org.outerj.daisy.tools.docidconvertor.DocIdConvertor %*
> 
> 	Becomes
> 
> 	"%JAVA_HOME%/bin/java" %DAISY_JAVA_OPTIONS%
> -Ddaisy.home=%DAISY_HOME%
> org.outerj.daisy.tools.docidconvertor.DocIdConvertor %*
> 
> The ONLY change is the lack of quotes around the "-Ddaisy.home=" section. I
> can't imagine it making any difference, but %DAISY_HOME=C:\daisy-2.0 in my
> environment...'tis strange.
> 
> Finally, the wikinit script generated a strange error:
> 
>  
> +--------------------------------------------------------------------------+
>   |                        Daisy Wiki Initialisation
> |
>  
> +--------------------------------------------------------------------------+
> 
>  == Login To Daisy Repository Server ==
> Address where the Daisy Repository Server is listening [default =
> http://localho
> st:9263] :
> 
> Enter login (user) and password for Daisy (this should be a user with the
> Admini
> strator role):
> Enter login:
> caleb
> Enter password:
> 
>                          Creating guest user and role.
> 
>                          =============================
> Existing guest role found, id = 101
> Existing guest user found, id = 101
> 
>                                ACL initialisation
> 
>                                ==================
> 
> ACL is not empty -- will not touch it.
> 
> 
>                                 Schema creation
> 
>                                 ===============
> 
> Exception in thread "main" java.lang.Exception: Error importing field type
> Multi
> MediaObjectBgcolor
>         at
> org.outerj.daisy.tools.importexport.import_.schema.SchemaLoader.load(
> SchemaLoader.java:65)
>         at
> org.outerj.daisy.tools.importexport.import_.schema.SchemaLoader.run(S
> chemaLoader.java:55)
>         at
> org.outerj.daisy.tools.importexport.import_.schema.SchemaLoader.load(
> SchemaLoader.java:43)
>         at
> org.outerj.daisy.install.SchemaUploader.load(SchemaUploader.java:94)
>         at
> org.outerj.daisy.install.DaisyWikiInit.installSchema(DaisyWikiInit.ja
> va:147)
>         at
> org.outerj.daisy.install.DaisyWikiInit.install(DaisyWikiInit.java:105
> )
>         at
> org.outerj.daisy.install.DaisyWikiInit.main(DaisyWikiInit.java:52)
> Caused by: org.outerj.daisy.repository.RepositoryException: Received
> exception f
> rom repository server.
>         at
> org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient
> .handleNotOkResponse(DaisyHttpClient.java:180)
>         at
> org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient
> .executeMethod(DaisyHttpClient.java:111)
>         at
> org.outerj.daisy.repository.clientimpl.schema.RemoteSchemaStrategy.st
> ore(RemoteSchemaStrategy.java:254)
>         at
> org.outerj.daisy.repository.commonimpl.schema.FieldTypeImpl.save(Fiel
> dTypeImpl.java:271)
>         at
> org.outerj.daisy.repository.commonimpl.schema.FieldTypeWrapper.save(F
> ieldTypeWrapper.java:160)
>         at
> org.outerj.daisy.tools.importexport.import_.schema.SchemaLoader.handl
> eFieldType(SchemaLoader.java:157)
>         at
> org.outerj.daisy.tools.importexport.import_.schema.SchemaLoader.load(
> SchemaLoader.java:63)
>         ... 6 more
> Caused by:
> org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagated
> Exception: [org.outerj.daisy.repository.RepositoryException] Error storing
> field
>  type.
> Caused by:
> org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagated
> Exception: [com.mysql.jdbc.MysqlDataTruncation] Data truncation: Data too
> long f
> or column 'value' at row 1
> 
> So that's a bit of a puzzle too. I've also been unable to get the
> Daisy-as-a-Service functionality working again--changing the paths in the
> Windows registry didn't cut it. Haven't delved too deeply into that one,
> though.
> 
> Any suggestions would be appreciated
> -Caleb
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> 


More information about the daisy mailing list