I can't get XWiki to start because my database has no tables in it. It
complains that the XWIKI schema doesn't exist. I understand some people
fall back to using a *.sql script to create their schema and tables, but
that XWiki -- through Hibernate -- should be able to automatically
create the tables it needs.
I've looked in my xwiki.cfg and found that the following is set to non-zero:
xwiki.store.hibernate.updateschema=1
Is that all there should be to it? I know Hibernate also supports
properties to automatically create the schema, but I can't figure out
how I would set that for Hibernate within XWiki:
hibernate.hbm2ddl.auto=create-drop
I'm running under Tomcat 5.5 on Windows XP with Apache Derby in Embedded
mode. I can connect to my DB using SQuirreL SQL and confirm that even
the XWIKI schema isn't being created. I can manually create it ('create
schema XWIKI;') and then the XWiki errors turn into tables not existing
rather than schema not existing.
I've tried to turn on debugging for com.xpn.xwiki.store in my manually
created xwiki/WEb-INF/classes/logging.properties (as per the TomCat
documentation), but I can't see any output getting logged (logging in
TomCat was already a challenge for me, so that's just making this XWiki
problem harder to solve).
Any ideas?
Regards,
Brian.