Hello:
I am deploy to set up XWiki 1.8.4 war to use a JBoss DataSource in version
4.2.2 GA and have so far been unsuccessful.
I have followed the directions in the Admin Guide but keep getting an error:
10:32:02,237 ERROR [[action]] Servlet.service() for servlet action threw
exception
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 find datasource: java:/jdbc/XWikiDS
This error was highlighted in another posting from 3rd April regarding XWiki
version 1.6.2:
http://lists.xwiki.org/pipermail/notifications/2009-April/042752.html
Below I have included text from my web.xml, my jboss-web.xml and
hibernate.conf.xml
jboss-web.xml:
<jboss-web>
<resource-ref>
<res-ref-name>XWikiDS</res-ref-name>
<jndi-name>java:XWikiDS</jndi-name>
</resource-ref>
</jboss-web>
web.xml:
<resource-ref>
<description>DB Connection</description>
<res-ref-name>XWikiDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
hibernate.conf.xml
<hibernate-configuration>
<session-factory>
<!-- DataSource properties -->
<property
name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.datasource">java:XWikiDS</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Can anyone please advise me if this is a bug in xwiki or if I have something
wrong with my configuration?
Thanks so much.
David
___________________________________________________________________
STRATEGY · TECHNOLOGY · VIDEO
___________________________________________________________________
phone: +44 (0)20 7580 9488 fax: +44 (0)20 7580 9489
mobile: +44 (0)7533 635 116 email: david.thompson(a)nativ.tv
___________________________________________________________________
web:
http://nativ.tv blog:
http://nativ.tv/futurevideo
___________________________________________________________________