Hello,
Today, while installing xwiki on my own box, i've found very tedious
having to edit a file in a tomcat working directory (webapps/xwiki,
for instance) to change the database parameters.
Having a datasource defined in the container will allow admins to
avoid having to learn the internals of the application, and this is
how it's done in other apps like jira or confluence.
For tomcat, I feel it would be better to :
- make sure hibernate.cfg.xml refers to a datasource named "jdbc/XWikiDS"
- define the said DataSource in $CATALINA_HOME/Catalina/localhost/xwiki.xml
- put the jdbc driver in $CATALINA_HOME/common/lib, now that the
container is responsible for opening the connection
I think it will also ease the packaging of a standalone xwiki server.
What do you think ?
I'm attaching the configuration that worked for me almost out of the box.
Erwan