Hello,
The fact that you are missing hibernate.cfg.xml indicates to me that
your build is incomplete.
"I choose project "XWiki Products - Enterprise - Web (war)"
I think what you are saying is you only built part of the enterprise
source. When I build enterprise, I navigate to enterprise/trunk/ on the
command line and run
mvn -Ppgsql install
I run -Ppgsql because I'm running Postgres.
if you are running Mysql, use -Pmysql
and make sure your database is running, I'm not sure about enterprise
but I know platform has to talk to the database in order to build properly.
When you are done, you should find your completed package in
enterprise/trunk/web/target/xwiki-enterprise-web-2.1-SNAPSHOT this is
what you copy into your webapps folder and rename something simple like
xwikiBuild. Hopefully it has hibernate.cfg.xml
Caleb James DeLisle
Hervé Agnoux wrote:
Hi,
For some reasons, I build XWiki Enterprise with netbeans and maven.
I checkout
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk, I choose
project "XWiki Products - Enterprise - Web (war)", I run, and I see in my
navigator :
Etat HTTP 500 -
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3
in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from
param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Hibernate Dialect must be explicitly set
I read in googled world there is a hibernate.cfg.xml. In my checkouted
directory, there is a checkout/trunk/web/src/main/webapp/WEB-
INF/hibernate.cfg.xml, but this file is empty ?
Is it this file ?
I read some parts on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL but I
can't see a complete model hibernate.cfg.xml
Thanks for your help.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs