[xwiki-devs] Editing Xwiki core

Kamna Jain kammy.scorpi at gmail.com
Tue Apr 1 19:03:58 CEST 2008


OK. So I tried this - replaced my xwiki folder with the one I built (keeping
the old hibernate.cfg.xml and xwiki.cfg)
but, I get the folowwing error when I try to access my xwiki instance from
IE.

HTTP ERROR: 500

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

RequestURI=/xwiki/bin/edit/Main/Browse

I also tried keeoing the new hibernate.cfg.xml and xwiki.cfg, but that did
not work either.

The files that I used were from:

\xwiki-product-enterprise\web\target folder. But this folder had 2 such
folders that I could use to replace my current xwiki installation:

1) xwiki-enterprise-web-1.4-SNAPSHOT

2)xwiki-product-enterprise\web\target\war\work\com.xpn.xwiki.platform\xwiki-web-standard

I tried both, but no luck..always the above error.
*Contents of hibernate.cfg.xml

*<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
Configuration DTD//EN"
                                         "
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Template for hibernate configuration. processing by maven using
profiles.
     Replace original src/main/webapp/WEB-INF/hibernate.cfg.xml -->
<hibernate-configuration>
  <session-factory>

    <property name="show_sql">false</property>
    <property name="use_outer_join">true</property>

    <property name="dbcp.defaultAutoCommit">false</property>
    <property name="dbcp.maxActive">50</property>
    <property name="dbcp.maxIdle">5</property>
    <property name="dbcp.maxWait">30000</property>
    <property name="dbcp.whenExhaustedAction">1</property>
    <property name="dbcp.ps.whenExhaustedAction">1</property>
    <property name="dbcp.ps.maxActive">20</property>
    <property name="dbcp.ps.maxWait">120000</property>
    <property name="dbcp.ps.maxIdle">20</property>

    <!-- Please refer to the installation guide on
         http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation for
configuring your
         database. You'll need to do 2 things:
         1) Copy your database driver JAR in WEB-INF/lib or in some shared
lib directory
         2) Uncomment the properties below for your specific DB
    -->

                <property name="connection.url
">jdbc:hsqldb:file:database/xwiki_db;shutdown=true</property>
    <property name="connection.username">sa</property>
    <property name="connection.password"></property>
    <property name="connection.driver_class">org.hsqldb.jdbcDriver
</property>
    <property name="dialect">org.hibernate.dialect.HSQLDialect</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>

    <!-- Mapping files -->
    <mapping resource="xwiki.hbm.xml"/>
    <mapping resource="feeds.hbm.xml"/>

*Contents of xwiki.cfg for storage:*

xwiki.store.class=com.xpn.xwiki.store.XWikiHibernateStore
xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml
xwiki.store.hibernate.updateschema=1
xwiki.store.hibernate.custommapping=1
xwiki.store.cache=1
xwiki.store.cache.capacity=100
xwiki.store.migration=1


Please help!


More information about the devs mailing list