[daisy] daisywiki prefix configuration out of DAISY_HOME
Tom Brusselle
tb at schaubroeck.be
Tue Mar 18 17:08:44 CET 2008
Hi,
Thanks for the reply.
You wouldn't by any chance know how to configure jetty to mount the
webapp at "/" and at the same time at /jabjab ?
My current configuration in DAISY_HOME/daisywiki/webapp/sitemap.xmap
that works is this:
...
<map:pipeline>
<map:match pattern="jabjab/**">
<map:mount uri-prefix="jabjab/" check-reload="yes" src="daisy/"/>
</map:match>
<!-- send all other URL's also to daisy (but without the prefix)-->
<map:mount check-reload="yes" src="daisy/" uri-prefix=""/>
...
To try and configure this in jetty-daisywiki.xml, I tried adding an
extra item-element but this doesn't work. It gives the following error
in cocoon.log: javax.jms.InvalidClientIDException: Broker: DaisyJMS -
Client: daisy-wiki already connected
This is my attempt:
<Set name="handler">
<New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.mortbay.jetty.Handler">
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg><SystemProperty name="daisywiki.home"/>/webapp</Arg>
<Arg>/jabjab</Arg>
<Set name="defaultsDescriptor"><SystemProperty
name="daisywiki.home"/>/conf/jetty-daisywiki-defaults.xml</Set>
</New>
</Item>
<!--extra item?-->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg><SystemProperty name="daisywiki.home"/>/webapp</Arg>
<Arg>/jubjub</Arg>
<Set name="defaultsDescriptor"><SystemProperty
name="daisywiki.home"/>/conf/jetty-daisywiki-defaults.xml</Set>
</New>
</Item>
<!-- extra item-->
<Item>
<New id="DefaultHandler"
class="org.mortbay.jetty.handler.DefaultHandler"/>
</Item>
<Item>
<New id="RequestLog"
class="org.mortbay.jetty.handler.RequestLogHandler"/>
</Item>
</Array>
</Set>
</New>
</Set>
Anyway, if you would happen to know how to do this in
jetty-daisywiki.xml, please let me know. If not, thanks for the
suggestion anyway.
regards,
Tom Brusselle
Paul Focke wrote:
> Hi
>
> You could of course configure jetty to mount daisy where you want.
> Copy <DAISY_HOME>/daisywiki/conf/jetty-daisywiki.xml to <WIKIDATA_DIR>.
> Now edit that file so that instead of having daisy mounted at / you have
> it mounted at /jubjub.
>
> <Set name="handler">
> <New id="Handlers"
> class="org.mortbay.jetty.handler.HandlerCollection">
> <Set name="handlers">
> <Array type="org.mortbay.jetty.Handler">
> <Item>
> <New class="org.mortbay.jetty.webapp.WebAppContext">
> <Arg><SystemProperty name="daisywiki.home"/>/webapp</Arg>
> <!-- The Daisy mountpoint -->
> <Arg>/jubjub</Arg>
> <Set name="defaultsDescriptor"><SystemProperty
> name="daisywiki.home"/>/conf/jetty-daisywiki-defaults.xml</Set>
> </New>
> </Item>
> <Item>
> <New id="DefaultHandler"
> class="org.mortbay.jetty.handler.DefaultHandler"/>
> </Item>
> <Item>
> <New id="RequestLog"
> class="org.mortbay.jetty.handler.RequestLogHandler"/>
> </Item>
> </Array>
> </Set>
> </New>
> </Set>
>
> If you are using the service wrappers make sure that you have a look in
> the wiki service script configuration in <WIKIDATA_DIR>. There you will
> see some instructions on how to point to your custom jetty
> configuration.
>
> Paul
>
>
> On Tue, 2008-03-18 at 09:26 +0100, Tom Brusselle wrote:
>> Hi,
>>
>> We would like to run several daisy instances on one machine. No problem
>> so far, just change the ports. (nicely explained in the docs)
>> Thanks to the separation of application files and data/config files, we
>> can just point the DAISY_HOME of every instance to the same place so we
>> don't have to duplicate the DAISY_HOME directory and we can save space.
>> Very nice so far.
>>
>> But here comes the problem: Each of these daisies has to run with a
>> different prefix. (actually, each daisy has to run at "/" and at
>> "/someprefix"). This is possible by editing the file
>> DAISY_HOME/daisywiki/webapp/sitemap.xmap . But this file with
>> daisy-instance-specific configuration is located in the general
>> DAISY_HOME directory.
>>
>> Is it possible to put the sitemap.xmap file in the wikidata dir? Or is
>> there another way to configure different daisywiki instances that run on
>> the same DAISY_HOME dir to have different prefix configurations?
>>
>> regards,
>>
>> Tom Brusselle
>>
>>
>> **** DISCLAIMER ****
>> http://www.schaubroeck.be/maildisclaimer.htm
>> _______________________________________________
>> daisy community mailing list
>> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
>> mail to: daisy at lists.cocoondev.org
>> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm
More information about the daisy
mailing list