[xwiki-devs] getting error

Youcef BEY youcef.bey at imag.fr
Thu Sep 6 02:49:39 CEST 2007


 Hello Anuj,
  Hi,

              I am getting error



               com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not 
initialize main XWiki contextWrapped Exception: Error number 3202 in 3: 
Exception while reading document XWiki.XWikiPreferencesWrapped Exception: 
Could not create a DBCP pool

  while pointing my browser to http://localhost:8080/xwiki/

 This is due to the connection to your database. XWiki seems faced a problem 
with xwiki DB access.



Check the stat of your  database server and configure the access to your 
xwiki database in hibernate.cfg. The access to the database is done via the 
jdbc:mysql://localhost/xwiki alias and to your application server by 
http://localhost:8080/xwiki/.



If you are using MySql then you have to check in your hibernate.cfg the 
following lines:



<property name="connection.url">jdbc:mysql://localhost/xwiki</property>
<property name="connection.username">**********</property>
<property name="connection.password">**********</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property 
name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>



The same for HSQLDB. You have juste de change the DB driver!



Hope that this help you



Sincerely



y.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070905/dc714109/attachment.html 
-------------- next part --------------
_______________________________________________
devs mailing list
devs at xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


More information about the devs mailing list