[xwiki-devs] enterprise pom.xml : hibernate.cfg.xml empty ?
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.
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 [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
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.
Here is the maven command from netbeans : NetBeans: Executing '/home/herve/java/developpement/apache-maven-2.2.0/bin/mvn -Dnetbeans.deploy=true -Dnetbeans.execution=true --fail-fast -Phsqldb package' NetBeans: JAVA_HOME =/home/herve/java/jdk1.6.0_14 .. I see "-Phsqldb"... it's correct I suppose ?
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
Yes, but the file is empty : $> ls -l target/xwiki-enterprise-web-2.1-SNAPSHOT/WEB-INF/hibernate.cfg.xml -rw-rw-r-- 1 herve herve 0 2009-09-13 16:49 target/xwiki-enterprise-web-2.1- SNAPSHOT/WEB-INF/hibernate.cfg.xml $>
I see "-Phsqldb"... it's correct I suppose ? yes. I assume you have built the platform as well, if so, check and see if you have platform/trunks/web/standard/target/classes/hibernate.cfg.xml That is the right file, but I don't think it will work to splice it in to the webapp. I would go into enterprise/trunk/ and run mvn clean -Phsqldb mvn dependency:purge-local-repository then go to platform/trunks/ and run: mvn -Phsqldb clean mvn -Phsqldb install It is important to use 'install' so that the JARs are saved in your local maven repository then go to /enterprise/trunk and run: mvn -Ppgsql install Theoretically package should work, but I use install with success and install is given in the build instructions. If hibernate.cfg.xml is still empty, send me the output from compiling enterprise I can't help much with netbeans as I use gedit and the command line ;) But I would say get it working from the command line, then try to get it working with netbeans. Caleb James DeLisle Hervé Agnoux wrote:
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
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.
Here is the maven command from netbeans :
NetBeans: Executing '/home/herve/java/developpement/apache-maven-2.2.0/bin/mvn -Dnetbeans.deploy=true -Dnetbeans.execution=true --fail-fast -Phsqldb package' NetBeans: JAVA_HOME =/home/herve/java/jdk1.6.0_14
.. I see "-Phsqldb"... it's correct I suppose ?
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
Yes, but the file is empty :
$> ls -l target/xwiki-enterprise-web-2.1-SNAPSHOT/WEB-INF/hibernate.cfg.xml -rw-rw-r-- 1 herve herve 0 2009-09-13 16:49 target/xwiki-enterprise-web-2.1- SNAPSHOT/WEB-INF/hibernate.cfg.xml $>
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
If hibernate.cfg.xml is still empty, send me the output from compiling enterprise
It's OK by command line for me too.
I can't help much with netbeans as I use gedit and the command line ;) But I would say get it working from the command line, then try to get it working with netbeans.
With netbeans, if I open project "XWiki Products - Enterprise - Parent POM", with enterprise/trunk/pom.xml, I can't run it. But if I open ""XWiki Products - Enterprise - Web", in enterprise/trunk/web, I can run it... with a bad hibernate.cfg.xml. How do you do to run enterprise project with maven and gedit ?
Caleb James DeLisle
Thanks.
Hervé Agnoux wrote:
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
If hibernate.cfg.xml is still empty, send me the output from compiling enterprise
It's OK by command line for me too.
I can't help much with netbeans as I use gedit and the command line ;) But I would say get it working from the command line, then try to get it working with netbeans.
With netbeans, if I open project "XWiki Products - Enterprise - Parent POM", with enterprise/trunk/pom.xml, I can't run it.
But if I open ""XWiki Products - Enterprise - Web", in enterprise/trunk/web, I can run it... with a bad hibernate.cfg.xml.
Are you trying to compiling from inside enterprise/trunk/web/? You have to compile from enterprise/trunk/.
How do you do to run enterprise project with maven and gedit ?
I use gedit to edit .java files and then run mvn -Ppgsql install from the command line. send me some output, even if there are no errors I may see something.
Caleb James DeLisle
Thanks.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
Hervé Agnoux wrote:
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
If hibernate.cfg.xml is still empty, send me the output from compiling enterprise
It's OK by command line for me too.
Sorry, with more investigation, I can see it's not OK, because in hibernate.cfg.xml, the hsqldb part is commented.
send me some output, even if there are no errors I may see something.
The output is too long. Here is the end : [INFO] Surefire report directory: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] Assembling webapp[xwiki-enterprise-web] in [/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp webResources[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/maven- shared-archive-resources/META-INF] to[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Copying webapp webResources[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/maven- shared-archive-resources] to[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Copying webapp resources[/home/herve/xwikidev/checkout/enterprise/trunk/web/src/main/webapp] [INFO] Processing overlay[ id com.xpn.xwiki.platform:xwiki-web-standard] [INFO] Webapp assembled in [18889 msecs] [INFO] Building war: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-web/2.1- SNAPSHOT/xwiki-enterprise-web-2.1-SNAPSHOT.war [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Parent POM [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise/2.1- SNAPSHOT/xwiki-enterprise-2.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Jetty [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-configuration-resources}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty/2.1- SNAPSHOT/xwiki-enterprise-jetty-2.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Jetty - HSQLDB [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-configuration-resources}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:single {execution: default}] [INFO] Reading assembly descriptor: /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/src/assemble/application.xml [INFO] Processing DependencySet (output=webapps/xwiki) [INFO] Expanding: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war into /tmp/archived-file-set.977693253.tmp [INFO] Processing DependencySet (output=webapps/root) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- rootwebapp/1.3-SNAPSHOT/xwiki-rootwebapp-1.3-SNAPSHOT.war into /tmp/archived- file-set.478472420.tmp [INFO] Processing DependencySet (output=/) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- jetty-resources/1.17-SNAPSHOT/xwiki-jetty-resources-1.17-SNAPSHOT.zip into /tmp/archived-file-set.1161832962.tmp [INFO] Processing DependencySet (output=/) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- jetty-resources/1.17-SNAPSHOT/xwiki-jetty-resources-1.17-SNAPSHOT.zip into /tmp/archived-file-set.2132895382.tmp [INFO] Processing DependencySet (output=webapps/xwiki/WEB-INF/lib) [INFO] Processing DependencySet (output=/database) [INFO] Expanding: /home/herve/xwikidev/checkout/enterprise/trunk/database/hsqldb/target/xwiki- enterprise-database-hsqldb-2.1-SNAPSHOT.zip into /tmp/archived-file- set.1850261242.tmp [INFO] Building zip: /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/target/xwiki- enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty- hsqldb/2.1-SNAPSHOT/xwiki-enterprise-jetty-hsqldb-2.1-SNAPSHOT.pom [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/target/xwiki- enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty- hsqldb/2.1-SNAPSHOT/xwiki-enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] XWiki Products - Enterprise - Parent POM .............. SUCCESS [6.607s] [INFO] XWiki Products - Enterprise - Wiki .................... SUCCESS [8.975s] [INFO] XWiki Products - Enterprise - Database - Parent POM ... SUCCESS [0.377s] [INFO] XWiki Products - Enterprise - Database - HSQLDB ....... SUCCESS [42.423s] [INFO] XWiki Products - Enterprise - Web ..................... SUCCESS [48.921s] [INFO] XWiki Products - Enterprise - Distribution - Parent POM SUCCESS [1.807s] [INFO] XWiki Products - Enterprise - Distribution - Jetty .... SUCCESS [1.012s] [INFO] XWiki Products - Enterprise - Distribution - Jetty - HSQLDB SUCCESS [38.774s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 30 seconds [INFO] Finished at: Mon Sep 14 16:27:36 CEST 2009 [INFO] Final Memory: 54M/109M [INFO] ------------------------------------------------------------------------
Sorry for the late reply, "the hsqldb part is commented." This is the way it should be. You have to un-comment it yourself. http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL see the comment at the bottom of the page by "phile" As for making it work in netbeans I can only say try to get netbeans to use a similar command to what you give the command line. Your compile output looks right. Caleb James DeLisle Hervé Agnoux wrote:
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
Hervé Agnoux wrote:
Le dimanche 13 septembre 2009, Caleb James DeLisle a écrit :
If hibernate.cfg.xml is still empty, send me the output from compiling enterprise It's OK by command line for me too.
Sorry, with more investigation, I can see it's not OK, because in hibernate.cfg.xml, the hsqldb part is commented.
send me some output, even if there are no errors I may see something.
The output is too long. Here is the end :
[INFO] Surefire report directory: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] Assembling webapp[xwiki-enterprise-web] in [/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp webResources[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/maven- shared-archive-resources/META-INF] to[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Copying webapp webResources[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/maven- shared-archive-resources] to[/home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT] [INFO] Copying webapp resources[/home/herve/xwikidev/checkout/enterprise/trunk/web/src/main/webapp] [INFO] Processing overlay[ id com.xpn.xwiki.platform:xwiki-web-standard] [INFO] Webapp assembled in [18889 msecs] [INFO] Building war: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-web/2.1- SNAPSHOT/xwiki-enterprise-web-2.1-SNAPSHOT.war [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Parent POM [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise/2.1- SNAPSHOT/xwiki-enterprise-2.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Jetty [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-configuration-resources}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty/2.1- SNAPSHOT/xwiki-enterprise-jetty-2.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building XWiki Products - Enterprise - Distribution - Jetty - HSQLDB [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [remote-resources:process {execution: xwiki-configuration-resources}] [INFO] [remote-resources:process {execution: xwiki-license-resources}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:single {execution: default}] [INFO] Reading assembly descriptor: /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/src/assemble/application.xml [INFO] Processing DependencySet (output=webapps/xwiki) [INFO] Expanding: /home/herve/xwikidev/checkout/enterprise/trunk/web/target/xwiki-enterprise- web-2.1-SNAPSHOT.war into /tmp/archived-file-set.977693253.tmp [INFO] Processing DependencySet (output=webapps/root) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- rootwebapp/1.3-SNAPSHOT/xwiki-rootwebapp-1.3-SNAPSHOT.war into /tmp/archived- file-set.478472420.tmp [INFO] Processing DependencySet (output=/) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- jetty-resources/1.17-SNAPSHOT/xwiki-jetty-resources-1.17-SNAPSHOT.zip into /tmp/archived-file-set.1161832962.tmp [INFO] Processing DependencySet (output=/) [INFO] Expanding: /home/herve/.m2/repository/org/xwiki/platform/tools/xwiki- jetty-resources/1.17-SNAPSHOT/xwiki-jetty-resources-1.17-SNAPSHOT.zip into /tmp/archived-file-set.2132895382.tmp [INFO] Processing DependencySet (output=webapps/xwiki/WEB-INF/lib) [INFO] Processing DependencySet (output=/database) [INFO] Expanding: /home/herve/xwikidev/checkout/enterprise/trunk/database/hsqldb/target/xwiki- enterprise-database-hsqldb-2.1-SNAPSHOT.zip into /tmp/archived-file- set.1850261242.tmp [INFO] Building zip: /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/target/xwiki- enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip [INFO] [install:install {execution: default-install}] [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/pom.xml to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty- hsqldb/2.1-SNAPSHOT/xwiki-enterprise-jetty-hsqldb-2.1-SNAPSHOT.pom [INFO] Installing /home/herve/xwikidev/checkout/enterprise/trunk/distribution/jetty/hsqldb/target/xwiki- enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip to /home/herve/.m2/repository/com/xpn/xwiki/products/xwiki-enterprise-jetty- hsqldb/2.1-SNAPSHOT/xwiki-enterprise-jetty-hsqldb-2.1-SNAPSHOT.zip [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] XWiki Products - Enterprise - Parent POM .............. SUCCESS [6.607s] [INFO] XWiki Products - Enterprise - Wiki .................... SUCCESS [8.975s] [INFO] XWiki Products - Enterprise - Database - Parent POM ... SUCCESS [0.377s] [INFO] XWiki Products - Enterprise - Database - HSQLDB ....... SUCCESS [42.423s] [INFO] XWiki Products - Enterprise - Web ..................... SUCCESS [48.921s] [INFO] XWiki Products - Enterprise - Distribution - Parent POM SUCCESS [1.807s] [INFO] XWiki Products - Enterprise - Distribution - Jetty .... SUCCESS [1.012s] [INFO] XWiki Products - Enterprise - Distribution - Jetty - HSQLDB SUCCESS [38.774s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 30 seconds [INFO] Finished at: Mon Sep 14 16:27:36 CEST 2009 [INFO] Final Memory: 54M/109M [INFO] ------------------------------------------------------------------------
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Le mardi 15 septembre 2009, Caleb James DeLisle a écrit :
Sorry for the late reply, "the hsqldb part is commented." This is the way it should be. You have to un-comment it yourself.
So, each time I do a clean/install I do an un-comment ?
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL see the comment at the bottom of the page by "phile"
It's a long way... I'm a little lost...I have uncomment hsql in hibernate, and now the exception is : 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: Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) I think it's because there is no hsqldb.jar in the classpath, I don't understand why. Here is a console output : [couic] 16 sept. 2009 10:40:12 org.apache.catalina.startup.Catalina start INFO: Server startup in 23811 ms 2009-09-16 10:40:15,528 [http://localhost:8084/bin/view/Main/DocumentDoesNotExist] [http://localhost:8084/netbeans-tomcat-status-test?null] FATAL store.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver' [couic] And nothing like a hsqldb.jar stuff in checkout/enterprise/trunk/web/target/xwiki-enterprise-web-2.1-SNAPSHOT/WEB- INF/lib (I can put it manually, is the Good Thing To Do ? ) Thanks for your patience.
On Sep 16, 2009, at 11:06 AM, Hervé Agnoux wrote:
Le mardi 15 septembre 2009, Caleb James DeLisle a écrit :
Sorry for the late reply, "the hsqldb part is commented." This is the way it should be. You have to un-comment it yourself.
So, each time I do a clean/install I do an un-comment ?
no, you just don't override the file... :) -Vincent
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL see the comment at the bottom of the page by "phile"
It's a long way... I'm a little lost...I have uncomment hsql in hibernate, and now the exception is :
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: Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
I think it's because there is no hsqldb.jar in the classpath, I don't understand why. Here is a console output :
[couic] 16 sept. 2009 10:40:12 org.apache.catalina.startup.Catalina start INFO: Server startup in 23811 ms 2009-09-16 10:40:15,528 [http://localhost:8084/bin/view/Main/DocumentDoesNotExist] [http://localhost:8084/netbeans-tomcat-status-test?null] FATAL store.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the hibernate configuration file, please review it. org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver' [couic]
And nothing like a hsqldb.jar stuff in checkout/enterprise/trunk/web/target/xwiki-enterprise-web-2.1- SNAPSHOT/WEB- INF/lib
(I can put it manually, is the Good Thing To Do ? )
Thanks for your patience.
participants (3)
-
Caleb James DeLisle -
Hervé Agnoux -
Vincent Massol