RE: [xwiki-users] Create a new instance of Xwiki
There are still several question which need to be answered but are not in this documentation: 1a. Does this create a new database for the new XWiki? 1b. If so, where is this database created? or Is it necessary to manually create a new database? Following the instructions in the documentation without any additional work results in the following error: [code:xml] type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error number 2 in 0: The wiki lcswiki does not exist org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java :516) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor. java:423) 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) root cause com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki lcswiki 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) {code} -----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Thursday, July 28, 2005 6:00 AM To: [email protected] Subject: Re: [xwiki-users] Create a new instance of Xwiki Hi, This is one way of create multiple wikis served from the same servlet engine. However if you start having over 3 or 4 wikis, this will become a resource hog with many connections open to the database and multiple caches.. The solution is to use real virtual servers. See http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis We could improve a little this documentation. Ludovic Lichman, Mark Eugene wrote:
Hi Cwiki users,
I noticed the instructions for adding another space, unfortunately this isn't quite what I needed.
Here are some instuctions for creating a new instance of Xwiki in case you'd like to keep two completly separate databases (i.e. searching one will not give results for the other). I wasn't quite sure where to put this online.
1 Create a new instance of Xwiki # Create a folder with the name of the new Xwiki (i.e. support) in the tomcat/webapps folder) # Extract the xwiki war file into this folder # In the webinf/hibernate.cfg.xml file * modify {code:xml} <property name="connection.url">jdbc:mysql://localhost/xwiki</property> {code} replacing xwiki with the name of the new database you wish to create # create a new database with the same name as in the line above # import the sample database located here [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new database
All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome to check it out.
Caution, you may wish to modify the index.html file to point to your url just in case.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
No.. you need to create the database manually.. Your database name should always be lower case and correspond to the name at the end of XWikiServerXyzt (xyzt) Ludovic Lichman, Mark Eugene wrote:
There are still several question which need to be answered but are not in this documentation:
1a. Does this create a new database for the new XWiki?
1b. If so, where is this database created? or Is it necessary to manually create a new database?
Following the instructions in the documentation without any additional work results in the following error:
[code:xml]
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error number 2 in 0: The wiki lcswiki does not exist
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java :516)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor. java:423)
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)
root cause
com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki lcswiki 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) {code}
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Thursday, July 28, 2005 6:00 AM To: [email protected] Subject: Re: [xwiki-users] Create a new instance of Xwiki
Hi,
This is one way of create multiple wikis served from the same servlet engine. However if you start having over 3 or 4 wikis, this will become a resource hog with many connections open to the database and multiple caches.. The solution is to use real virtual servers. See http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis We could improve a little this documentation.
Ludovic
Lichman, Mark Eugene wrote:
Hi Cwiki users,
I noticed the instructions for adding another space, unfortunately this isn't quite what I needed.
Here are some instuctions for creating a new instance of Xwiki in case you'd like to keep two completly separate databases (i.e. searching one will not
give
results for the other). I wasn't quite sure where to put this online.
1 Create a new instance of Xwiki # Create a folder with the name of the new Xwiki (i.e. support) in the tomcat/webapps folder) # Extract the xwiki war file into this folder # In the webinf/hibernate.cfg.xml file * modify {code:xml} <property name="connection.url">jdbc:mysql://localhost/xwiki</property> {code} replacing xwiki with the name of the new database you wish to create # create a new database with the same name as in the line above # import the sample database located here [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new
database
All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome to check
it
out.
Caution, you may wish to modify the index.html file to point to your url just
in
case.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected]
mailing list.
To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
Lichman, Mark Eugene -
Ludovic Dubost