Hi Michael,

Good on you for trying this. I did the same thing and I can tell you if you
persevere, it is worth it. I've currently got multiple wikis running on my
raspberry pi, and am very happy with the outcome. In fact, I have multiple
tomcats (prod/staging/dev), each with only 128mb in RAM, and multiple wikis
within each tomcat.

The setup on linux is:
1) Install clean tomcat
2) Place the JSPWiki.war in your <tomcat> directory (same directory as
webapp)
3) Create symbolic link that points your wiki to the JSPWiki.war
e.g. ln -s /opt/tomcat/webapps/testwiki.war /opt/tomcat/JSPWiki.war
4) Create a data directory for this wiki e.g. mkdir -p
/opt/tomcat/wikis/testwiki/data/pages (this will be used later)
5) Start tomcat - note this will expand the testwiki.war and create a
folder testwiki in the webapps directory.
6) Shutdown tomcat, as you need to change the baseURL property.
7) Create the file /opt/tomcat/webapps/
*testwiki/WEB-INF/classes/jspwiki-custom.properties*

with the following override items:
jspwiki.applicationName=testwiki
jspwiki.baseURL=http://digitalspider.com.au/testwiki/
jspwiki.workDir=/opt/tomcat/wikis/testwiki/data/
jspwiki.fileSystemProvider.pageDir=/opt/tomcat/wikis/testwiki/data/pages
jspwiki.basicAttachmentProvider.storageDir=/opt/tomcat/wikis/testwiki/data/pages
jspwiki.filterConfig=/opt/tomcat/wikis/testwiki/data/jspwiki-filters.xml
jspwiki.policy.file=jspwiki-custom.policy  # This cannot be specified with
an absolute path, I've raised a JIRA for this.
jspwiki.xmlGroupDatabaseFile=/opt/tomcat/wikis/testwiki/data/groupdatabase.xml
jspwiki.xmlUserDatabaseFile=/opt/tomcat/wikis/testwiki/data/userdatabase.xml
#jspwiki.pageProvider=VersioningFileProvider
#jspwiki.templateDir=haddock

8) Start tomcat, and now you have a custom testwiki
9) Repeat the above to add more wikis. Replace "testwiki" with "wiki_gold"
and other names as needed.


Note: The same can be done on windows, but without the symbolic links, you
need to rename the JSPWiki.war to wiki_gold.war and place this into
webapps. Start tomcat, so it creates the exanded directory. Stop tomcat.
Create the jspwiki-custom.properties, and then start tomcat again.

Note: I've never managed to use the Install.jsp so don't worry if that
doesn't work for you.

If anyone is inspired, please feel free to update this documentation on the
public wiki, as it's pretty cool setup.

Cheers,
David V


On Fri, Jan 22, 2016 at 9:42 AM, Juan Pablo Santos Rodríguez <
juanpablo.san...@gmail.com> wrote:

> Hi Michael,
>
> apologies on the late response. I'll try to reproduce the undesired
> behaviour this week-end, although that should not happen.. In the meantime,
> would you mind saving a page with the text
>
> [{$baseurl}]
>
> in it and see what is the output? It should have your jspwiki.baseURL
> value.. Also, could you check your logs and see if there's logged any error
> in there? F.ex., one cause of reverting to JSPWiki instead of using a
> custom baseURL is setting an invalid URL in it, although there may be any
> other causes
>
>
> thanks & br,
> juan pablo
>
> On Sat, Jan 16, 2016 at 11:22 PM, Sale, Michael <ms...@stonehill.edu>
> wrote:
>
> > Hello,
> >
> > I am having an issue when trying to install JSPWiki 2.10.1 on Tomcat
> > 8/Windows.
> >
> > The simple instructions tell you change the name of the WAR file if you
> do
> > not want to use the default name JSPWiki as your directory.  So, in my
> > installation, I tried renaming the war to wiki_gold
> >
> > When I did this and deployed the app in Tomcat all seemed to go ok.
> > However when I went to the Install.jsp page, I noticed none of the CSS
> was
> > loading.  I looked at the page source and it is still referring to
> JSPWiki
> > as the path.  I have tried to set the baseurl in the properties file with
> > no luck.
> >
> > My ultimate goal is to have multiple wikis installed on the same instance
> > of Tomcat but when I tried that (with the first instance being in the
> > default JSPWiki directory) all the links of my subsequent, differently
> > named instances, pointed to the original JSPWiki directory.  For
> example, I
> > deployed a second wiki called wiki_dev and when I went to click the Login
> > button after installing it, it brought me to the login page for JSPWiki
> :(
> >
> > Am I missing something or is this a bug?
> >
> > Thanks,
> > Mike
> >
> >
>

Reply via email to