Hi Hoani, Long time no talk! Good to see that you're still an XWiki user ;) See below On May 3, 2013, at 5:02 AM, Hoani Cross <[email protected]> wrote:
Hi,
Installed last version of XWiki on CentOS 5 (with tomcat 5) on postgresql and CentOS 6 (with tomcat 7) on mysql and go the same error while trying to deal with dashboard gadgets, I get this error, reported from the tomcat logs :
SEVERE: Servlet.service() for servlet [gwtrpc] in context with path [/xwiki] threw exception [Failed to initialize the XWiki context.] with root cause com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki [subdomain-of-my-server] does not exist at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505)
[snip] The code at line 505 is: XWikiDocument doc = xwiki.getDocument(wikiDescriptorDocument, context); if (doc.isNew()) { throw new XWikiException(XWikiException.MODULE_XWIKI, XWikiException.ERROR_XWIKI_DOES_NOT_EXIST, String.format("The wiki [%s] does not exist", wikiName)); } So this means that the descriptor page for the wiki named "subdomain-of-my-server" doesn't exist. The doc name is computed like this: DocumentReference wikiDescriptorReference = new DocumentReference(context.getMainXWiki(), XWiki.SYSTEM_SPACE, String.format("XWikiServer%s", StringUtils.capitalize(wikiName.toLowerCase()))); XWikiDocument wikiDescriptorDocument = xwiki.getDocument(wikiDescriptorReference, context); So in your case that would be: XWiki.XWikiServerSubdomain-of-my-server Hope it helps, -Vincent