Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-29 Thread John Lusk
Once more, with feeling (and without an attachment): This file/page/entry is some notes on how I got JSPWiki running on Tomcat8 on an Ubuntu 16.04 LTS image running on an Amazon Web Services (AWS) Elastic Compute Cloud (EC2) instance. It's an edited version of a question I posted to the users' ma

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-29 Thread John Lusk
Ok, gang. Foster Schucker asked for a writeup of my experience, and I'm slapping it in here (let's see if I can get away with an attachment). Can anybody suggest a place to add it to the JSPWiki wiki? If so, I'll mangle it in to Creole; but, if not, I won't bother. John. On Wed, Jan 11, 2017 at

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-23 Thread Paul Uszak
I find the easiest and most risk free way of installation is to use the Tomcat gui manager app that ships with Tomcat. Just deploy jspwiki.war from the gui and all the permissions get set automatically by Tomcat. You can then fiddle about with the files /customisations later. They actually just

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-11 Thread John Lusk
Yeah, I saw that, but I wasn't sure what that referred to, since there's $CATALINA_{HOME,BASE} and I don't recall either of them having a "lib" subfolder. But, maybe it's $CATALINA_HOME? (Which might leave me vulnerable to getting zapped by a Tomcat upgrade?) Anyway, I'll check it out later. John

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-11 Thread Dirk Frederickx
FWIW: In the "Getting Started" page, you can read: In the $TOMCAT_HOME/lib folder (or equivalent based on your servlet container), place a jspwiki-custom.properties file, which can contain any overrides to the defaults. See Configuration

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread David Vittor
Yeah - the placing the custom properties file in the expanded war folder is one thing I don't like about jspwiki setup either. But I know of no workaround at the moment. Good to see you're making progress. Cheers, David V On Wed, Jan 11, 2017 at 2:28 PM, John Lusk wrote: > Also: success, o

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread John Lusk
Also: success, of sorts. Got my main page up, edited it successfully. There's something about the work dir not being writable, but from the O/S perspective, it is. More catalina.policy magic? Haven't checked the log file yet, but it's probably still wrong. More later. John. On Tue, Jan 10, 201

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread John Lusk
Thanks. Is there another directory than the exploded war file? Reason I ask is if I get a new war file at some point, that exploded directory will go away, along w/my customized properties file. (I'll always be able to restore it after a certain amount of fumbling around, but I'd expect to put cus

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread David Vittor
The customized properites file is: jspwiki-custom.properties This should be located in /webapps/wiki/WEB-INF/classes You can change the workDir, or just the log file: jspwiki.workDir=/opt/digitalspider/jspwiki/wikis/testwiki/data/ log4j.appender.FileLog.File = /var/jspwiki/logs/jspwiki.log See t

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread John Lusk
Ok, so I added the following to my /etc/tomcat8/policy.d/03catalina.policy file: grant codeBase "file:${catalina.base}/webapps/wiki/-" { permission java.io.FilePermission "file:/usr/share/jspwiki-files/-", "read, write"; permission java.security.AllPermission; }; which (a) doesn't seem to hav

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-10 Thread David Vittor
Hi John, My guess is you might be having a permission issue. When you installed tomcat using apt-get you might have been a "root" user, but might be running the application as a non root user. This line seems to be the clue: java.io.FileNotFoundException: jspwiki.log (Permission denied) Cheers,

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-09 Thread Col Willis
I had to do something funky with the catalina.policy file to get jspwiki working in tomcat8 (apt-get installed) grant codeBase "file:/var/lib/tomcat8/webapps/wiki/-" { // !!change the directory to the location you want to locate your wiki files!! permission java.io.FilePermission "file:/usr/

Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-08 Thread Rick Brockman
Like you John I'm a Rip van Winkle of bygone computer days. When I installed Tomcat using apt-get I ran into problems and instead of knocking my head against the sleep pillow, I downloaded tomcat from the web and its working... On 2017-01-08 16:10, John Lusk wrote: Ok, friends. Trying to g

Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-08 Thread John Lusk
Ok, friends. Trying to get JSPWiki set up on a new Amazon EC2 Unbuntu 16.04 instance I just stood up, and I'm having some trouble. Help? I installed Tomcat8 using apt-get, I wound up with: /etc/default/tomcat8 /etc/init.d/tomcat8 /etc/tomcat8 Catalina/localhost/{docs,examples,hos