Hello Anuj,

Hi,

            I am getting error

 

               com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences
Wrapped 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.