[xwiki-users] Add extension failed on XWIKI 3.4 (plus directory structure general issue).
Hello, Whenever I try to add an extension from XWIKI 3.4 (on RedHat 6, tomcat6 with PostgreSQL database) from the Add Extensions menu, I get a message like this Caused by: class java.io.IOException: File 'data/extension/repository/org.xwiki.contrib%3Axwiki-plugin-excel-1.0-src.pl ugin' could not be created ð It looks like a directory is missing in my WIKI install, could you tell me the exact path of the data/extension/repository (from the XWIKI app root) ? Also, the problem I encountered earlier with Lucene came from the xwiki.cfg #-# Lucene search engine #-# Location where to place the lucene index files. The default is the "lucene" subdirectory in the container's "work" #-# diectory. Change it if you want to store indexes in another place. # xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene Well it looks like XWIKI really choose /usr/local/wiki/lucene and nothing into a work container as the documentation seems to indicate. Could you fix the default xwiki.cfg file (Description or content) on Red Hat, it looks like we should have: # xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene xwiki.plugins.lucene.indexdir=/usr/share/tomcat6/work Many thanks for your help, Regards, Christophe FRAULE
On Tue, Feb 28, 2012 at 12:38 AM, Christophe FRAULE <christobald@msbx.net> wrote:
Hello,
Whenever I try to add an extension from XWIKI 3.4 (on RedHat 6, tomcat6 with PostgreSQL database) from the ‘Add Extensions’ menu, I get a message like this
Caused by: class java.io.IOException: File 'data/extension/repository/org.xwiki.contrib%3Axwiki-plugin-excel-1.0-src.pl ugin' could not be created
ð It looks like a directory is missing in my WIKI install, could you tell me the exact path of the data/extension/repository (from the XWIKI app root) ?
Also, the problem I encountered earlier with Lucene came from the xwiki.cfg
#-# Lucene search engine #-# Location where to place the lucene index files. The default is the "lucene" subdirectory in the container's "work" #-# diectory. Change it if you want to store indexes in another place. # xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene
Well it looks like XWIKI really choose /usr/local/wiki/lucene and nothing into a ‘work’ container as the documentation seems to indicate.
No, by default it choose a "lucene" subfolder in whatever you have in the property "xwiki.work.dir". If nothing is set in "xwiki.work.dir" property it use the application server work directory. Pretty much the same thing for extension manager: you have to set a proper folder in the property "container.persistentDirectory" in file xwiki.properties. In your case looks like you have container.persistentDirectory=data which is right only with the jetty+hsqldb distribution.
Could you fix the default xwiki.cfg file (Description or content) on Red Hat, it looks like we should have:
# xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene
xwiki.plugins.lucene.indexdir=/usr/share/tomcat6/work
Many thanks for your help,
Regards,
Christophe FRAULE
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (2)
-
Christophe FRAULE -
Thomas Mortagne