Siegried, I did some basic testing, and it works like a charm. A few notes : * having two wiki's isn't a requirement as far as I am concerned (but I can easily delete the webapps/private folder for example) * I would like to see the VersioningFileProvider as the default. * some tweaks to the configuration could get us rid of a few log4j warnings during startup. I git-cloned the repo, tried to build it, but got a lot of these warnings during "mvn clean package":
[WARNING] Entry: jspwiki-portable-2.10.1-SNAPSHOT/webapps/private/META-INF/maven/org.apache.jspwiki/jspwiki-war/pom.xml longer than 100 characters. I could prepare a pull request to 2 and 3 if you like. regards, Harry On 2 March 2014 23:08, Siegfried Goeschl <sgoes...@gmx.at> wrote: > Hi folks, > > many hours later I’m an expert for Mac OS Java 6 & 7 launchers - I learned > more things that I wanted to know ;-) > > Anyone with a Mac OS X or Linux wants to test and download > > > http://people.apache.org/~sgoeschl/download/wikionastick/jspwiki-portable-2.10.1-SNAPSHOT-woas.tar.gz > > * It contains a “woas.app" which should launch cleanly assuming that Apple > JDK 1.6 is on the box > * It contains a “woas.sh” which should launch cleanly on a Unix/Linux box > assuming that a JDK is found > * open http://localhost:9627 and forgive my HTML/CSS skills > * you should have two wiki spaces - “private" & “public” > > I pushed the stuff to > https://github.com/sgoeschl/jspwiki-on-a-stick/tree/master/jspwiki-portablebut > it is not in a state to be merged with the JSPWiki SVN trunk > > Feedback appreciated > > Siegfried Goschl > > On 02 Mar 2014, at 11:21, Siegfried Goeschl < > siegfried.goes...@willhaben.at> wrote: > > > Hi folks, > > > > I started to work last weekend and it was a lot harder than expected :) > > > > 1. Native Launchers > > ===================================================== > > > > Native launchers for Mac OS are difficult nowadays due to the fact the > Apple is not longer shipping Java & build tools. My current tool chain is > stuck to Apple’s JDK 1.6 > > > > > > 2. Jetty versus Tomcat > > ===================================================== > > > > After some frustration with Jetty I kicked it out and replaces it with > Tomcat 7.0.52 > > > > * Jetty is getting bigger and bigger with every major release (the same > is true for me) and the small memory foot print was my initial motivation > to stick with Jetty > > * I had some strange class loader issues which is fine since I did > strange things but I feel more at home with Tomcat > > * Adding GZIP compression requires tinkering with web.xml > > > > > > 3. Portable Wiki Setup > > ===================================================== > > > > I tried to put all libraries to $CATALINA_HOME/lib and simulate multiple > wikis using a light-weight web archive - this is a bit dangerous but it > worked for 2.9x. > > > > It stopped workig with 2.10 due to > > > > * class loader issued in PropertyReader > > * class loader issues with page caching > > > > > > 3.1 Ad PropertyReader > > —————————————————————————————— > > > > propertyStream = PropertyReader.class.getResourceAsStream( > CUSTOM_JSPWIKI_CONFIG ); > > > > tries to read the property file from the same class loader which fails > if the libs are placed on $CATALINA_HOME/lib whereas the following > statement uses the class loader of the deployed web app > > > > propertyStream = context.getResourceAsStream("/WEB-INF/classes" + > CUSTOM_JSPWIKI_CONFIG); > > > > I prepare a patch for it > > > > > > 3.2 Ad Page Caching > > —————————————————————————————— > > > > Found a similar issue here - due to my setup there is ONLY ONE cache and > as cache key the page name is used > > > > I have the following options > > > > * jspwiki.usePageCache=false is a work around > > * use the context name or appId as additional key for the cache > > > > The current state > > > > * I can build a ready-to-use JSP Wiki using Tomcat using Maven & Ant > plugin > > * I setup two pre-configured wiki instances > > * Eating my own dog food - migrate all my existing wiki to 2.10 > > > > Cheers, > > > > Siegfried Goeschl > > > > > > > >