Wolfgang Jeltsch schrieb:
Am Montag, 16. Juni 2008 11:28 schrieb Andreas Hartmann:
Wolfgang Jeltsch schrieb:
Am Freitag, 13. Juni 2008 16:39 schrieb Andreas Hartmann:
[…]
I'd start with this tutorial:
http://lenya.apache.org/docs/2_0_x/tutorials/newpublication/index.html
[…]
First, I don’t understand why access control data isn’t held inside the
publication directory like it seems to be the case with the default
publication. Is this for sharing authentication data between
publications?
No, the separation of application and data is meant to simplify
maintenance: […]
But look at the directory structure in the section “Prerequisites”. All
access control data is meant to be stored under
$HOME/src/lenya/data/access-control. The publication name isn’t mentioned in
this path. So if I would create a second publication according to the same
scheme, its access control data would be stored in the same path.
In this case you can just add another directory to the hierarchy:
$HOME/src/lenya/{pub}/data/…
[…]
Second, I don’t know how Lucene knows to what base directory the relative
paths in lucene_index.xml refer. The example lucene_index.xml contains
paths starting with lenya/pubs/$MYPUB.
IndexManagerImpl:370
if (!directory.startsWith(File.separator)) {
directory = getServletContextPath() + File.separator + directory;
}
But this would mean that the servlet context path would have to be $HOME/src
while lenya is installed in $HOME/apache/lenya-2.0.
Hmm, why should that be the case?
With Jetty, the servlet context is $LENYA_HOME/build/lenya/webapp.
If you deploy to Tomcat (using /lenya as servlet path), the servlet
context is $TOMCAT_HOME/webapps/lenya.
With Jetty, the Lucene index would then be stored in
$LENYA_HOME/build/lenya/webapp/lenya/pubs/$MYPUB/work/lucene
which is correct, isn't it?
Or am I misunderstanding something?
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]