Hi,

I'm trying install wiki.war in sql server 2005 and I had received the same
as message:
Could not initialize main XWiki context.

I wrote in the hibernate.cfg.xml as:

 <property
name="connection.url">jdbc:jtds:sqlserver://127.0.0.1:1433/XWiki;tds=8.0;lastupdatecount=true</property>
    <property name="connection.username">xwiki</property>
    <property name="connection.password">xwiki</property>
    <property
name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
    <property
name="dialect">org.hibernate.dialect.SQLServerDialect</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 resource="xwiki.mssql.hbm.xml"/>
    <mapping resource="feeds.hbm.xml"/>

It's configuration Ok?  Are there another suggestions?


Nadja
(I'm sorry by mistakes, I'm learning English yet...)



Nishiii wrote:
> 
> Thanks a lot, it is working fine now. Ah i cant believe i didnt see that.
> The problem was i always opened it in notepad and edited those values and
> expected it to work.
> 
> Thanks a lot
> 
> Artem Melentyev-3 wrote:
>> 
>> Nishiii wrote:
>>> Hi,
>>> 
>>> I have installed the xwiki.war  complete all the intructions for Tomcat
>>> Servlet and MySQL Database configuration. But my xwiki is not working
>>> properly ,its giving me the following error. 
>>> 
>>> I have installed the enterprise version of xwiki war. I have gone
>>> throught
>>> the forum to see if anyone's got a similar error , but looks like its
>>> just
>>> me, just in case if i have missed this error posted by some user and if
>>> there was a solution posted earlier, please point me to that link.
>>> 
>>> Here is the exception what i get 
>>> 
>>> type Exception report
>>> message 
>>> description The server encountered an internal error () that prevented
>>> it
>>> from fulfilling this request.
>>> exception 
>>> javax.servlet.ServletException: 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: Hibernate Dialect must be explicitly set
>>> 
>>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
>>> 
>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
>>> 
>>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>>>     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>>>     org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>> 
>>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>>> root cause 
>>> 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: Hibernate Dialect must be explicitly set
>> 
>> Looks like you don't set hibernate dialect in hibernate.cfg.xml
>> (<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
>> make sure it uncomment)
>> Show your hibernate.cfg.xml if it doesn't help.
>> 
>> ...
>> 
>> -- 
>>    Artem Melentyev
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Could-not-initialize-main-XWiki-context-tp534219p2313718.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to