Hi,
I've trying to configure Virtual Wikis.
I've followed the doc :
http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
But I still have some problems :
I've 2 wikis configured that are visible as 2 instances of
XWiki.XWikiServerClass :
All Servers (2)
* XWiki.XWikiServerXwiki:
http://www2.objectweb.org
* XWiki.XWikiServerobjectwebcon06:
http://objectwebcon06.objectweb.org
Both own to XWiki.Admin user.
I've 2 databases :
* xwiki that should correspond to www2
* objectwebcon06 that should correspond to objectwebcon06
I've using Jk2 so my configuration in Apache is the following :
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /usr/local/tomcat/tomcat/conf/workers2.properties
<VirtualHost 194.199.25.56:80>
ServerName
objectwebcon06.objectweb.org
</VirtualHost>
<VirtualHost 194.199.25.56:80>
ServerName
www2.objectweb.org
</VirtualHost>
And workers2.properties contains :
# Map the Tomcat examples webapp to the Web server uri space
[
uri:www2.objectweb.org/*]
group=ajp13:localhost:8009
info=Map the whole webapp
[
uri:objectwebcon06.objectweb.org/*]
group=ajp13:localhost:8009
info=Map the whole webapp
If I call :
http://objectwebcon06.objectweb.org/xwiki/bin/view/Main/WebHome
I've got the following error :
com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki objectwebcon06
does not exist
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:241)
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
I understand that the Wiki doesn't exist. Where am I wrong ?
Thank you for your help
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at
objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau