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-tp534219p534288.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