-----Original Message----- From: Bikash Agarwalla [mailto:[email protected]] Sent: Wednesday, 8 June 2005 1:23 PM To: [email protected] Subject: [xwiki-dev] Re: Google Summer Coding - P2P XWiki
I have submitted a proposal for P2P XWiki to Google and am exploring the current code base so that I get a head-start incase the proposal gets accepted. I have
A) Downloaded XWiki source version 0.9.793 B) Looked at developer documentation from http://www.xwiki.org/xwiki/bin/view/Doc/WebHome
By looking at overall architecture of XWiki, I think that an offline XWiki will have a different type of Store (centralized store) and a P2P XWiki will have another store implementation (P2P Store). At first glance, it appears that the centralized and P2P store will extend the interfaces XWikiStoreInterface. The interaction with these stores *may* introduce new APIs or use existing XML-RPC API without any changes. I am working on understanding the overall architecture of the current XWiki and identifying how a P2P XWiki can make the best use of existing implementation.
I have the following questions:
a) I have downloaded the source code but don't see any documentation on how I can run the XWiki completely local to my machine. What are the requirements and steps for running a local wiki from the source code?
[Cameron Braid] I managed to get xwiki running locally within eclipse by doing this : 1) move (or copy) web.xml from src/main/web.xml into src/main/web/WEB-INF/web.xml (so that src/main/web is an exploded war) 2) setup an eclipse user library called 'resin-3.0.12' with all libs from resin/lib 3) setup a resin configuration file for resin resin-3.0.12 (GPL) in the project root : see attached resin.conf 4) setup an eclipse launch target with his configuration : * main class : com.caucho.server.resin.Resin * arguments : -conf ${project_loc}/resin.conf * vm args : -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Dbase=${project_loc} * classpath : restore defaults then add the resin user library to the bootstrap classpath 5) create a mysql database on localhost called xwiki username = xwiki, password=xwiki 6) import the database dump (if you want some sample data / blogs etc..) 7) run the launch target 8) open http://localhost:8080/xwiki/bin/view/Main/WebHome I suggest that web.xml and web-exo.xml be moved in the source tree so that this first step isn't needed. Are there any reasons against this ?
b) To be sure, am I starting with the correct code base or is there any other version of offline XWiki (may be not fully developed)?
Any other suggestions also welcome, Thanks, Bikash Agarwalla