Jim,

a vanilla JSPWiki will use the log4j settings from ini/jspwiki.properties,
this file is "hidden" inside the WEB-INF/lib/jspwiki.jar file.
The default location for the logfile is jspwiki.log, which means the
current directory.
What the current directory is, depends on how you startup your tomcat.
For example, if you start tomcat from a shell, it will try to log to the
current directory (of your shell).
If you start it from the init.d script, it depends on how the init.d script
handles it.
In any case, in your situation, the current directory cannot be written to.
You can also solve the logging issue by creating a log4j.properties file in
the tomcat lib directory, see #1 for an example.

regards,
Harry
#1 -
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Documentation#section-Documentation-ConfigurationAndAdministration





On 3 May 2014 10:01, Jim Willeke <j...@willeke.com> wrote:

> New server on "Debian GNU/Linux 7 (wheezy)"
> Apache Tomcat/7.0.28 JDK 1.7.0_25-b30
> Deployed JSPWiki.jar from Tomcat Manager.
>
>
> May 02, 2014 2:13:28 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive /var/lib/tomcat7/webapps/mywiki.war
> log4j:WARN No appenders could be found for logger
> (org.apache.wiki.util.PropertyReader).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: jspwiki.log (Permission denied)
>
> Not sure where it might be trying to write the file to but even did a touch
> and set to user running tomcat for
> /var/lib/tomcat7/logs
> With the same results.
>
> Which contained all the other log files.
>
> Any ideas what to look into?
>
> Thanks
>
> --
> -jim
> Jim Willeke
>

Reply via email to