Hi, We are using XE 1.2.1 and Mysql 5.0. I configured hibernate.cfg.xml using the given code but it showing an error when pointing the browser to http://localhost:8181/xwiki/bin/view/main/webhome 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 parse configuration: file:/C:/xwiki_home/webapps/xwiki/WEB-INF/hibernate.cfg.xml RequestURI=/xwiki/bin/view/main/webhome Powered by Jetty:// Can U help? Thanks. Regards, Project trainees. Aleks wrote: Salut project trainees,
I use XWiki 1.3 and changed the hibernate.cfg.xml like this:
[config]
<?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> -->
<!-- Datasource configuration. --> <property name="connection.datasource">java:jdbc/XWikiDS</property> <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> <mapping resource="xwiki.hbm.xml"/> <mapping resource="feeds.hbm.xml"/>
</session-factory> </hibernate-configuration>
[/config]
Hope this helps.
Cheers,
Aleks
[email protected] wrote:
Hi,
"Configure JNDI data store in application container, where you xwiki instance is running." How it should be done ? can any one help?
Regards, Project trainees. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users